diff --git a/bacnet-stack/bacdcode.mak b/bacnet-stack/bacdcode.mak index efdd40df..1df23c78 100644 --- a/bacnet-stack/bacdcode.mak +++ b/bacnet-stack/bacdcode.mak @@ -7,7 +7,6 @@ TARGET = bacdcode SRCS = bacdcode.c \ bacstr.c \ - bigend.c \ test/ctest.c OBJS = ${SRCS:.c=.o} diff --git a/bacnet-stack/bacint.mak b/bacnet-stack/bacint.mak new file mode 100644 index 00000000..5cd4718f --- /dev/null +++ b/bacnet-stack/bacint.mak @@ -0,0 +1,29 @@ +#Makefile to build unit tests +CC = gcc +BASEDIR = . +CFLAGS = -Wall -I. -Itest -g -DBIG_ENDIAN=0 -DTEST -DTEST_BACINT + +TARGET = bacint + +SRCS = bacint.c \ + bacstr.c \ + test/ctest.c + +OBJS = ${SRCS:.c=.o} + +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 ${OBJS} ${TARGET} *.bak + +include: .depend