created to be able to unit test.

This commit is contained in:
skarg
2005-03-16 16:20:06 +00:00
parent 689d98708e
commit c03d3b3670
+33
View File
@@ -0,0 +1,33 @@
#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_NPDU -g
SRCS = bacdcode.c \
bigend.c \
npdu.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = npdu
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