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
$^
>$@
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
21 %.
cpp: %.json mkstubs.exe
23 mv
*.hpp ..
/..
/include/cmdhelp
25 %.
$(OBJECT_SUFFIX
): %.
cpp
26 $(REALCC
) $(CFLAGS
) -c
-o
$@
$< -I..
/..
/include -Wall
29 .PRECIOUS
: %.
$(OBJECT_SUFFIX
) %.files
35 rm -f
*.
$(OBJECT_SUFFIX
) $(JSON_SRC
) inverselist.
cpp __all__.
ldflags __all__.files