Files
bacnet_stack/bacnet-stack/test/crc.mak
T

31 lines
518 B
Makefile

#Makefile to build CRC tests
CC = gcc
BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#CFLAGS = -Wall -I. -g
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_CRC -g
#CFLAGS = -Wall -I. -Itest -DTEST -DTEST_CRC -DCRC_USE_TABLE -g
OBJS = crc.o test/ctest.o
TARGET = crc
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