23 |
|
LIBS = @LIBS@ |
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 \ |
49 |
|
../serial.cpp ../extfs.cpp \ |
50 |
|
about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \ |
51 |
|
vm_alloc.cpp sigsegv.cpp \ |
52 |
< |
sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS) |
52 |
> |
sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS) $(MONSRCS) |
53 |
|
APP = SheepShaver |
54 |
|
APP_EXE = $(APP)$(EXEEXT) |
55 |
|
APP_APP = $(APP).app |
145 |
|
GENEXEC = $(kpxsrcdir)/cpu/ppc/genexec.pl |
146 |
|
DYNGEN = dyngen$(EXEEXT) |
147 |
|
|
148 |
< |
$(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp |
142 |
< |
ppc-execute-impl.cpp: $(kpxsrcdir)/cpu/ppc/ppc-decode.cpp $(GENEXEC) $(DYNGENDEPS) |
143 |
< |
$(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@ |
144 |
< |
|
145 |
< |
ifneq ($(DYNGENSRCS),) |
148 |
> |
ifeq ($(USE_DYNGEN),yes) |
149 |
|
DYNGENDEPS = basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
150 |
|
|
148 |
– |
basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
151 |
|
$(DYNGEN): $(DYNGENOBJS) |
152 |
|
$(CXX) -o $@ $(LDFLAGS) $(DYNGENOBJS) |
153 |
|
|
166 |
|
$(OBJ_DIR)/sheepshaver_glue.o $(OBJ_DIR)/ppc-cpu.o $(OBJ_DIR)/ppc-decode.o $(OBJ_DIR)/ppc-translate.o: basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
167 |
|
endif |
168 |
|
|
169 |
+ |
$(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp |
170 |
+ |
ppc-execute-impl.cpp: $(kpxsrcdir)/cpu/ppc/ppc-decode.cpp $(GENEXEC) $(DYNGENDEPS) |
171 |
+ |
$(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@ |
172 |
+ |
|
173 |
+ |
# PowerPC CPU tester |
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 |
181 |
+ |
$(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(TESTSRCS), \ |
182 |
+ |
$(basename $(notdir $(file)))))) |
183 |
+ |
endef |
184 |
+ |
TESTOBJS = $(TESTSRCS_LIST_TO_OBJS) |
185 |
+ |
|
186 |
+ |
$(OBJ_DIR)/test-powerpc.o: $(kpxsrcdir)/test/test-powerpc.cpp |
187 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DEMU_KHEPERIX -c $< -o $@ |
188 |
+ |
|
189 |
+ |
test-powerpc$(EXEEXT): $(TESTOBJS) |
190 |
+ |
$(CXX) -o $@ $(LDFLAGS) $(TESTOBJS) $(LIBS) |
191 |
+ |
|
192 |
|
#------------------------------------------------------------------------- |
193 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |