mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-20 21:37:39 +01:00
yapp.mk: Add missing -DVERSION_STR
- Add missing -DVERSION_STR - Some beautification
This commit is contained in:
parent
5cfeb04d87
commit
8f55d1b28a
1 changed files with 9 additions and 9 deletions
18
make/yapp.mk
18
make/yapp.mk
|
|
@ -1,21 +1,21 @@
|
||||||
LOCAL_CPP += main.cpp
|
LOCAL_CPP += main.cpp
|
||||||
YAPP_CLASS ?= $(firstword $(basename $(wildcard YApp*.h Y*.h *.h)))
|
YAPP_CLASS ?= $(firstword $(basename $(wildcard YApp*.h Y*.h *.h)))
|
||||||
YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h, $(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
|
YAPP_CLASS_H = $(firstword $(wildcard $(addsuffix /$(YAPP_CLASS).h,\
|
||||||
|
$(subst -I,,$(INCLUDE)))) $(YAPP_CLASS).h)
|
||||||
|
LOCAL_CFLAGS += -DVERSION_STR=\"$(VERSION)\"
|
||||||
|
LOCAL_CPPFLAGS += -DVERSION_STR=\"$(VERSION)\"
|
||||||
|
LOCAL_LDFLAGS += -rdynamic
|
||||||
|
|
||||||
|
include $(MODDIR)/make/exe.mk
|
||||||
|
|
||||||
all:
|
all:
|
||||||
install:
|
install:
|
||||||
clean: clean.yapp
|
clean: clean.yapp
|
||||||
distclean:
|
distclean:
|
||||||
|
|
||||||
include $(MODDIR)/make/exe.mk
|
|
||||||
|
|
||||||
clean.yapp:
|
clean.yapp:
|
||||||
rm -f main.cpp
|
rm -f main.cpp
|
||||||
|
|
||||||
main.cpp: $(YAPP_CLASS_H)
|
main.cpp: $(YAPP_CLASS_H)
|
||||||
echo -e "#include <YAppRunner.h>\n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@
|
echo -e "#include <YAppRunner.h>\n#include \"$<\"\nyapp_main($(YAPP_CLASS))" > $@
|
||||||
|
|
||||||
dings:
|
|
||||||
echo $(YAPP_CLASS_H)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue