Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions axevent/subscribe_to_events/app/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
PROG = $(shell jq -r '.acapPackageConf.setup.appName' manifest.json)
PROG1 = $(shell jq -r '.acapPackageConf.setup.appName' manifest.json)
OBJS1 = $(PROG1).c

PROGS = $(PROG1)
DEBUG_DIR = debug

PKGS = glib-2.0 axevent
CFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags $(PKGS))
Expand All @@ -17,7 +21,13 @@ CFLAGS += -Wall \
-W \
-Werror

all: $(PROG)
all: $(PROGS)

$(PROG1): $(OBJS1)
install -d $(DEBUG_DIR)
$(CC) $^ $(CFLAGS) $(LIBS) $(LDFLAGS) -lm $(LDLIBS) -o $(DEBUG_DIR)/$@
cp $(DEBUG_DIR)/$@ .
$(STRIP) $@

clean:
rm -f $(PROG) *.o *.eap* *_LICENSE.txt package.conf* param.conf tmp*
rm -f $(PROGS) *.o *.eap* *_LICENSE.txt package.conf* param.conf tmp* $(DEBUG_DIR)