This commit is contained in:
skarg
2005-04-01 11:24:10 +00:00
parent b36703a742
commit fd30ca0204
3 changed files with 307 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#Makefile to build test case
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#CFLAGS = -Wall -I. -g
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_ABORT -g
SRCS = bacdcode.c \
bigend.c \
abort.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = abort
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