Files
bacnet_stack/bacnet-stack/demo/object/netport.mak
T
skarg 3f8cdd05f0 Added concurrent Network Port object example for Ethernet, MSTP, BACnet/IP and BACnet/IPv6.
Enhanced the IPv6 API and data for Network Port object.
Enhanced network port object unit testing and added to unit test Makefile.
Incremented default protocol-revision from 14 to 19 to enable default testing with Network Port object.
2019-09-11 19:39:27 +00:00

44 lines
809 B
Makefile

#Makefile to build test case
CC = gcc
SRC_DIR = ../../src
TEST_DIR = ../../test
INCLUDES = -I../../include -I$(TEST_DIR) -I.
DEFINES = -DBIG_ENDIAN=0 -DBACNET_UNIT_TEST -DTEST_NETWORK_PORT
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = netport.c \
$(SRC_DIR)/bacdcode.c \
$(SRC_DIR)/bacint.c \
$(SRC_DIR)/bacstr.c \
$(SRC_DIR)/bacreal.c \
$(SRC_DIR)/datetime.c \
$(SRC_DIR)/bacapp.c \
$(SRC_DIR)/bacdevobjpropref.c \
$(SRC_DIR)/bactext.c \
$(SRC_DIR)/lighting.c \
$(SRC_DIR)/proplist.c \
$(SRC_DIR)/indtext.c \
$(TEST_DIR)/ctest.c
TARGET = network_port
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 core ${TARGET} $(OBJS)
include: .depend