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

Comparing BasiliskII/src/Unix/Makefile.in (file contents):
Revision 1.24 by cebix, 2002-07-31T16:46:14Z vs.
Revision 1.47 by asvitkine, 2009-02-19T06:52:03Z

# Line 11 | Line 11 | datadir = @datadir@
11   mandir = @mandir@
12   man1dir = $(mandir)/man1
13  
14 + KEYCODES = @KEYCODES@
15 +
16   DESTDIR =
17  
18   CC = @CC@
19   CXX = @CXX@
20   CFLAGS = @CFLAGS@
21   CXXFLAGS = @CXXFLAGS@
22 < CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
22 > CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ -I../slirp
23   DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
24   LDFLAGS = @LDFLAGS@
25   LIBS = @LIBS@
26   SYSSRCS = @SYSSRCS@
27   CPUSRCS = @CPUSRCS@
28 + BLESS = @BLESS@
29 + EXEEXT = @EXEEXT@
30   INSTALL = @INSTALL@
31   INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
32   INSTALL_DATA = @INSTALL_DATA@
33  
34 + SLIRP_CFLAGS = @SLIRP_CFLAGS@
35 + SLIRP_SRCS = @SLIRP_SRCS@
36 + SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=obj/%.o)
37 +
38 + STANDALONE_GUI = @STANDALONE_GUI@
39 + GUI_CFLAGS = @GUI_CFLAGS@
40 + GUI_LIBS = @GUI_LIBS@
41 + GUI_SRCS = ../prefs.cpp prefs_unix.cpp prefs_editor_gtk.cpp ../prefs_items.cpp \
42 +        ../user_strings.cpp user_strings_unix.cpp xpram_unix.cpp sys_unix.cpp rpc_unix.cpp
43 +
44   ## Files
45   SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \
46      sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
47      ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
48 <    timer_unix.cpp clip_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
48 >    timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
49      ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \
50 <    video_x.cpp vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \
51 <        ../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \
52 <    $(SYSSRCS) $(CPUSRCS)
50 >    vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp \
51 >        ../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c rpc_unix.cpp \
52 >    $(SYSSRCS) $(CPUSRCS) $(SLIRP_SRCS)
53   APP = BasiliskII
54 + APP_APP = $(APP).app
55 +
56 + PROGS = $(APP)$(EXEEXT)
57 + ifeq ($(STANDALONE_GUI),yes)
58 + GUI_APP = BasiliskIIGUI
59 + GUI_APP_APP = $(GUI_APP).app
60 + PROGS += $(GUI_APP)$(EXEEXT)
61 + else
62 + CXXFLAGS += $(GUI_CFLAGS)
63 + LIBS += $(GUI_LIBS)
64 + endif
65  
66   ## Rules
67   .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
68   .SUFFIXES:
69   .SUFFIXES: .c .cpp .s .o .h
70  
71 < all: $(APP)
71 > all: $(PROGS)
72  
73   OBJ_DIR = obj
74   $(OBJ_DIR)::
# Line 55 | Line 80 | define SRCS_LIST_TO_OBJS
80   endef
81   OBJS = $(SRCS_LIST_TO_OBJS)
82  
83 + define GUI_SRCS_LIST_TO_OBJS
84 +        $(addprefix $(OBJ_DIR)/, $(addsuffix .go, $(foreach file, $(GUI_SRCS), \
85 +        $(basename $(notdir $(file))))))
86 + endef
87 + GUI_OBJS = $(GUI_SRCS_LIST_TO_OBJS)
88 +
89   SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
90   VPATH :=
91   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
92  
93 < $(APP): $(OBJ_DIR) $(OBJS)
94 <        $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
93 > $(APP)$(EXEEXT): $(OBJ_DIR) $(OBJS)
94 >        $(CXX) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
95 >        $(BLESS) $(APP)$(EXEEXT)
96 >
97 > $(GUI_APP)$(EXEEXT): $(OBJ_DIR) $(GUI_OBJS)
98 >        $(CXX) -o $@ $(LDFLAGS) $(GUI_OBJS) $(GUI_LIBS)
99 >
100 > $(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
101 >        rm -rf $(APP_APP)/Contents
102 >        mkdir -p $(APP_APP)/Contents
103 >        ./cpr.sh ../MacOSX/Info.plist $(APP_APP)/Contents/
104 >        echo -n 'APPL????' > $(APP_APP)/Contents/PkgInfo
105 >        mkdir -p $(APP_APP)/Contents/MacOS
106 >        ./cpr.sh $(APP) $(APP_APP)/Contents/MacOS/
107 >        strip -x $(APP_APP)/Contents/MacOS/$(APP)
108 >        mkdir -p $(APP_APP)/Contents/Resources
109 >        ./cpr.sh ../MacOSX/$(APP).icns $(APP_APP)/Contents/Resources/
110 >
111 > $(GUI_APP)_app: $(GUI_APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
112 >        rm -rf $(GUI_APP_APP)/Contents
113 >        mkdir -p $(GUI_APP_APP)/Contents
114 >        sed -e "s/$(APP)/$(GUI_APP)/" < ../MacOSX/Info.plist > $(GUI_APP_APP)/Contents/Info.plist
115 >        echo -n 'APPL????' > $(GUI_APP_APP)/Contents/PkgInfo
116 >        mkdir -p $(GUI_APP_APP)/Contents/MacOS
117 >        ./cpr.sh $(GUI_APP) $(GUI_APP_APP)/Contents/MacOS/
118 >        strip -x $(GUI_APP_APP)/Contents/MacOS/$(GUI_APP)
119 >        mkdir -p $(GUI_APP_APP)/Contents/Resources
120 >        ./cpr.sh ../MacOSX/$(APP).icns $(GUI_APP_APP)/Contents/Resources/$(GUI_APP).icns
121  
122   modules:
123          cd Linux/NetDriver; make
124  
125 < install: $(APP) installdirs
126 <        $(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP)
125 > install: $(PROGS) installdirs
126 >        $(INSTALL_PROGRAM) $(APP)$(EXEEXT) $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
127 >        if test -f "$(GUI_APP)$(EXEEXT)"; then \
128 >          $(INSTALL_PROGRAM) $(GUI_APP)$(EXEEXT) $(DESTDIR)$(bindir)/$(GUI_APP)$(EXEEXT); \
129 >        fi
130          -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
131 <        $(INSTALL_DATA) keycodes $(DESTDIR)$(datadir)/$(APP)/keycodes
131 >        $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
132          $(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices
133 +        $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
134  
135   installdirs:
136          $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
137  
138   uninstall:
139 <        rm -f $(DESTDIR)$(bindir)/$(APP)
139 >        rm -f $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
140 >        rm -f $(DESTDIR)$(bindir)/$(GUI_APP)$(EXEEXT)
141          rm -f $(DESTDIR)$(man1dir)/$(APP).1
142          rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
143          rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices
144 +        rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
145          rmdir $(DESTDIR)$(datadir)/$(APP)
146  
147   mostlyclean:
148 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
148 >        rm -f $(PROGS) $(OBJ_DIR)/* core* *.core *~ *.bak
149  
150   clean: mostlyclean
151 <        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h
151 >        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
152  
153   distclean: clean
154          rm -rf $(OBJ_DIR)
155 +        rm -rf autom4te.cache
156          rm -f Makefile
157          rm -f config.cache config.log config.status config.h
158 +        rm -f Darwin/lowmem Darwin/pagezero
159  
160   depend dep:
161          makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
162  
163 + $(OBJ_DIR)/%.o : ../slirp/%.c
164 +        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(SLIRP_CFLAGS) -c $< -o $@
165   $(OBJ_DIR)/%.o : %.c
166          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
167   $(OBJ_DIR)/%.o : %.cpp
168          $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
169 + $(OBJ_DIR)/%.o : %.mm
170 +        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
171   $(OBJ_DIR)/%.o : %.s
172          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
173 + $(OBJ_DIR)/%.go : %.cpp
174 +        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(GUI_CFLAGS) -DSTANDALONE_GUI -c $< -o $@
175 +
176 + # Windows resources
177 + $(OBJ_DIR)/%.o: %.rc
178 +        windres --include-dir ../Windows -i $< -o $@
179 +
180 + $(OBJ_DIR)/build68k$(EXEEXT): $(OBJ_DIR)/build68k.o
181 +        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k$(EXEEXT) $(OBJ_DIR)/build68k.o
182 + $(OBJ_DIR)/gencpu$(EXEEXT): $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
183 +        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu$(EXEEXT) $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
184 + $(OBJ_DIR)/gencomp$(EXEEXT): $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
185 +        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp$(EXEEXT) $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
186  
187 < $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
188 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
107 < $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
108 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
109 < $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
110 <        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
111 < cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
112 <        $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
187 > cpudefs.cpp: $(OBJ_DIR)/build68k$(EXEEXT) ../uae_cpu/table68k
188 >        $(OBJ_DIR)/build68k$(EXEEXT) <../uae_cpu/table68k >cpudefs.cpp
189   cpustbl.cpp: cpuemu.cpp
190 + cpustbl_nf.cpp: cpustbl.cpp
191 + compstbl.cpp: compemu.cpp
192   cputbl.h: cpuemu.cpp
193 + comptbl.h: compemu.cpp
194 +
195 + cpuemu.cpp: $(OBJ_DIR)/gencpu$(EXEEXT)
196 +        $(OBJ_DIR)/gencpu$(EXEEXT)
197  
198 < cpuemu.cpp: $(OBJ_DIR)/gencpu
199 <        $(OBJ_DIR)/gencpu
198 > compemu.cpp: $(OBJ_DIR)/gencomp$(EXEEXT)
199 >        $(OBJ_DIR)/gencomp$(EXEEXT)
200 >
201 > $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
202 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
203 >
204 > $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
205 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
206  
207   $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
208          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
# Line 133 | Line 221 | $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
221   $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
222          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
223  
224 < cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
225 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
226 <        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
227 <        rm -f cputmp.s
228 < cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
229 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
230 <        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
231 <        rm -f cputmp1.s
232 < cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
233 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
234 <        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
235 <        rm -f cputmp2.s
236 < cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
237 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
238 <        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
239 <        rm -f cputmp3.s
240 < cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
241 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
242 <        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
243 <        rm -f cputmp4.s
244 < cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
245 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
246 <        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
247 <        rm -f cputmp5.s
248 < cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
249 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
250 <        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
251 <        rm -f cputmp6.s
252 < cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
253 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
254 <        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
255 <        rm -f cputmp7.s
256 < cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
169 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
170 <        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
171 <        rm -f cputmp8.s
224 > $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
225 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
226 > $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
227 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
228 > $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
229 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
230 > $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
231 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
232 > $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
233 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
234 > $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
235 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
236 > $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
237 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
238 > $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
239 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
240 >
241 > $(OBJ_DIR)/compemu1.o: compemu.cpp
242 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
243 > $(OBJ_DIR)/compemu2.o: compemu.cpp
244 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
245 > $(OBJ_DIR)/compemu3.o: compemu.cpp
246 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
247 > $(OBJ_DIR)/compemu4.o: compemu.cpp
248 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
249 > $(OBJ_DIR)/compemu5.o: compemu.cpp
250 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
251 > $(OBJ_DIR)/compemu6.o: compemu.cpp
252 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
253 > $(OBJ_DIR)/compemu7.o: compemu.cpp
254 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
255 > $(OBJ_DIR)/compemu8.o: compemu.cpp
256 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
257  
258   #-------------------------------------------------------------------------
259   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines