Moved the demo objects into demo/object directory, and updated the makefiles and unit tests to handle the move.

This commit is contained in:
skarg
2006-01-10 20:36:30 +00:00
parent 3c1cc848a6
commit d7ed1480fe
21 changed files with 53 additions and 54 deletions
+35
View File
@@ -0,0 +1,35 @@
#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_DEVICE -g
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bigend.c \
bacstr.c \
demo/object/device.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = device
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