8b8ef8f338
* Fix some ztests that were skipped * Expose bacapp_same_value() * Fix bacapp, ptransfer tests * Fix bugs in Load_Control object & tests * refactor days functions from datetime module * fix legacy ctests * Add bacnet/basic/sys/days.[ch] to Zephyr build * Update ztest to match from Zephyr v2.6.0; update ringbuf, datetime to build * Fixup ztest test for object/acc * Fix bvlc_address_from_ascii; enable/fix bvlc test * Comment cleanup * test/bacnet/basic/object/lc partially enabled * Fix bacapp_decode_data_len return status on erroneous input * fix ztest include fatal error * fix ztest strsignal reference fatal error * fix zassert_mem_equal reference syntax error * fix zassert_mem_equal reference syntax error Co-authored-by: Gregory Shue <gregory.shue@legrand.us> Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
65 lines
1.2 KiB
Makefile
65 lines
1.2 KiB
Makefile
#Makefile to build test case
|
|
|
|
# tools - only if you need them.
|
|
# Most platforms have this already defined
|
|
# CC = gcc
|
|
# AR = ar
|
|
# MAKE = make
|
|
# SIZE = size
|
|
#
|
|
# Assumes rm and cp are available
|
|
|
|
SRC_DIR := ../src
|
|
INCLUDES := -I$(SRC_DIR) -I.
|
|
DEFINES := -DBIG_ENDIAN=0 -DBAC_TEST -DBACAPP_ALL -DTEST_TIMESYNC
|
|
|
|
CFLAGS := $(INCLUDES) $(DEFINES) -g
|
|
CFLAGS += -Wall
|
|
|
|
TARGET_NAME := timesync
|
|
ifeq ($(OS),Windows_NT)
|
|
TARGET_EXT = .exe
|
|
else
|
|
TARGET_EXT =
|
|
endif
|
|
TARGET = $(TARGET_NAME)$(TARGET_EXT)
|
|
|
|
SRCS := $(SRC_DIR)/bacnet/bacdcode.c \
|
|
$(SRC_DIR)/bacnet/bacint.c \
|
|
$(SRC_DIR)/bacnet/bacstr.c \
|
|
$(SRC_DIR)/bacnet/bacreal.c \
|
|
$(SRC_DIR)/bacnet/bacerror.c \
|
|
$(SRC_DIR)/bacnet/bacapp.c \
|
|
$(SRC_DIR)/bacnet/bacdevobjpropref.c \
|
|
$(SRC_DIR)/bacnet/bactext.c \
|
|
$(SRC_DIR)/bacnet/indtext.c \
|
|
$(SRC_DIR)/bacnet/datetime.c \
|
|
$(SRC_DIR)/bacnet/lighting.c \
|
|
$(SRC_DIR)/bacnet/timesync.c \
|
|
$(SRC_DIR)/bacnet/basic/sys/days.c \
|
|
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 ${TARGET} $(OBJS) *.bak *.1 *.ini
|
|
|
|
run:
|
|
./${TARGET}
|
|
|
|
include: .depend
|
|
|
|
.PHONY: all run clean
|