lsnes rr2-β24
[lsnes.git] / src / emulation / Makefile
blob682a635d9b0f07f9af3a1df392eecdae6d4ba0da
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$(DOT_EXECUTABLE_SUFFIX): make-ports.cpp ../library/json.cpp ../library/utf8.cpp ../library/string.cpp ../library/portctrl-parse.cpp ../library/portctrl-data.cpp ../library/sha256.cpp ../library/assembler.cpp ../library/hex.cpp ../library/eatarg.cpp ../library/int24.cpp ../library/binarystream.cpp ../library/integer-pool.cpp ../library/memtracker.cpp
12 $(HOSTCC) -g -std=gnu++0x -I../../include/library -o $@ $^ $(HOSTHELPER_LDFLAGS) -Wall -DNO_ASM_GENERATION
14 bsnes-legacy/$(ALLFILES): forcelook make-ports$(DOT_EXECUTABLE_SUFFIX)
15 $(MAKE) -C bsnes-legacy
17 gambatte/$(ALLFILES): forcelook make-ports$(DOT_EXECUTABLE_SUFFIX)
18 $(MAKE) -C gambatte
20 sky/$(ALLFILES): forcelook make-ports$(DOT_EXECUTABLE_SUFFIX)
21 $(MAKE) -C sky
23 test/$(ALLFILES): forcelook make-ports$(DOT_EXECUTABLE_SUFFIX)
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$(DOT_EXECUTABLE_SUFFIX)
42 forcelook:
43 @true