added makefile for bacint unit test.

This commit is contained in:
skarg
2007-06-12 23:33:36 +00:00
parent 047fd0e9a4
commit 2c628f9003
2 changed files with 29 additions and 1 deletions
-1
View File
@@ -7,7 +7,6 @@ TARGET = bacdcode
SRCS = bacdcode.c \
bacstr.c \
bigend.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
+29
View File
@@ -0,0 +1,29 @@
#Makefile to build unit tests
CC = gcc
BASEDIR = .
CFLAGS = -Wall -I. -Itest -g -DBIG_ENDIAN=0 -DTEST -DTEST_BACINT
TARGET = bacint
SRCS = bacint.c \
bacstr.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
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 ${OBJS} ${TARGET} *.bak
include: .depend