mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-18 18:05:21 +00:00
Change required for GCC 3.1 (stdc++ library needed in C++ program link),
general tidy-up (now use G++ to compile several files at once for gencpu)
This commit is contained in:
parent
162cc94bcd
commit
ce0bca286f
@ -9,7 +9,7 @@ CC = @CC@
|
||||
CXX = @CXX@
|
||||
CFLAGS = @CFLAGS@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CPPFLAGS = @CPPFLAGS@ -I../include -I. -I../uae_cpu
|
||||
CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
|
||||
DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
@ -84,20 +84,9 @@ $(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
|
||||
$(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
|
||||
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
|
||||
|
||||
#$(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@
|
||||
$(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
|
||||
$(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
|
||||
|
||||
$(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
|
||||
$(OBJ_DIR)/gencpu.o : ../uae_cpu/gencpu.c
|
||||
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(OBJ_DIR)/readcpu.o: ../uae_cpu/readcpu.cpp
|
||||
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
$(OBJ_DIR)/cpudefs.o: cpudefs.cpp
|
||||
$(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
|
||||
cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
|
||||
@ -132,23 +121,6 @@ cpuemu8.cpp: cpuemu.cpp
|
||||
echo '#define PART_8' > $@
|
||||
echo '#include "$<"' >> $@
|
||||
|
||||
#cpuemu1.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -E $< > $@
|
||||
#cpuemu2.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -E $< > $@
|
||||
#cpuemu3.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -E $< > $@
|
||||
#cpuemu4.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -E $< > $@
|
||||
#cpuemu5.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -E $< > $@
|
||||
#cpuemu6.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -E $< > $@
|
||||
#cpuemu7.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -E $< > $@
|
||||
#cpuemu8.cpp: cpuemu.cpp
|
||||
# $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -E $< > $@
|
||||
|
||||
|
||||
cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
|
||||
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
|
||||
|
Loading…
Reference in New Issue
Block a user