ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/Makefile.in
(Generate patch)

Comparing SheepShaver/src/Unix/Makefile.in (file contents):
Revision 1.19 by gbeauche, 2004-11-10T07:24:33Z vs.
Revision 1.28 by gbeauche, 2005-01-30T21:19:07Z

# Line 23 | Line 23 | LDFLAGS = @LDFLAGS@
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@
31   BLESS = @BLESS@
32 + EXEEXT = @EXEEXT@
33   KEYCODES = @KEYCODES@
34   INSTALL = @INSTALL@
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 \
# Line 41 | Line 49 | SRCS = main_unix.cpp ../prefs.cpp ../pre
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
56  
57   ## Rules
# Line 50 | Line 59 | APP_APP = $(APP).app
59   .SUFFIXES:
60   .SUFFIXES: .c .cpp .S .o .h
61  
62 < all: $(APP)
62 > all: $(APP_EXE)
63  
64   OBJ_DIR = obj
65   $(OBJ_DIR)::
# Line 72 | Line 81 | SRC_PATHS += $(sort $(foreach file, $(SR
81   VPATH :=
82   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
83  
84 < $(APP): $(OBJ_DIR) $(OBJS)
85 <        $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
86 <        $(BLESS) $(APP)
84 > $(APP_EXE): $(OBJ_DIR) $(OBJS)
85 >        $(CXX) -o $(APP_EXE) $(LDFLAGS) $(OBJS) $(LIBS)
86 >        $(BLESS) $(APP_EXE)
87  
88   $(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/SheepShaver.icns
89          mkdir -p $(APP_APP)/Contents
# Line 89 | Line 98 | $(APP)_app: $(APP) ../MacOSX/Info.plist
98   modules:
99          cd NetDriver; make
100  
101 < install: $(APP) installdirs
102 <        $(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP)
101 > install: $(APP_EXE) installdirs
102 >        $(INSTALL_PROGRAM) $(APP_EXE) $(DESTDIR)$(bindir)/$(APP_EXE)
103          -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
104          $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
105          $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
# Line 100 | Line 109 | installdirs:
109          $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
110  
111   uninstall:
112 <        rm -f $(DESTDIR)$(bindir)/$(APP)
112 >        rm -f $(DESTDIR)$(bindir)/$(APP_EXE)
113          rm -f $(DESTDIR)$(man1dir)/$(APP).1
114          rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
115          rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
116          rmdir $(DESTDIR)$(datadir)/$(APP)
117  
118   clean:
119 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
119 >        rm -f $(APP_EXE) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
120          rm -f dyngen basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
121          rm -rf $(APP_APP)
122  
# Line 134 | Line 143 | $(OBJ_DIR)/%.o : %.S
143   # Kheperix CPU emulator
144   kpxsrcdir = ../kpx_cpu/src
145   GENEXEC   = $(kpxsrcdir)/cpu/ppc/genexec.pl
146 + DYNGEN    = dyngen$(EXEEXT)
147  
148 < $(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp
149 < ppc-execute-impl.cpp: $(kpxsrcdir)/cpu/ppc/ppc-decode.cpp $(GENEXEC) basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
140 <        $(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@
148 > ifeq ($(USE_DYNGEN),yes)
149 > DYNGENDEPS = basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
150  
151 < dyngen: $(DYNGENOBJS)
151 > $(DYNGEN): $(DYNGENOBJS)
152          $(CXX) -o $@ $(LDFLAGS) $(DYNGENOBJS)
153  
154   $(OBJ_DIR)/basic-dyngen.o: basic-dyngen-ops.hpp
155   $(OBJ_DIR)/basic-dyngen-ops.o: $(kpxsrcdir)/cpu/jit/basic-dyngen-ops.cpp
156          $(DYNGEN_CC) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DYNGEN_OP_FLAGS) -c $< -o $@
157 < basic-dyngen-ops.hpp: $(OBJ_DIR)/basic-dyngen-ops.o dyngen
158 <        ./dyngen -o $@ $<
157 > basic-dyngen-ops.hpp: $(OBJ_DIR)/basic-dyngen-ops.o $(DYNGEN)
158 >        ./$(DYNGEN) -o $@ $<
159  
160   $(OBJ_DIR)/ppc-dyngen.o: ppc-dyngen-ops.hpp
161   $(OBJ_DIR)/ppc-dyngen-ops.o: $(kpxsrcdir)/cpu/ppc/ppc-dyngen-ops.cpp basic-dyngen-ops.hpp
162          $(DYNGEN_CC) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DYNGEN_OP_FLAGS) -c $< -o $@
163 < ppc-dyngen-ops.hpp: $(OBJ_DIR)/ppc-dyngen-ops.o dyngen
164 <        ./dyngen -o $@ $<
163 > ppc-dyngen-ops.hpp: $(OBJ_DIR)/ppc-dyngen-ops.o $(DYNGEN)
164 >        ./$(DYNGEN) -o $@ $<
165  
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.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines