- Clean shutdown if daemon is killed - Prevent daemon from running twice - Minor code cleanup and refactoring
15 lines
278 B
Makefile
15 lines
278 B
Makefile
PREFIX=/usr/local
|
|
INC=-I$(PREFIX)/include
|
|
LIB=-L$(PREFIX)/lib -lutil
|
|
FLAGS=-Wall -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing -mssse3
|
|
CC?=cc
|
|
|
|
all: ifstatd_
|
|
|
|
ifstatd_: ifstatd.c Makefile
|
|
$(CC) $(FLAGS) $(INC) $(LIB) ifstatd.c -o ifstatd_
|
|
|
|
clean:
|
|
rm -f ifstatd_
|
|
|