huangcm
2025-09-01 53d8e046ac1bf2ebe94f671983e3d3be059df91a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
# 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
vrpstester_objs = vrpstester.o
 
.PHONY: all
all: vrpstester
   cp vrpstester.sh $(BINDIR)/
 
# define you target, the target will be output to dragonboard/output/bin
# directory
vrpstester: $(vrpstester_objs)
   $(LINK_MSG)
   $(LINKX)
 
# change 'vrpstester_objs' to your objects collection variable
$(vrpstester_objs): %.o: %.c
   $(COMPILE_MSG)
   $(COMPILEX)