DD2-monitor/core/Makefile

37 lines
704 B
Makefile
Raw Normal View History

2019-01-14 13:20:54 +11:00
#
2019-01-17 21:51:07 +11:00
# dd2 monitoring
2019-01-14 13:20:54 +11:00
#
2019-01-23 03:23:11 +11:00
# build the core functions, use with care
2019-01-14 13:20:54 +11:00
#
2019-01-17 21:51:07 +11:00
COPT = -Wall -fpic -g -DDEBUG_LEVEL=0
2019-01-29 02:57:45 +11:00
OBJS = lut1024f.o parseconf.o utils.o sysmetrics.o
2019-01-17 21:51:07 +11:00
DEPS = Makefile
2019-01-19 02:27:06 +11:00
ALIB = libdd2m-core.a
2019-01-17 21:51:07 +11:00
# ---------------------------------------------------
2019-01-14 13:20:54 +11:00
2019-01-19 02:27:06 +11:00
${ALIB}: ${OBJS}
ar r $@ $?
2019-01-17 21:51:07 +11:00
lut1024f.o: lut1024f.c lut1024.h ${DEPS}
2019-01-29 02:57:45 +11:00
gcc $(COPT) -c $<
2019-01-17 21:51:07 +11:00
parseconf.o: parseconf.c config.h ${DEPS}
2019-01-29 02:57:45 +11:00
gcc $(COPT) -c $<
2019-01-17 21:51:07 +11:00
utils.o: utils.c utils.h ${DEPS}
2019-01-29 02:57:45 +11:00
gcc $(COPT) -c $<
sysmetrics.o: sysmetrics.c ${DEPS}
gcc $(COPT) -c $<
2019-01-17 21:51:07 +11:00
# ---------------------------------------------------
2019-01-19 02:27:06 +11:00
t: t.c ${ALIB} lut1024.h config.h utils.h ${DEPS}
gcc -Wall $< ${ALIB} -o $@
2019-01-14 13:20:54 +11:00
foo.lut1024f: mklut.pl Makefile
./mklut.pl quux > $@