#-----------------------------------------------------------------#
# Makefile for ifchk-1.0.1.                                       #
#                                                                 #
# Please read the INSTALL file before compiling ifchk.            #
#                                                                 #
# Reset CC environment variable below, if you are building with   #
# a compiler other than GNU gcc (e.g., pgcc).                     #
#                                                                 #
# Copyright (C) 2002 - 2015 Joshua Birnbaum <engineer@noorg.org>. #
# All Rights Reserved.                                            #
#-----------------------------------------------------------------#
CC=gcc
CFLAGS=-g
LDFLAGS=-lrt -lsysfs
OBJS=ifchk.o daemon.o error.o linux.o log.o pidfile.o config.o filestat.o
BIN=ifchk
#
# Compiler Flags:
#	-g	-- enable debugging.
#
# Linker Flags:
#	-lrt	-- link against realtime library, librt.
#	-lsysfs	-- link against sysfs library, libsysfs.

all:	$(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJS)

clean:
	rm -f *.o ifchk
