- cleanup Makefile and respect PREFIX - now builds on OS X on which clock_gettime() is not implemented
15 lines
290 B
Makefile
15 lines
290 B
Makefile
PREFIX?=/usr/local
|
|
INC=-I$(PREFIX)/include
|
|
LIB=-L$(PREFIX)/lib -lpidutil
|
|
FLAGS=-Wall -Wextra -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_
|
|
|