Allow binding commands to class instance
[lsnes.git] / src / cmdhelp / Makefile
blobafe2cf0b52b683ca16c71af13fe95689a5ba0799
1 ALLFILES=__all__.files
2 ALLFLAGS=__all__.ldflags
4 JSON_FILES=$(wildcard *.json)
5 JSON_SRC=$(patsubst %.json,%.cpp,$(JSON_FILES))
6 JSON_OBJECTS=$(patsubst %.json,%.$(OBJECT_SUFFIX),$(JSON_FILES))
8 __all__.files: $(JSON_OBJECTS) inverselist.$(OBJECT_SUFFIX)
9 lua ../genfilelist.lua $^ >$@
10 touch $(ALLFLAGS)
12 mkstubs.exe: mkstubs.cpp ../library/json.cpp ../library/utf8.cpp ../library/string.cpp ../library/hex.cpp ../library/eatarg.cpp ../library/int24.cpp
13 $(HOSTCC) -g -std=gnu++0x -I../../include/library -o $@ $^ -lboost_regex$(HOST_BOOST_POSTFIX) -lboost_system$(HOST_BOOST_POSTFIX) -Wall
15 mkstubsi.exe: mkstubsi.cpp ../library/json.cpp ../library/utf8.cpp ../library/string.cpp ../library/hex.cpp ../library/eatarg.cpp ../library/int24.cpp
16 $(HOSTCC) -g -std=gnu++0x -I../../include/library -o $@ $^ -lboost_regex$(HOST_BOOST_POSTFIX) -lboost_system$(HOST_BOOST_POSTFIX) -Wall
18 inverselist.cpp: $(JSON_FILES) mkstubsi.exe
19 ./mkstubsi.exe $^
21 %.cpp: %.json mkstubs.exe
22 ./mkstubs.exe $<
23 mv *.hpp ../../include/cmdhelp
25 %.$(OBJECT_SUFFIX): %.cpp
26 $(REALCC) $(CFLAGS) -c -o $@ $< -I../../include -Wall
29 .PRECIOUS: %.$(OBJECT_SUFFIX) %.files
31 precheck:
32 @true
34 clean:
35 rm -f *.$(OBJECT_SUFFIX) $(JSON_SRC) inverselist.cpp __all__.ldflags __all__.files
36 rm -f mkstubs.exe
38 forcelook:
39 @true