23 |
|
LIBS = @LIBS@ |
24 |
|
SYSSRCS = @SYSSRCS@ |
25 |
|
CPUSRCS = @CPUSRCS@ |
26 |
+ |
MONSRCS = @MONSRCS@ |
27 |
|
DYNGENSRCS = @DYNGENSRCS@ |
28 |
|
DYNGEN_CC = @DYNGEN_CC@ |
29 |
|
DYNGEN_OP_FLAGS = @DYNGEN_OP_FLAGS@ |
43 |
|
../serial.cpp ../extfs.cpp \ |
44 |
|
about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \ |
45 |
|
vm_alloc.cpp sigsegv.cpp \ |
46 |
< |
sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS) |
46 |
> |
sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS) $(MONSRCS) |
47 |
|
APP = SheepShaver |
48 |
|
APP_EXE = $(APP)$(EXEEXT) |
49 |
|
APP_APP = $(APP).app |
139 |
|
GENEXEC = $(kpxsrcdir)/cpu/ppc/genexec.pl |
140 |
|
DYNGEN = dyngen$(EXEEXT) |
141 |
|
|
141 |
– |
$(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 |
– |
|
142 |
|
ifneq ($(DYNGENSRCS),) |
143 |
|
DYNGENDEPS = basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
144 |
|
|
148 |
– |
basic-dyngen-ops.hpp ppc-dyngen-ops.hpp |
145 |
|
$(DYNGEN): $(DYNGENOBJS) |
146 |
|
$(CXX) -o $@ $(LDFLAGS) $(DYNGENOBJS) |
147 |
|
|
160 |
|
$(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 |
161 |
|
endif |
162 |
|
|
163 |
+ |
$(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp |
164 |
+ |
ppc-execute-impl.cpp: $(kpxsrcdir)/cpu/ppc/ppc-decode.cpp $(GENEXEC) $(DYNGENDEPS) |
165 |
+ |
$(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@ |
166 |
+ |
|
167 |
+ |
# PowerPC CPU tester |
168 |
+ |
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 |
169 |
+ |
TESTSRCS = $(TESTSRCS_:%.cpp=$(kpxsrcdir)/%.cpp) |
170 |
+ |
|
171 |
+ |
define TESTSRCS_LIST_TO_OBJS |
172 |
+ |
$(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(TESTSRCS), \ |
173 |
+ |
$(basename $(notdir $(file)))))) |
174 |
+ |
endef |
175 |
+ |
TESTOBJS = $(TESTSRCS_LIST_TO_OBJS) |
176 |
+ |
|
177 |
+ |
$(OBJ_DIR)/test-powerpc.o: $(kpxsrcdir)/test/test-powerpc.cpp |
178 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DEMU_KHEPERIX -c $< -o $@ |
179 |
+ |
|
180 |
+ |
test-powerpc$(EXEEXT): $(TESTOBJS) |
181 |
+ |
$(CXX) -o $@ $(LDFLAGS) $(TESTOBJS) $(LIBS) |
182 |
+ |
|
183 |
|
#------------------------------------------------------------------------- |
184 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |