Back movie data off movie file structure
[lsnes.git] / src / emulation / Makefile
blob65e8406e9a5a8ae02f80de1676de823870b6cadb
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 ../library/json.cpp ../library/utf8.cpp ../library/string.cpp ../library/controller-parse.cpp ../library/controller-data.cpp ../library/sha256.cpp ../library/assembler.cpp ../library/hex.cpp ../library/eatarg.cpp ../library/int24.cpp ../library/binarystream.cpp ../library/integer-pool.cpp
12 $(HOSTCC) -g -std=gnu++0x -I../../include/library -o $@ $^ -lboost_regex$(HOST_BOOST_POSTFIX) -lboost_system$(HOST_BOOST_POSTFIX)
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
40 rm -f make-ports.exe
42 forcelook:
43 @true