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.10 by gbeauche, 2004-02-16T16:30:22Z vs.
Revision 1.26 by gbeauche, 2004-12-21T23:27:11Z

# Line 11 | Line 11 | datadir = @datadir@
11   mandir = @mandir@
12   man1dir = $(mandir)/man1
13  
14 + DESTDIR =
15 +
16   CC = @CC@
17   CXX = @CXX@
18   CFLAGS = @CFLAGS@
# Line 21 | Line 23 | LDFLAGS = @LDFLAGS@
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@
30   BLESS = @BLESS@
31 + EXEEXT = @EXEEXT@
32 + KEYCODES = @KEYCODES@
33   INSTALL = @INSTALL@
34   INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
35   INSTALL_DATA = @INSTALL_DATA@
36  
37 + # Append disassembler to dyngen, if available
38 + ifneq (:,$(MONSRCS):$(DYNGENSRCS))
39 + DYNGENSRCS += $(filter %i386-dis.c,$(MONSRCS))
40 + endif
41 +
42   ## Files
43   SRCS = main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp \
44      ../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \
45      ../macos_util.cpp ../timer.cpp timer_unix.cpp ../xpram.cpp xpram_unix.cpp \
46 <    ../adb.cpp clip_unix.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \
47 <    ../video.cpp video_blit.cpp video_x.cpp ../audio.cpp ../ether.cpp ../thunks.cpp \
48 <    ../serial.cpp ../extfs.cpp extfs_unix.cpp \
46 >    ../adb.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \
47 >    ../gfxaccel.cpp ../video.cpp video_blit.cpp ../audio.cpp ../ether.cpp ../thunks.cpp \
48 >    ../serial.cpp ../extfs.cpp \
49      about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
50      vm_alloc.cpp sigsegv.cpp \
51 <    sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS)
51 >    sshpty.c strlcpy.c $(SYSSRCS) $(CPUSRCS) $(MONSRCS)
52   APP = SheepShaver
53 + APP_EXE = $(APP)$(EXEEXT)
54 + APP_APP = $(APP).app
55  
56   ## Rules
57   .PHONY: modules install uninstall clean distclean depend dep
58   .SUFFIXES:
59   .SUFFIXES: .c .cpp .S .o .h
60  
61 < all: $(APP)
61 > all: $(APP_EXE)
62  
63   OBJ_DIR = obj
64   $(OBJ_DIR)::
# Line 68 | Line 80 | SRC_PATHS += $(sort $(foreach file, $(SR
80   VPATH :=
81   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
82  
83 < $(APP): $(OBJ_DIR) $(OBJS)
84 <        $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
85 <        $(BLESS) $(APP)
83 > $(APP_EXE): $(OBJ_DIR) $(OBJS)
84 >        $(CXX) -o $(APP_EXE) $(LDFLAGS) $(OBJS) $(LIBS)
85 >        $(BLESS) $(APP_EXE)
86 >
87 > $(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/SheepShaver.icns
88 >        mkdir -p $(APP_APP)/Contents
89 >        cp -f ../MacOSX/Info.plist $(APP_APP)/Contents/
90 >        echo -n 'APPL????' > $(APP_APP)/Contents/PkgInfo
91 >        mkdir -p $(APP_APP)/Contents/MacOS
92 >        cp -f $(APP) $(APP_APP)/Contents/MacOS/
93 >        strip $(APP_APP)/Contents/MacOS/$(APP)
94 >        mkdir -p $(APP_APP)/Contents/Resources
95 >        cp -f ../MacOSX/SheepShaver.icns $(APP_APP)/Contents/Resources/
96  
97   modules:
98          cd NetDriver; make
99  
100 < install: $(APP) installdirs
101 <        $(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP)
102 <        -$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1
100 > install: $(APP_EXE) installdirs
101 >        $(INSTALL_PROGRAM) $(APP_EXE) $(DESTDIR)$(bindir)/$(APP_EXE)
102 >        -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
103 >        $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
104 >        $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
105 >        chmod 755 $(DESTDIR)$(datadir)/$(APP)/tunconfig
106  
107   installdirs:
108 <        $(SHELL) mkinstalldirs $(bindir) $(man1dir)
108 >        $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
109  
110   uninstall:
111 <        rm -f $(bindir)/$(APP)
112 <        rm -f $(man1dir)/$(APP).1
111 >        rm -f $(DESTDIR)$(bindir)/$(APP_EXE)
112 >        rm -f $(DESTDIR)$(man1dir)/$(APP).1
113 >        rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
114 >        rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
115 >        rmdir $(DESTDIR)$(datadir)/$(APP)
116  
117   clean:
118 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
118 >        rm -f $(APP_EXE) $(OBJ_DIR)/* core* *.core *~ *.bak ppc-execute-impl.cpp
119          rm -f dyngen basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
120 +        rm -rf $(APP_APP)
121  
122   distclean: clean
123          rm -rf $(OBJ_DIR)
124          rm -f Makefile
125          rm -f config.cache config.log config.status config.h
126 +        rm -f ../MacOSX/Info.plist
127  
128   depend dep:
129          makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
# Line 102 | Line 132 | $(OBJ_DIR)/%.o : %.c
132          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
133   $(OBJ_DIR)/%.o : %.cpp
134          $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
135 + $(OBJ_DIR)/%.o : %.mm
136 +        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
137   $(OBJ_DIR)/%.o : %.S
138          $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ $< -o $*.s
139          $(AS) $(ASFLAGS) -o $@ $*.s
140          rm $*.s
141  
142   # Kheperix CPU emulator
143 < GENEXEC = ../kpx_cpu/src/cpu/ppc/genexec.pl
143 > kpxsrcdir = ../kpx_cpu/src
144 > GENEXEC   = $(kpxsrcdir)/cpu/ppc/genexec.pl
145 > DYNGEN    = dyngen$(EXEEXT)
146  
147 < $(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp
148 < ppc-execute-impl.cpp: ../kpx_cpu/src/cpu/ppc/ppc-decode.cpp $(GENEXEC)
115 <        $(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@
147 > ifneq ($(DYNGENSRCS),)
148 > DYNGENDEPS = basic-dyngen-ops.hpp ppc-dyngen-ops.hpp
149  
150 < dyngen: $(DYNGENOBJS)
150 > $(DYNGEN): $(DYNGENOBJS)
151          $(CXX) -o $@ $(LDFLAGS) $(DYNGENOBJS)
152  
153   $(OBJ_DIR)/basic-dyngen.o: basic-dyngen-ops.hpp
154 < $(OBJ_DIR)/basic-dyngen-ops.o: ../kpx_cpu/src/cpu/jit/basic-dyngen-ops.cpp
154 > $(OBJ_DIR)/basic-dyngen-ops.o: $(kpxsrcdir)/cpu/jit/basic-dyngen-ops.cpp
155          $(DYNGEN_CC) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DYNGEN_OP_FLAGS) -c $< -o $@
156 < basic-dyngen-ops.hpp: $(OBJ_DIR)/basic-dyngen-ops.o dyngen
157 <        ./dyngen -o $@ $<
156 > basic-dyngen-ops.hpp: $(OBJ_DIR)/basic-dyngen-ops.o $(DYNGEN)
157 >        ./$(DYNGEN) -o $@ $<
158  
159   $(OBJ_DIR)/ppc-dyngen.o: ppc-dyngen-ops.hpp
160 < $(OBJ_DIR)/ppc-dyngen-ops.o: ../kpx_cpu/src/cpu/ppc/ppc-dyngen-ops.cpp
160 > $(OBJ_DIR)/ppc-dyngen-ops.o: $(kpxsrcdir)/cpu/ppc/ppc-dyngen-ops.cpp basic-dyngen-ops.hpp
161          $(DYNGEN_CC) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DYNGEN_OP_FLAGS) -c $< -o $@
162 < ppc-dyngen-ops.hpp: $(OBJ_DIR)/ppc-dyngen-ops.o dyngen
163 <        ./dyngen -o $@ $<
162 > ppc-dyngen-ops.hpp: $(OBJ_DIR)/ppc-dyngen-ops.o $(DYNGEN)
163 >        ./$(DYNGEN) -o $@ $<
164 >
165 > $(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
166 > endif
167 >
168 > $(OBJ_DIR)/ppc-execute.o: ppc-execute-impl.cpp
169 > ppc-execute-impl.cpp: $(kpxsrcdir)/cpu/ppc/ppc-decode.cpp $(GENEXEC) $(DYNGENDEPS)
170 >        $(CPP) $(CPPFLAGS) -DGENEXEC $< | $(GENEXEC) > $@
171 >
172 > # PowerPC CPU tester
173 > 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
174 > ifneq ($(DYNGENSRCS),)
175 > TESTSRCS_ += cpu/jit/jit-cache.cpp cpu/jit/basic-dyngen.cpp cpu/ppc/ppc-dyngen.cpp
176 > endif
177 > TESTSRCS  = $(TESTSRCS_:%.cpp=$(kpxsrcdir)/%.cpp)
178 >
179 > define TESTSRCS_LIST_TO_OBJS
180 >        $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(TESTSRCS), \
181 >        $(basename $(notdir $(file))))))
182 > endef
183 > TESTOBJS  = $(TESTSRCS_LIST_TO_OBJS)
184 >
185 > $(OBJ_DIR)/test-powerpc.o: $(kpxsrcdir)/test/test-powerpc.cpp
186 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DEMU_KHEPERIX -c $< -o $@
187 >
188 > test-powerpc$(EXEEXT): $(TESTOBJS)
189 >        $(CXX) -o $@ $(LDFLAGS) $(TESTOBJS) $(LIBS)
190  
191   #-------------------------------------------------------------------------
192   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines