ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.23
Committed: 2007-06-15T09:16:58Z (17 years ago) by gbeauche
Branch: MAIN
Changes since 1.22: +153 -113 lines
Log Message:
Build MacOS X binaries only from the command line. Prepare the configure
scripts as follows: [NO_CONFIGURE=1] ../Unix/autogen.sh

Second round will be to build FAT binaries.

File Contents

# Content
1 # Unix makefile for Basilisk II
2
3 ## System specific configuration
4 SHELL = /bin/sh
5
6 CC = @CC@
7 CXX = @CXX@
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 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 PROGS = $(APP)_app
44 DOCS = README.txt Credits.html ToDo.html HowTo.html Versions.html
45
46 ## Rules
47 .PHONY: modules install installdirs uninstall mostlyclean clean distclean depend dep
48 .SUFFIXES:
49 .SUFFIXES: .c .cpp .s .o .h
50
51 all: $(PROGS)
52
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 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 -rf $(APP_APP)
91 rm -f $(PROGS) $(OBJ_DIR)/* core* *.core *~ *.bak
92
93 clean: mostlyclean
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 -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 $(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 >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.