Files

40 lines
996 B
Makefile

#-------------------------------------------------------------------------------
# Standalone factory-test application.
# This target intentionally replaces custom_app on the test/factory-test branch.
#-------------------------------------------------------------------------------
TOP_DIR:=$(TOP_DIR)
ROOT_DIR:=$(TOP_DIR)/../..
MAKEFILE_PATH :=$(subst $(strip \),/,$(abspath $(lastword $(MAKEFILE_LIST))))
vpath %.c ../custom_app ../custom_app/lib/libnfc
SRC_FILES+= \
factory_test.c \
factory_protocol.c \
factory_gnss.c \
factory_audio.c \
hal_i2c.c \
DP1312EA.c \
TypeA.c \
INC_DIRS+= \
-I${TOP_DIR}/ \
-I${TOP_DIR}/common/include \
-I${TOP_DIR}/common/include/lwipv4v6 \
-I${TOP_DIR}/common/include/fs \
-I../custom_app/inc \
-I../custom_app/lib/libnfc \
-I. \
U_FLAGS:= -include factory_nfc_compat.h
U_CPPFLAGS:=
DFLAGS+= \
-DFACTORY_TEST_BUILD \
-D__TM_ZONE=tm_zone \
-D__TM_GMTOFF=tm_gmtoff \
U_LIBS:=
include ${TOP_DIR}/config/common/makefile.mk