added unit test makefile for filename module.

This commit is contained in:
skarg
2006-01-24 15:59:58 +00:00
parent c45d7472dd
commit dfbcb202ce
+32
View File
@@ -0,0 +1,32 @@
#Makefile to build filename tests
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#CFLAGS = -Wall -I. -g
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_FILENAME -g
SRCS = filename.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = filename
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