Moved unit test make files to test directory.

This commit is contained in:
skarg
2007-10-11 18:25:16 +00:00
parent 02a0554ed8
commit ccbec7715e
32 changed files with 0 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#Makefile to build test case
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BACNET_APPLICATION_DATA
CFLAGS = -Wall -Iinclude -Itest -g $(DEFINES)
SRCS = src/bacdcode.c \
src/bacint.c \
src/bacstr.c \
src/bacapp.c \
src/datetime.c \
src/bactext.c \
src/indtext.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = bacapp
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 ${TARGET} $(OBJS)
include: .depend