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.22 by nigel, 2006-07-31T08:47:52Z vs.
Revision 1.23 by gbeauche, 2007-06-15T09:16:58Z

# Line 1 | Line 1
1 < # $Id$
2 < # MacOS X makefile for Basilisk II. Slightly based on the Unix one
1 > # Unix makefile for Basilisk II
2  
3   ## System specific configuration
5 @SET_MAKE@
4   SHELL = /bin/sh
5  
8
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 < IDE = @IDE@
18 < PROJECT = @PROJECT@
19 < IDEARGS = @IDEARGS@
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
26 <
27 < # Wrappers which split the very large cpuemu.cpp into smaller compile units
28 < GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \
29 <          cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp
30 <
31 < # We compile the emulator source outside of Project Builder/XCode
32 < # so that it always picks up appropriate FLAGS from configure.
33 < # This is necessary because that code doesn't use config.h
34 < EMU_OBJ = $(patsubst %.cpp, build/%.o, $(GENEMUS))
35 < EMU_LIB = libgenemu.a
36 <
37 <
38 < # Symlinks to, or copies of, files in other directories
39 < GENLINK = README.txt INSTALL.txt install-sh \
40 <          Darwin config.guess config.sub ether_unix.cpp semaphore.h \
41 <          sys_unix.cpp timer_unix.cpp user_strings_unix.h
42 <
43 < GEN  = $(GENEMUS) $(GENSRCS)
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 < SRCS =  BasiliskII.icns Controller.h Controller.mm Credits.html \
44 <        Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \
47 <        NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
48 <        ToDo.html Versions.html \
49 <        audio_macosx.cpp extfs_macosx.mm macos_util_macosx.h main_macosx.h \
50 <        main_macosx.mm misc_macosx.h misc_macosx.mm nowrite.icns \
51 <        prefs_macosx.cpp sysdeps.h video_macosx.mm video_macosx.h
52 <
53 < SLIRP_OBJ = $(patsubst ../slirp/%.c, build/%.o, $(SLIRP_SRCS))
54 < SLIRP_LIB = libslirp.a
55 <
56 < APP = $(OBJ_DIR)/BasiliskII.app
57 <
58 < DEPS = $(OBJ_DIR) $(GEN) $(EMU_LIB) $(SLIRP_LIB) $(SRCS)
43 > PROGS = $(APP)_app
44 > DOCS = README.txt Credits.html ToDo.html HowTo.html Versions.html
45  
46   ## Rules
47 <
62 < .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: $(DEPS)
54 <        open $(PROJECT)
55 <
56 < test: $(APP)
72 <        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): $(DEPS)
64 <        $(IDE) -buildstyle Deployment $(IDEARGS) \
65 <                && $(BLESS) $(APP)/Contents/MacOS/BasiliskII \
66 <                || rm -fr $(APP)
67 <
68 < BasiliskII.icns :
69 <        touch $@
70 <
71 < nowrite.icns :
72 < #       ln -sf /System/Library/CoreServices/Finder.app/Contents/Resources/nowrite.icns .
73 <        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
91 <        rm -fr autom4te.cache config tests vhook
90 >        rm -rf $(APP_APP)
91 >        rm -f $(PROGS) $(OBJ_DIR)/* core* *.core *~ *.bak
92  
93   clean: mostlyclean
94 <        rm -f $(SLIRP_LIB) $(EMU_LIB)
95 <        rm -f $(GEN)
97 <        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 -rf $(OBJ_DIR)
99          rm -rf autom4te.cache
100          rm -f Makefile
101 <        rm -f config.cache config.log config.status config.h config.h.in
101 >        rm -f config.cache config.log config.status config.h
102          rm -f Darwin/lowmem Darwin/pagezero
105        rm -f $(GENLINK)
106        rm -f configure
107        rm -f .DS_Store
108
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: ../uae_cpu/build68k.c
121 <        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o $@
122 <
123 < $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
124 <        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o $@
125 <
118 < $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
119 <        $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $^ -o $@
120 <
121 <
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 <        $<
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 < $(GENEMUS) : cpuemu.cpp
142 <        for i in 1 2 3 4 5 6 7 8; \
132 <        do \
133 <        printf "#define  PART_%d\n#include \"%s\"\n" $$i $<  >cpuemu$$i.cpp; \
134 <        done
141 > $(OBJ_DIR)/cpustbl_nf.o: cpustbl.cpp
142 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -DNOFLAGS -c $< -o $@
143  
144 <
137 < cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti
138 <        $(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@
139 <
140 < cpuemu.s: cpuemu.cpp
141 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
142 <
143 < $(EMU_OBJ) : build/%.o : %.cpp
144 > $(OBJ_DIR)/compemu_support.o: compemu_support.cpp comptbl.h
145          $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
146  
147 < build/newcpu.o : ../uae_cpu/newcpu.cpp
148 <        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
149 <
150 < $(EMU_LIB) : $(EMU_OBJ) build/newcpu.o
151 <        libtool -static -o $@ $^
152 <
153 < $(SLIRP_OBJ) : build/%.o : ../slirp/%.c
154 <        $(CC) -I../slirp $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
155 <
156 < $(SLIRP_LIB) : $(SLIRP_OBJ)
157 <        libtool -static -o $@ $^
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