Skip to content

Commit 186a0f7

Browse files
Align subscribe_to_events Makefile (#415)
Co-authored-by: GHakansson <[email protected]>
1 parent 05abf1a commit 186a0f7

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

axevent/subscribe_to_events/app/Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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

37
PKGS = glib-2.0 axevent
48
CFLAGS += $(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

2232
clean:
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)

0 commit comments

Comments
 (0)