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 |
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_ = 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 |
+ |
ifneq ($(DYNGENSRCS),) |
170 |
+ |
TESTSRCS_ = cpu/jit/jit-cache.cpp cpu/jit/basic-dyngen.cpp cpu/ppc/ppc-dyngen.cpp $(TESTSRCS_) |
171 |
+ |
endif |
172 |
+ |
TESTSRCS = $(TESTSRCS_:%.cpp=$(kpxsrcdir)/%.cpp) |
173 |
+ |
|
174 |
+ |
define TESTSRCS_LIST_TO_OBJS |
175 |
+ |
$(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(TESTSRCS), \ |
176 |
+ |
$(basename $(notdir $(file)))))) |
177 |
+ |
endef |
178 |
+ |
TESTOBJS = $(TESTSRCS_LIST_TO_OBJS) |
179 |
+ |
|
180 |
+ |
$(OBJ_DIR)/test-powerpc.o: $(kpxsrcdir)/test/test-powerpc.cpp |
181 |
+ |
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DEMU_KHEPERIX -c $< -o $@ |
182 |
+ |
|
183 |
+ |
test-powerpc$(EXEEXT): $(TESTOBJS) |
184 |
+ |
$(CXX) -o $@ $(LDFLAGS) $(TESTOBJS) $(LIBS) |
185 |
+ |
|
186 |
|
#------------------------------------------------------------------------- |
187 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |