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

Comparing BasiliskII/src/MacOSX/Makefile.in (file contents):
Revision 1.5 by nigel, 2002-10-06T23:28:58Z vs.
Revision 1.23 by gbeauche, 2007-06-15T09:16:58Z

# Line 1 | Line 1
1 < # MacOS X makefile for Basilisk II. Slightly based on the Unix one
1 > # Unix makefile for Basilisk II
2  
3   ## System specific configuration
4 @SET_MAKE@
4   SHELL = /bin/sh
5  
7
6   CC = @CC@
7   CXX = @CXX@
8 < CFLAGS = @CFLAGS@
9 < CXXFLAGS = @CXXFLAGS@
10 < CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
11 < DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
8 > CFLAGS = @CFLAGS@ -g
9 > CXXFLAGS = @CXXFLAGS@ -g
10 > CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@ -I../slirp
11 > DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DAQUA
12   LDFLAGS = @LDFLAGS@
13   LIBS = @LIBS@
14 + SYSSRCS = @SYSSRCS@
15 + CPUSRCS = @CPUSRCS@
16 + BLESS = @BLESS@
17 + LN_S = ln -s
18 +
19 + SLIRP_CFLAGS = @SLIRP_CFLAGS@
20 + SLIRP_SRCS = @SLIRP_SRCS@
21 + SLIRP_OBJS = $(SLIRP_SRCS:../slirp/%.c=obj/%.o)
22  
23   ## Files
24 < OBJ_DIR = build
25 < GENSRCS = cpudefs.cpp cpuemu.cpp cpustbl.cpp cputbl.h
24 > UNIXSRCS = vm_alloc.cpp vm_alloc.h sigsegv.cpp sigsegv.h video_vosf.h video_blit.cpp \
25 >    xpram_unix.cpp user_strings_unix.cpp user_strings_unix.h \
26 >    serial_unix.cpp ether_unix.cpp sys_unix.cpp timer_unix.cpp \
27 >    sshpty.c sshpty.h strlcpy.c strlcpy.h semaphore.h
28 > SRCS = ../main.cpp main_macosx.mm ../prefs.cpp ../prefs_items.cpp prefs_macosx.mm \
29 >    sys_unix.cpp sys_darwin.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp \
30 >    ../emul_op.cpp ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp \
31 >    timer_unix.cpp ../adb.cpp ../serial.cpp serial_unix.cpp ../ether.cpp ether_unix.cpp \
32 >    ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_macosx.mm \
33 >    vm_alloc.cpp sigsegv.cpp ../audio.cpp ../extfs.cpp extfs_macosx.mm \
34 >    ../user_strings.cpp user_strings_unix.cpp clip_macosx.cpp misc_macosx.mm \
35 >    ../dummy/scsi_dummy.cpp \
36 >    audio_macosx.cpp AudioBackEnd.cpp AudioDevice.cpp MacOSX_sound_if.cpp \
37 >    NNThread.m Emulator.mm EmulatorView.mm Controller.mm PrefsEditor.mm \
38 >    sshpty.c strlcpy.c \
39 >    $(CPUSRCS) $(SLIRP_SRCS)
40 > APP = BasiliskII
41 > APP_APP = $(APP).app
42  
43 < # Wrappers which split the very large cpuemu.cpp into smaller compile units
44 < GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \
23 <          cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp
24 <
25 < # Symlinks to files in other directories
26 < GENLINK = README.txt acconfig.h install-sh \
27 <          config.guess config.sub user_strings_unix.h
28 <
29 < GEN  = $(GENEMUS) $(GENSRCS) $(GENLINK)
30 <
31 < SRCS =  BasiliskII.icns Controller.h Controller.mm Credits.html \
32 <        Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \
33 <        NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
34 <        ToDo.html Versions.html \
35 <        audio_macosx.cpp extfs_macosx.mm macos_util_macosx.h main_macosx.h \
36 <        main_macosx.mm misc_macosx.h misc_macosx.mm prefs_macosx.cpp \
37 <        sysdeps.h video_macosx.mm video_macosx.h
38 < APP = $(OBJ_DIR)/BasiliskII.app
43 > PROGS = $(APP)_app
44 > DOCS = README.txt Credits.html ToDo.html HowTo.html Versions.html
45  
46   ## Rules
47 <
42 < .PHONY: mostlyclean clean distclean depend dep
47 > .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
48   .SUFFIXES:
49   .SUFFIXES: .c .cpp .s .o .h
50  
51 < all: $(APP)
51 > all: $(PROGS)
52  
53 < ide: $(OBJ_DIR) $(GEN) $(SRCS)
54 <        open BasiliskII.pbproj
55 <
56 < test: $(APP)
52 <        open $(APP)
53 > README.txt: ../../README
54 >        $(LN_S) $< $@
55 > $(UNIXSRCS): %: ../Unix/%
56 >        $(LN_S) $< $@
57  
58 + OBJ_DIR = obj
59   $(OBJ_DIR)::
60          @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
61  
62 <
63 < $(APP): $(OBJ_DIR) $(GENSRCS) $(SRCS)
64 <        pbxbuild -buildstyle Deployment
65 < #       pbxbuild
66 <
67 < BasiliskII.icns :
68 <        touch $@
62 > define SRCS_LIST_TO_OBJS
63 >        $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
64 >        $(basename $(notdir $(file))))))
65 > endef
66 > OBJS = $(SRCS_LIST_TO_OBJS)
67 >
68 > SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
69 > VPATH :=
70 > VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
71 >
72 > $(APP): $(UNIXSRCS) $(OBJ_DIR) $(OBJS)
73 >        $(CXX) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
74 >        $(BLESS) $(APP)
75 >
76 > $(APP)_app: $(APP) $(DOCS) ../MacOSX/Info.plist ../MacOSX/$(APP).icns
77 >        mkdir -p $(APP_APP)/Contents
78 >        cp -f ../MacOSX/Info.plist $(APP_APP)/Contents/
79 >        echo -n 'APPL????' > $(APP_APP)/Contents/PkgInfo
80 >        mkdir -p $(APP_APP)/Contents/MacOS
81 >        cp -f $(APP) $(APP_APP)/Contents/MacOS/
82 >        strip $(APP_APP)/Contents/MacOS/$(APP)
83 >        mkdir -p $(APP_APP)/Contents/Resources
84 >        cp -Rp English.lproj $(APP_APP)/Contents/Resources/
85 >        cp -f ../MacOSX/$(APP).icns $(APP_APP)/Contents/Resources/
86 >        cp -f $(DOCS) $(APP_APP)/Contents/Resources/
87 >        find $(APP_APP) -type d -name CVS | xargs rm -rf
88  
89   mostlyclean:
90 <        rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
90 >        rm -rf $(APP_APP)
91 >        rm -f $(PROGS) $(OBJ_DIR)/* core* *.core *~ *.bak
92  
93   clean: mostlyclean
94 <        rm -f $(GEN)
95 <        rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
94 >        rm -f $(UNIXSRCS)
95 >        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h compemu.cpp compstbl.cpp comptbl.h
96  
97   distclean: clean
98 <        rm -fr $(OBJ_DIR)
99 <        rm -f config.cache config.log config.status config.h
75 <        rm -f configure
98 >        rm -rf $(OBJ_DIR)
99 >        rm -rf autom4te.cache
100          rm -f Makefile
101 +        rm -f config.cache config.log config.status config.h
102 +        rm -f Darwin/lowmem Darwin/pagezero
103  
104 + depend dep:
105 +        makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
106  
107 <
108 <
109 < $(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
110 <        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
111 <
112 < $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
113 <        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
114 <
115 < $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
116 <        $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
117 <
118 <
107 > $(OBJ_DIR)/%.o : ../slirp/%.c
108 >        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(SLIRP_CFLAGS) -c $< -o $@
109 > $(OBJ_DIR)/%.o : %.c
110 >        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
111 > $(OBJ_DIR)/%.o : %.cpp
112 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
113 > $(OBJ_DIR)/%.o : %.m
114 >        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
115 > $(OBJ_DIR)/%.o : %.mm
116 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
117 > $(OBJ_DIR)/%.o : %.s
118 >        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
119 >
120 > $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
121 >        $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
122 > $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
123 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
124 > $(OBJ_DIR)/gencomp: $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
125 >        $(CXX) $(LDFLAGS) -o $(OBJ_DIR)/gencomp $(OBJ_DIR)/gencomp.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
126  
127   cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
128 <        $(OBJ_DIR)/build68k < ../uae_cpu/table68k > $@
129 <
130 < cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_DIR)/gencpu
131 <        $<
132 <
133 <
134 < cpuemu1.cpp: cpuemu.cpp
135 <        echo '#define PART_1' > $@
136 <        echo '#include "$<"' >> $@
137 < cpuemu2.cpp: cpuemu.cpp
138 <        echo '#define PART_2' > $@
139 <        echo '#include "$<"' >> $@
140 < cpuemu3.cpp: cpuemu.cpp
141 <        echo '#define PART_3' > $@
142 <        echo '#include "$<"' >> $@
143 < cpuemu4.cpp: cpuemu.cpp
144 <        echo '#define PART_4' > $@
145 <        echo '#include "$<"' >> $@
146 < cpuemu5.cpp: cpuemu.cpp
147 <        echo '#define PART_5' > $@
148 <        echo '#include "$<"' >> $@
149 < cpuemu6.cpp: cpuemu.cpp
150 <        echo '#define PART_6' > $@
151 <        echo '#include "$<"' >> $@
152 < cpuemu7.cpp: cpuemu.cpp
153 <        echo '#define PART_7' > $@
154 <        echo '#include "$<"' >> $@
155 < cpuemu8.cpp: cpuemu.cpp
156 <        echo '#define PART_8' > $@
157 <        echo '#include "$<"' >> $@
158 <
159 <
160 < cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
161 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
162 <        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
163 <        rm -f cputmp.s
164 < cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
165 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
166 <        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
167 <        rm -f cputmp1.s
168 < cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
169 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
170 <        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
171 <        rm -f cputmp2.s
172 < cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
173 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
174 <        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
175 <        rm -f cputmp3.s
176 < cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
177 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
178 <        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
179 <        rm -f cputmp4.s
180 < cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
181 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
182 <        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
183 <        rm -f cputmp5.s
184 < cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
185 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
186 <        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
187 <        rm -f cputmp6.s
188 < cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
189 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
190 <        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
191 <        rm -f cputmp7.s
192 < cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
193 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
194 <        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
195 <        rm -f cputmp8.s
128 >        $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
129 > cpustbl.cpp: cpuemu.cpp
130 > cpustbl_nf.cpp: cpustbl.cpp
131 > compstbl.cpp: compemu.cpp
132 > cputbl.h: cpuemu.cpp
133 > comptbl.h: compemu.cpp
134 >
135 > cpuemu.cpp: $(OBJ_DIR)/gencpu
136 >        $(OBJ_DIR)/gencpu
137 >
138 > compemu.cpp: $(OBJ_DIR)/gencomp
139 >        $(OBJ_DIR)/gencomp
140 >
141 > $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
142 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
143 >
144 > $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
145 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
146 >
147 > $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
148 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
149 > $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
150 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
151 > $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
152 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
153 > $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
154 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
155 > $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
156 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
157 > $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
158 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
159 > $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
160 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
161 > $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
162 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
163 >
164 > $(OBJ_DIR)/cpuemu1_nf.o: cpuemu.cpp
165 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
166 > $(OBJ_DIR)/cpuemu2_nf.o: cpuemu.cpp
167 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
168 > $(OBJ_DIR)/cpuemu3_nf.o: cpuemu.cpp
169 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
170 > $(OBJ_DIR)/cpuemu4_nf.o: cpuemu.cpp
171 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
172 > $(OBJ_DIR)/cpuemu5_nf.o: cpuemu.cpp
173 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
174 > $(OBJ_DIR)/cpuemu6_nf.o: cpuemu.cpp
175 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
176 > $(OBJ_DIR)/cpuemu7_nf.o: cpuemu.cpp
177 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
178 > $(OBJ_DIR)/cpuemu8_nf.o: cpuemu.cpp
179 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -DNOFLAGS $(CXXFLAGS) -c $< -o $@
180 >
181 > $(OBJ_DIR)/compemu1.o: compemu.cpp
182 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
183 > $(OBJ_DIR)/compemu2.o: compemu.cpp
184 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
185 > $(OBJ_DIR)/compemu3.o: compemu.cpp
186 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
187 > $(OBJ_DIR)/compemu4.o: compemu.cpp
188 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
189 > $(OBJ_DIR)/compemu5.o: compemu.cpp
190 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
191 > $(OBJ_DIR)/compemu6.o: compemu.cpp
192 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
193 > $(OBJ_DIR)/compemu7.o: compemu.cpp
194 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
195 > $(OBJ_DIR)/compemu8.o: compemu.cpp
196 >        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
197  
198   #-------------------------------------------------------------------------
199   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines