Updated unit tests for objects.

This commit is contained in:
skarg
2007-11-11 06:23:24 +00:00
parent 109f1ea240
commit 948f9afd9a
13 changed files with 267 additions and 238 deletions
+14 -14
View File
@@ -1,25 +1,25 @@
#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_BINARY_INPUT -g
SRC_DIR = ../../src
TEST_DIR = ../../test
INCLUDES = -I../../include -I$(TEST_DIR) -I.
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BINARY_INPUT
# NOTE: this file is normally called by the unittest.sh from up directory
SRCS = bacdcode.c \
bacint.c \
bacstr.c \
bigend.c \
demo/object/bi.c \
test/ctest.c
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
OBJS = ${SRCS:.c=.o}
SRCS = bi.c \
$(SRC_DIR)/bacdcode.c \
$(SRC_DIR)/bacint.c \
$(SRC_DIR)/bacstr.c \
$(SRC_DIR)/bacreal.c \
$(TEST_DIR)/ctest.c
TARGET = binary_input
all: ${TARGET}
OBJS = ${SRCS:.c=.o}
${TARGET}: ${OBJS}
${CC} -o $@ ${OBJS}
@@ -31,6 +31,6 @@ depend:
${CC} -MM ${CFLAGS} *.c >> .depend
clean:
rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini
rm -rf core ${TARGET} $(OBJS)
include: .depend