ifstatd/Makefile
Babak Farrokhi 620e51230e - Improve pidfile handling
- Clean shutdown if daemon is killed
- Prevent daemon from running twice
- Minor code cleanup and refactoring
2015-09-15 18:15:12 +04:30

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_