Moved bacdcode.c and bacreal.c back to src, and removed the separate bacdcode directory. Since gcc linker can remove unused functions, this was wasted effort. Added bacreal unit test.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#Makefile to build unit tests
|
||||
CC = gcc
|
||||
BASEDIR = .
|
||||
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_DECODE
|
||||
CFLAGS = -Wall -Iinclude -Itest -g $(DEFINES)
|
||||
|
||||
TARGET = bacdcode
|
||||
|
||||
SRCS = src/bacdcode.c \
|
||||
src/bacint.c \
|
||||
src/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 ${OBJS} ${TARGET}
|
||||
|
||||
include: .depend
|
||||
Reference in New Issue
Block a user