#
#		dd2 monitoring
#
#	build the core functions, use with care
#


COPT = -Wall -fpic -g -DDEBUG_LEVEL=0
OBJS = lut1024f.o parseconf.o utils.o sysmetrics.o
DEPS = Makefile
ALIB = libdd2m-core.a
# ---------------------------------------------------

${ALIB}:	${OBJS}
	ar r $@ $?

lut1024f.o:	lut1024f.c lut1024.h ${DEPS}
	gcc $(COPT) -c $<

parseconf.o:	parseconf.c config.h  ${DEPS}
	gcc $(COPT) -c $<

utils.o:	utils.c utils.h  ${DEPS}
	gcc $(COPT) -c $<

sysmetrics.o:	sysmetrics.c  ${DEPS}
	gcc $(COPT) -c $<

# ---------------------------------------------------

t:	t.c ${ALIB}  lut1024.h config.h utils.h ${DEPS}
	gcc -Wall $< ${ALIB} -o $@

foo.lut1024f:	mklut.pl Makefile
	./mklut.pl quux > $@