added makefile for building unit test for BVLC

This commit is contained in:
skarg
2007-06-14 03:59:48 +00:00
parent fddfacb85d
commit bdc7225014
+36
View File
@@ -0,0 +1,36 @@
#Makefile to build test case
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#CFLAGS = -Wall -I. -g
DEFINES = -DBACDL_BIP -DBIG_ENDIAN=0 -DTEST -DTEST_BVLC
INCLUDES = -Iports/linux -Itest -I.
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = bacdcode.c \
bacstr.c \
bigend.c \
bvlc.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = bvlc
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