|
# define sources root directory before everything
|
SRC_ROOT := ../..
|
|
# change compiler and linker option before you include rule.mk
|
#
|
# link to libscript.a when you need to fetch configuration
|
# from test_script
|
#
|
#CFLAGS := $(CFLAGS) -g
|
LDFLAGS := -lscript
|
|
# include rule.mk
|
include $(SRC_ROOT)/rule.mk
|
|
# define objects collection variable
|
irtester_objs = irtester.o
|
|
# add your target(s) to all
|
.PHONY: all
|
all: irtester
|
|
# define you target, the target will be output to dragonboard/output/bin
|
# directory
|
irtester: $(irtester_objs)
|
$(LINK_MSG)
|
$(LINKX)
|
|
# change 'example_objs' to your objects collection variable
|
$(irtester_objs): %.o: %.c
|
$(COMPILE_MSG)
|
$(COMPILEX)
|