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.12 by cebix, 1999-10-19T17:41:34Z vs.
Revision 1.41 by gbeauche, 2006-04-16T16:32:45Z

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines