Updated unit test makefiles.

This commit is contained in:
skarg
2007-11-06 19:10:52 +00:00
parent 33258675ff
commit b060c15679
5 changed files with 53 additions and 49 deletions
+12 -12
View File
@@ -1,24 +1,24 @@
#Makefile to build test case
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#CFLAGS = -Wall -I. -g
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_REJECT -g
SRC_DIR = ../src
INCLUDES = -I../include -I.
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_REJECT
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
reject.c \
test/ctest.c
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
OBJS = ${SRCS:.c=.o}
SRCS = $(SRC_DIR)/bacdcode.c \
$(SRC_DIR)/bacint.c \
$(SRC_DIR)/bacstr.c \
$(SRC_DIR)/bacreal.c \
$(SRC_DIR)/reject.c \
ctest.c
TARGET = reject
all: ${TARGET}
OBJS = ${SRCS:.c=.o}
${TARGET}: ${OBJS}
${CC} -o $@ ${OBJS}