From b52854a073a114d4442744793d3dedb9efab3597 Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 22 Jan 2007 19:43:17 +0000 Subject: [PATCH] created unix make file for unit test. --- bacnet-stack/datetime.mak | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bacnet-stack/datetime.mak diff --git a/bacnet-stack/datetime.mak b/bacnet-stack/datetime.mak new file mode 100644 index 00000000..864a9de9 --- /dev/null +++ b/bacnet-stack/datetime.mak @@ -0,0 +1,31 @@ +#Makefile to build test case +CC = gcc +BASEDIR = . +#CFLAGS = -Wall -I. +# -g for debugging with gdb +#CFLAGS = -Wall -I. -g +CFLAGS = -Wall -I. -Itest -DTEST -DTEST_DATE_TIME -g + +SRCS = datetime.c \ + test/ctest.c + +OBJS = ${SRCS:.c=.o} + +TARGET = datetime + +all: ${TARGET} + +${TARGET}: ${OBJS} + ${CC} -o $@ ${OBJS} + +.c.o: + ${CC} -c ${CFLAGS} $*.c -o $@ + +depend: + rm -f .depend + ${CC} -MM ${CFLAGS} *.c >> .depend + +clean: + rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini + +include: .depend