Moved bacstr.c back to src. Since gcc and others tool linkers can remove unused functions, this turned out to be a wasted effort.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#Makefile to build unit tests
|
||||
CC = gcc
|
||||
BASEDIR = .
|
||||
CFLAGS = -Wall -I. -Itest -g -DTEST -DTEST_BACSTR
|
||||
|
||||
TARGET = bacstr
|
||||
|
||||
SRCS = 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 core ${OBJS} ${TARGET} *.bak
|
||||
|
||||
include: .depend
|
||||
Reference in New Issue
Block a user