24 |
|
SYSSRCS = @SYSSRCS@ |
25 |
|
CPUSRCS = @CPUSRCS@ |
26 |
|
MONSRCS = @MONSRCS@ |
27 |
+ |
USE_DYNGEN = @USE_DYNGEN@ |
28 |
|
DYNGENSRCS = @DYNGENSRCS@ |
29 |
|
DYNGEN_CC = @DYNGEN_CC@ |
30 |
|
DYNGEN_OP_FLAGS = @DYNGEN_OP_FLAGS@ |
35 |
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s |
36 |
|
INSTALL_DATA = @INSTALL_DATA@ |
37 |
|
|
38 |
+ |
# Append disassembler to dyngen, if available |
39 |
+ |
ifneq (:no,$(MONSRCS):$(USE_DYNGEN)) |
40 |
+ |
DYNGENSRCS += $(filter %i386-dis.c,$(MONSRCS)) |
41 |
+ |
endif |
42 |
+ |
|
43 |
|
## Files |
44 |
< |
SRCS = main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp \ |
44 |
> |
SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp \ |
45 |
|
../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \ |
46 |
|
../macos_util.cpp ../timer.cpp timer_unix.cpp ../xpram.cpp xpram_unix.cpp \ |
47 |
|
../adb.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \ |
145 |
|
GENEXEC = $(kpxsrcdir)/cpu/ppc/genexec.pl |
146 |
|
DYNGEN = dyngen$(EXEEXT) |
147 |
|
|
148 |
< |
ifneq ($(DYNGENSRCS),) |
148 |
> |
ifeq ($(USE_DYNGEN),yes) |
149 |
|
DYNGENDEPS = basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
150 |
|
|
151 |
|
$(DYNGEN): $(DYNGENOBJS) |
171 |
|
$(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@ |
172 |
|
|
173 |
|
# PowerPC CPU tester |
174 |
< |
TESTSRCS_ = cpu/jit/jit-cache.cpp cpu/jit/basic-dyngen.cpp cpu/ppc/ppc-dyngen.cpp mathlib/ieeefp.cpp cpu/ppc/ppc-cpu.cpp cpu/ppc/ppc-decode.cpp cpu/ppc/ppc-execute.cpp cpu/ppc/ppc-translate.cpp test/test-powerpc.cpp $(MONSRCS) vm_alloc.cpp |
174 |
> |
TESTSRCS_ = mathlib/ieeefp.cpp cpu/ppc/ppc-cpu.cpp cpu/ppc/ppc-decode.cpp cpu/ppc/ppc-execute.cpp cpu/ppc/ppc-translate.cpp test/test-powerpc.cpp $(MONSRCS) vm_alloc.cpp |
175 |
> |
ifeq ($(USE_DYNGEN),yes) |
176 |
> |
TESTSRCS_ += cpu/jit/jit-cache.cpp cpu/jit/basic-dyngen.cpp cpu/ppc/ppc-dyngen.cpp |
177 |
> |
endif |
178 |
|
TESTSRCS = $(TESTSRCS_:%.cpp=$(kpxsrcdir)/%.cpp) |
179 |
|
|
180 |
|
define TESTSRCS_LIST_TO_OBJS |