Created project and unit test for object list.

This commit is contained in:
skarg
2008-03-03 15:10:40 +00:00
parent 17b556df69
commit f9329b793d
2 changed files with 85 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#Makefile to build test case
CC = gcc
SRC_DIR = ../src
INCLUDES = -I../include -I.
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_OBJECT_LIST
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = $(SRC_DIR)/objects.c \
$(SRC_DIR)/keylist.c \
$(SRC_DIR)/key.c \
ctest.c
TARGET = rp
all: ${TARGET}
OBJS = ${SRCS:.c=.o}
${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