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.6 by nigel, 2002-10-22T12:09:17Z vs.
Revision 1.15 by nigel, 2004-01-29T12:24:43Z

# Line 1 | Line 1
1 + # $Id$
2   # MacOS X makefile for Basilisk II. Slightly based on the Unix one
3  
4   ## System specific configuration
# Line 13 | Line 14 | CPPFLAGS = @CPPFLAGS@ -I../include -I. @
14   DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
15   LDFLAGS = @LDFLAGS@
16   LIBS = @LIBS@
17 + BLESS = @BLESS@
18 + IDE = @IDE@
19 + PROJECT = @PROJECT@
20 + IDEARGS = @IDEARGS@
21  
22   ## Files
23   OBJ_DIR = build
# Line 22 | Line 27 | GENSRCS = cpudefs.cpp cpuemu.cpp cpustbl
27   GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \
28            cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp
29  
30 < # Symlinks to files in other directories
31 < GENLINK = README.txt acconfig.h install-sh \
32 <          config.guess config.sub user_strings_unix.h
30 > # Symlinks to, or copies of, files in other directories
31 > GENLINK = README.txt INSTALL.txt install-sh \
32 >          Darwin config.guess config.sub \
33 >          sys_unix.cpp timer_unix.cpp user_strings_unix.h
34  
35 < GEN  = $(GENEMUS) $(GENSRCS) $(GENLINK)
35 > GEN  = $(GENEMUS) $(GENSRCS)
36  
37   SRCS =  BasiliskII.icns Controller.h Controller.mm Credits.html \
38          Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \
39          NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
40          ToDo.html Versions.html \
41 <        audio_macosx.cpp extfs_macosx.mm macos_util_macosx.h main_macosx.h \
42 <        main_macosx.mm misc_macosx.h misc_macosx.mm prefs_macosx.cpp \
41 >        audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \
42 >        main_macosx.mm misc_macosx.h misc_macosx.mm nowrite.icns prefs_macosx.cpp \
43          sysdeps.h video_macosx.mm video_macosx.h
44   APP = $(OBJ_DIR)/BasiliskII.app
45  
# Line 46 | Line 52 | APP = $(OBJ_DIR)/BasiliskII.app
52   all: $(APP)
53  
54   ide: $(OBJ_DIR) $(GEN) $(SRCS)
55 <        open BasiliskII.pbproj
55 >        open $(PROJECT)
56  
57   test: $(APP)
58          open $(APP)
# Line 56 | Line 62 | $(OBJ_DIR)::
62  
63  
64   $(APP): $(OBJ_DIR) $(GEN) $(SRCS)
65 <        pbxbuild -buildstyle Deployment
66 < #       pbxbuild
65 >        $(IDE) -buildstyle Deployment $(IDEARGS) \
66 >                && $(BLESS) $(APP)/Contents/MacOS/BasiliskII \
67 >                || rm -fr $(APP)
68  
69   BasiliskII.icns :
70          touch $@
71  
72 + nowrite.icns :
73 +        ln -sf /System/Library/CoreServices/Finder.app/Contents/Resources/nowrite.icns .
74 +
75   mostlyclean:
76          rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
77  
# Line 70 | Line 80 | clean: mostlyclean
80          rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
81  
82   distclean: clean
83 <        rm -fr $(OBJ_DIR)
84 <        rm -f config.cache config.log config.status config.h
75 <        rm -f configure
83 >        rm -rf $(OBJ_DIR)
84 >        rm -rf autom4te.cache
85          rm -f Makefile
86 +        rm -f config.cache config.log config.status config.h config.h.in
87 +        rm -f Darwin/lowmem Darwin/pagezero
88 +        rm -f $(GENLINK)
89 +        rm -f configure
90 +        rm -f .DS_Store
91  
92  
93  
# Line 96 | Line 110 | cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_D
110          $<
111  
112  
113 < cpuemu1.cpp: cpuemu.cpp
114 <        echo '#define PART_1' > $@
115 <        echo '#include "$<"' >> $@
116 < cpuemu2.cpp: cpuemu.cpp
117 <        echo '#define PART_2' > $@
118 <        echo '#include "$<"' >> $@
119 < cpuemu3.cpp: cpuemu.cpp
120 <        echo '#define PART_3' > $@
121 <        echo '#include "$<"' >> $@
122 < cpuemu4.cpp: cpuemu.cpp
123 <        echo '#define PART_4' > $@
124 <        echo '#include "$<"' >> $@
111 < cpuemu5.cpp: cpuemu.cpp
112 <        echo '#define PART_5' > $@
113 <        echo '#include "$<"' >> $@
114 < cpuemu6.cpp: cpuemu.cpp
115 <        echo '#define PART_6' > $@
116 <        echo '#include "$<"' >> $@
117 < cpuemu7.cpp: cpuemu.cpp
118 <        echo '#define PART_7' > $@
119 <        echo '#include "$<"' >> $@
120 < cpuemu8.cpp: cpuemu.cpp
121 <        echo '#define PART_8' > $@
122 <        echo '#include "$<"' >> $@
123 <
124 <
125 < cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
126 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
127 <        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
128 <        rm -f cputmp.s
129 < cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
130 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
131 <        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
132 <        rm -f cputmp1.s
133 < cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
134 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
135 <        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
136 <        rm -f cputmp2.s
137 < cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
138 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
139 <        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
140 <        rm -f cputmp3.s
141 < cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
142 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
143 <        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
144 <        rm -f cputmp4.s
145 < cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
146 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
147 <        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
148 <        rm -f cputmp5.s
149 < cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
150 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
151 <        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
152 <        rm -f cputmp6.s
153 < cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
154 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
155 <        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
156 <        rm -f cputmp7.s
157 < cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
158 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
159 <        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
160 <        rm -f cputmp8.s
113 > $(GENEMUS) : cpuemu.cpp
114 >        for i in 1 2 3 4 5 6 7 8; \
115 >        do \
116 >        printf "#define  PART_%d\n#include \"%s\"\n" $$i $<  >cpuemu$$i.cpp; \
117 >        done
118 >
119 >
120 > cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti
121 >        $(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@
122 >
123 > cpuemu.s: cpuemu.cpp
124 >        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
125  
126   #-------------------------------------------------------------------------
127   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines