This commit is contained in:
skarg
2005-03-21 03:48:14 +00:00
parent 4f83a07d1b
commit a6294eef3d
+34
View File
@@ -0,0 +1,34 @@
#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_TSM -g
SRCS = bacdcode.c \
bigend.c \
device.c \
tsm.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
TARGET = tsm
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