1 CORES
=bsnes-legacy gambatte sky
test
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
)
20 sky
/$(ALLFILES
): forcelook make-ports
$(DOT_EXECUTABLE_SUFFIX
)
23 test/$(ALLFILES
): forcelook make-ports
$(DOT_EXECUTABLE_SUFFIX
)
26 .PRECIOUS
: %.
$(OBJECT_SUFFIX
) %.files
29 $(MAKE
) -C bsnes-legacy precheck
30 $(MAKE
) -C gambatte precheck
31 $(MAKE
) -C sky precheck
32 $(MAKE
) -C
test precheck
35 rm -f
*.
$(OBJECT_SUFFIX
) __all__.
ldflags __all__.files
36 $(MAKE
) -C bsnes-legacy
clean
37 $(MAKE
) -C gambatte
clean
40 rm -f make-ports
$(DOT_EXECUTABLE_SUFFIX
)