Add makefile for BACnet/IPv6 unit test.
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
#Makefile to build test case
|
||||||
|
CC = gcc
|
||||||
|
SRC_DIR = ../src
|
||||||
|
INCLUDES = -I../include -I.
|
||||||
|
DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BVLC6
|
||||||
|
|
||||||
|
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
|
||||||
|
|
||||||
|
SRCS = $(SRC_DIR)/bacdcode.c \
|
||||||
|
$(SRC_DIR)/bacint.c \
|
||||||
|
$(SRC_DIR)/bacstr.c \
|
||||||
|
$(SRC_DIR)/bacreal.c \
|
||||||
|
$(SRC_DIR)/bvlc6.c \
|
||||||
|
ctest.c
|
||||||
|
|
||||||
|
TARGET = bvlc6
|
||||||
|
|
||||||
|
all: ${TARGET}
|
||||||
|
|
||||||
|
OBJS = ${SRCS:.c=.o}
|
||||||
|
|
||||||
|
${TARGET}: ${OBJS}
|
||||||
|
${CC} -o $@ ${OBJS}
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
${CC} -c ${CFLAGS} $*.c -o $@
|
||||||
|
|
||||||
|
depend:
|
||||||
|
rm -f .depend
|
||||||
|
${CC} -MM ${CFLAGS} *.c >> .depend
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf ${TARGET} $(OBJS)
|
||||||
|
|
||||||
|
include: .depend
|
||||||
Reference in New Issue
Block a user