JSON-based controller descriptions
[lsnes.git] / src / emulation / Makefile
blob2a6f8824abc96bcbcce725722a1d7f87738b6845
1 CORES=bsnes-legacy gambatte sky test
2 ALLFILES=__all__.files
3 ALLFLAGS=__all__.ldflags
4 CORES_FILES=$(patsubst %,%/$(ALLFILES),$(CORES))
5 CORES_FLAGS=$(patsubst %,%/$(ALLFLAGS),$(CORES))
7 __all__.files: $(CORES_FILES)
8 lua ../genfilelist.lua $^ >$@
9 cat $(CORES_FLAGS) >$(ALLFLAGS)
11 make-ports.exe: make-ports.cpp
12 $(HOSTCC) -g -std=gnu++0x -I../../include/library -o $@ $< ../library/json.cpp ../library/utf8.cpp ../library/string.cpp ../library/controller-parse.cpp ../library/controller-data.cpp ../library/sha256.cpp -lboost_regex -lboost_system
14 bsnes-legacy/$(ALLFILES): forcelook make-ports.exe
15 $(MAKE) -C bsnes-legacy
17 gambatte/$(ALLFILES): forcelook make-ports.exe
18 $(MAKE) -C gambatte
20 sky/$(ALLFILES): forcelook make-ports.exe
21 $(MAKE) -C sky
23 test/$(ALLFILES): forcelook make-ports.exe
24 $(MAKE) -C test
26 .PRECIOUS: %.$(OBJECT_SUFFIX) %.files
28 precheck:
29 $(MAKE) -C bsnes-legacy precheck
30 $(MAKE) -C gambatte precheck
31 $(MAKE) -C sky precheck
32 $(MAKE) -C test precheck
34 clean:
35 rm -f *.$(OBJECT_SUFFIX) __all__.ldflags __all__.files
36 $(MAKE) -C bsnes-legacy clean
37 $(MAKE) -C gambatte clean
38 $(MAKE) -C sky clean
39 $(MAKE) -C test clean
41 forcelook:
42 @true