File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
axevent/subscribe_to_events/app Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1- PROG = $(shell jq -r '.acapPackageConf.setup.appName' manifest.json)
1+ PROG1 = $(shell jq -r '.acapPackageConf.setup.appName' manifest.json)
2+ OBJS1 = $(PROG1 ) .c
3+
4+ PROGS = $(PROG1 )
5+ DEBUG_DIR = debug
26
37PKGS = glib-2.0 axevent
48CFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH ) pkg-config --cflags $(PKGS ) )
@@ -17,7 +21,13 @@ CFLAGS += -Wall \
1721 -W \
1822 -Werror
1923
20- all : $(PROG )
24+ all : $(PROGS )
25+
26+ $(PROG1 ) : $(OBJS1 )
27+ install -d $(DEBUG_DIR )
28+ $(CC ) $^ $(CFLAGS ) $(LIBS ) $(LDFLAGS ) -lm $(LDLIBS ) -o $(DEBUG_DIR ) /$@
29+ cp $(DEBUG_DIR ) /$@ .
30+ $(STRIP ) $@
2131
2232clean :
23- rm -f $(PROG ) * .o * .eap* * _LICENSE.txt package.conf* param.conf tmp*
33+ rm -f $(PROGS ) * .o * .eap* * _LICENSE.txt package.conf* param.conf tmp* $( DEBUG_DIR )
You can’t perform that action at this time.
0 commit comments