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.40 by gbeauche, 2006-01-21T13:06:32Z

# 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   ## Files
39   SRCS = ../main.cpp main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp \
40      sys_unix.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
41      ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
42 <    timer_unix.cpp clip_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
42 >    timer_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp \
43      ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_blit.cpp \
44 <    video_x.cpp vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_unix.cpp \
44 >    vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp \
45          ../user_strings.cpp user_strings_unix.cpp sshpty.c strlcpy.c \
46 <    $(SYSSRCS) $(CPUSRCS)
46 >    $(SYSSRCS) $(CPUSRCS) $(SLIRP_SRCS)
47   APP = BasiliskII
48 + APP_APP = $(APP).app
49  
50   ## Rules
51   .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
52   .SUFFIXES:
53   .SUFFIXES: .c .cpp .s .o .h
54  
55 < all: $(APP)
55 > all: $(APP)$(EXEEXT)
56  
57   OBJ_DIR = obj
58   $(OBJ_DIR)::
# Line 59 | Line 68 | SRC_PATHS += $(sort $(foreach file, $(SR
68   VPATH :=
69   VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
70  
71 < $(APP): $(OBJ_DIR) $(OBJS)
72 <        $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
71 > $(APP)$(EXEEXT): $(OBJ_DIR) $(OBJS)
72 >        $(CXX) -o $(APP)$(EXEEXT) $(LDFLAGS) $(OBJS) $(LIBS)
73 >        $(BLESS) $(APP)$(EXEEXT)
74 >
75 > $(APP)_app: $(APP) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
76 >        mkdir -p $(APP_APP)/Contents
77 >        cp -f ../MacOSX/Info.plist $(APP_APP)/Contents/
78 >        echo -n 'APPL????' > $(APP_APP)/Contents/PkgInfo
79 >        mkdir -p $(APP_APP)/Contents/MacOS
80 >        cp -f $(APP) $(APP_APP)/Contents/MacOS/
81 >        strip $(APP_APP)/Contents/MacOS/$(APP)
82 >        mkdir -p $(APP_APP)/Contents/Resources
83 >        cp -f ../MacOSX/$(APP).icns $(APP_APP)/Contents/Resources/
84  
85   modules:
86          cd Linux/NetDriver; make
87  
88 < install: $(APP) installdirs
89 <        $(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP)
88 > install: $(APP)$(EXEEXT) installdirs
89 >        $(INSTALL_PROGRAM) $(APP)$(EXEEXT) $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
90          -$(INSTALL_DATA) $(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
91 <        $(INSTALL_DATA) keycodes $(DESTDIR)$(datadir)/$(APP)/keycodes
91 >        $(INSTALL_DATA) $(KEYCODES) $(DESTDIR)$(datadir)/$(APP)/keycodes
92          $(INSTALL_DATA) fbdevices $(DESTDIR)$(datadir)/$(APP)/fbdevices
93 +        $(INSTALL_DATA) tunconfig $(DESTDIR)$(datadir)/$(APP)/tunconfig
94  
95   installdirs:
96          $(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(datadir)/$(APP)
97  
98   uninstall:
99 <        rm -f $(DESTDIR)$(bindir)/$(APP)
99 >        rm -f $(DESTDIR)$(bindir)/$(APP)$(EXEEXT)
100          rm -f $(DESTDIR)$(man1dir)/$(APP).1
101          rm -f $(DESTDIR)$(datadir)/$(APP)/keycodes
102          rm -f $(DESTDIR)$(datadir)/$(APP)/fbdevices
103 +        rm -f $(DESTDIR)$(datadir)/$(APP)/tunconfig
104          rmdir $(DESTDIR)$(datadir)/$(APP)
105  
106   mostlyclean:
107 <        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
107 >        rm -f $(APP)$(EXEEXT) $(OBJ_DIR)/* core* *.core *~ *.bak
108  
109   clean: mostlyclean
110 <        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h
110 >        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
111  
112   distclean: clean
113          rm -rf $(OBJ_DIR)
114 +        rm -rf autom4te.cache
115          rm -f Makefile
116          rm -f config.cache config.log config.status config.h
117 +        rm -f Darwin/lowmem Darwin/pagezero
118  
119   depend dep:
120          makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
121  
122 + $(OBJ_DIR)/%.o : ../slirp/%.c
123 +        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(SLIRP_CFLAGS) -c $< -o $@
124   $(OBJ_DIR)/%.o : %.c
125          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
126   $(OBJ_DIR)/%.o : %.cpp
127          $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
128 + $(OBJ_DIR)/%.o : %.mm
129 +        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
130   $(OBJ_DIR)/%.o : %.s
131          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
132  
133 < $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
134 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
135 < $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
136 <        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
137 < $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
138 <        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
139 < cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
140 <        $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
133 > # Windows resources
134 > $(OBJ_DIR)/%.o: %.rc
135 >        windres --include-dir ../Windows -i $< -o $@
136 >
137 > $(OBJ_DIR)/build68k$(EXEEXT): $(OBJ_DIR)/build68k.o
138 >        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k$(EXEEXT) $(OBJ_DIR)/build68k.o
139 > $(OBJ_DIR)/gencpu$(EXEEXT): $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
140 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu$(EXEEXT) $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
141 > $(OBJ_DIR)/gencomp$(EXEEXT): $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
142 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp$(EXEEXT) $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
143 >
144 > cpudefs.cpp: $(OBJ_DIR)/build68k$(EXEEXT) ../uae_cpu/table68k
145 >        $(OBJ_DIR)/build68k$(EXEEXT) <../uae_cpu/table68k >cpudefs.cpp
146   cpustbl.cpp: cpuemu.cpp
147 + cpustbl_nf.cpp: cpustbl.cpp
148 + compstbl.cpp: compemu.cpp
149   cputbl.h: cpuemu.cpp
150 + comptbl.h: compemu.cpp
151 +
152 + cpuemu.cpp: $(OBJ_DIR)/gencpu$(EXEEXT)
153 +        $(OBJ_DIR)/gencpu$(EXEEXT)
154  
155 < cpuemu.cpp: $(OBJ_DIR)/gencpu
156 <        $(OBJ_DIR)/gencpu
155 > compemu.cpp: $(OBJ_DIR)/gencomp$(EXEEXT)
156 >        $(OBJ_DIR)/gencomp$(EXEEXT)
157 >
158 > $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
159 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
160 >
161 > $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
162 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
163  
164   $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
165          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
# Line 133 | Line 178 | $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
178   $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
179          $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
180  
181 < cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
182 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
183 <        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
184 <        rm -f cputmp.s
185 < cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
186 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
187 <        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
188 <        rm -f cputmp1.s
189 < cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
190 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
191 <        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
192 <        rm -f cputmp2.s
193 < cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
194 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
195 <        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
196 <        rm -f cputmp3.s
197 < cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
198 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
199 <        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
200 <        rm -f cputmp4.s
201 < cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
202 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
203 <        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
204 <        rm -f cputmp5.s
205 < cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
206 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
207 <        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
208 <        rm -f cputmp6.s
209 < cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
210 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
211 <        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
212 <        rm -f cputmp7.s
213 < 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
181 > $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
182 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
183 > $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
184 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
185 > $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
186 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
187 > $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
188 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
189 > $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
190 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
191 > $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
192 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
193 > $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
194 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
195 > $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
196 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
197 >
198 > $(OBJ_DIR)/compemu1.o: compemu.cpp
199 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
200 > $(OBJ_DIR)/compemu2.o: compemu.cpp
201 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
202 > $(OBJ_DIR)/compemu3.o: compemu.cpp
203 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
204 > $(OBJ_DIR)/compemu4.o: compemu.cpp
205 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
206 > $(OBJ_DIR)/compemu5.o: compemu.cpp
207 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
208 > $(OBJ_DIR)/compemu6.o: compemu.cpp
209 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
210 > $(OBJ_DIR)/compemu7.o: compemu.cpp
211 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
212 > $(OBJ_DIR)/compemu8.o: compemu.cpp
213 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
214  
215   #-------------------------------------------------------------------------
216   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines