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.3 by nigel, 2002-03-16T09:09:19Z vs.
Revision 1.9 by nigel, 2003-03-24T10:18:23Z

# Line 9 | Line 9 | CC = @CC@
9   CXX = @CXX@
10   CFLAGS = @CFLAGS@
11   CXXFLAGS = @CXXFLAGS@
12 < CPPFLAGS = @CPPFLAGS@ -I../include -I. -I../uae_cpu
12 > CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
13   DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
14   LDFLAGS = @LDFLAGS@
15   LIBS = @LIBS@
16  
17   ## Files
18   OBJ_DIR = build
19 < GENSRCS = user_strings_unix.h cpudefs.cpp cpuemu.cpp cpustbl.cpp cputbl.h \
20 <          README.txt
19 > GENSRCS = cpudefs.cpp cpuemu.cpp cpustbl.cpp cputbl.h
20 >
21 > # Wrappers which split the very large cpuemu.cpp into smaller compile units
22 > 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 install-sh \
27 >          config.guess config.sub \
28 >          sys_unix.cpp timer_unix.cpp user_strings_unix.h
29 >
30 > GEN  = $(GENEMUS) $(GENSRCS)
31 >
32   SRCS =  BasiliskII.icns Controller.h Controller.mm Credits.html \
33          Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \
34          NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
35          ToDo.html Versions.html \
36 <        audio_macosx.cpp extfs_macosx.mm macos_util_macosx.h main_macosx.h \
36 >        audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \
37          main_macosx.mm misc_macosx.h misc_macosx.mm prefs_macosx.cpp \
38          sysdeps.h video_macosx.mm video_macosx.h
39   APP = $(OBJ_DIR)/BasiliskII.app
# Line 35 | Line 46 | APP = $(OBJ_DIR)/BasiliskII.app
46  
47   all: $(APP)
48  
49 < ide: $(OBJ_DIR) $(GENSRCS) $(SRCS)
49 > ide: $(OBJ_DIR) $(GEN) $(SRCS)
50          open BasiliskII.pbproj
51  
52   test: $(APP)
# Line 45 | Line 56 | $(OBJ_DIR)::
56          @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
57  
58  
59 < $(APP): $(OBJ_DIR) $(GENSRCS) $(SRCS)
60 <        pbxbuild -buildstyle Deployment
61 < #       pbxbuild
51 <
52 < README.txt : ../../README
53 <        ln -s $< $@
54 <
55 < user_strings_unix.h : ../Unix/user_strings_unix.h
56 <        ln -s $< $@
59 > $(APP): $(OBJ_DIR) $(GEN) $(SRCS)
60 >        pbxbuild -buildstyle Deployment || rm -fr $(APP)
61 > #       pbxbuild                        || rm -fr $(APP)
62  
63   BasiliskII.icns :
64          touch $@
# Line 62 | Line 67 | mostlyclean:
67          rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
68  
69   clean: mostlyclean
70 <        rm -f $(GENSRCS)
70 >        rm -f $(GEN)
71          rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
72  
73   distclean: clean
74          rm -fr $(OBJ_DIR)
75 <        rm -f config.cache config.log config.status config.h
75 >        rm -fr $(GENLINK)
76 >        rm -f config.cache config.log config.status config.h config.h.in
77          rm -f configure
78          rm -f Makefile
79  
# Line 80 | Line 86 | $(OBJ_DIR)/build68k: ../uae_cpu/build68k
86   $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
87          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
88  
89 < #$(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
90 < #       $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@
85 <
86 < $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
87 <        $(CC) $(LDFLAGS) $^ -o $@
89 > $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
90 >        $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
91  
89 $(OBJ_DIR)/gencpu.o : ../uae_cpu/gencpu.c
90        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
91
92 $(OBJ_DIR)/readcpu.o: ../uae_cpu/readcpu.cpp
93        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
94
95 $(OBJ_DIR)/cpudefs.o: cpudefs.cpp
96        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
92  
93  
94   cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
# Line 103 | Line 98 | cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_D
98          $<
99  
100  
101 < $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
102 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
103 < $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
104 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
105 < $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
106 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
107 < $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
108 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
109 < $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
110 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
111 < $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
112 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
118 < $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
119 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
120 < $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
121 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
122 <
123 < cpuemu1.cpp: cpuemu.cpp
124 <        $(CXX) -E -DPART_1 $< >$@
125 < cpuemu2.cpp: cpuemu.cpp
126 <        $(CXX) -E -DPART_2 $< >$@
127 < cpuemu3.cpp: cpuemu.cpp
128 <        $(CXX) -E -DPART_3 $< >$@
129 < cpuemu4.cpp: cpuemu.cpp
130 <        $(CXX) -E -DPART_4 $< >$@
131 < cpuemu5.cpp: cpuemu.cpp
132 <        $(CXX) -E -DPART_5 $< >$@
133 < cpuemu6.cpp: cpuemu.cpp
134 <        $(CXX) -E -DPART_6 $< >$@
135 < cpuemu7.cpp: cpuemu.cpp
136 <        $(CXX) -E -DPART_7 $< >$@
137 < cpuemu8.cpp: cpuemu.cpp
138 <        $(CXX) -E -DPART_8 $< >$@
139 <
140 <
141 < cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
142 <        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
143 <        $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
144 <        rm -f cputmp.s
145 < cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
146 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
147 <        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
148 <        rm -f cputmp1.s
149 < cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
150 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
151 <        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
152 <        rm -f cputmp2.s
153 < cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
154 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
155 <        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
156 <        rm -f cputmp3.s
157 < cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
158 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
159 <        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
160 <        rm -f cputmp4.s
161 < cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
162 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
163 <        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
164 <        rm -f cputmp5.s
165 < cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
166 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
167 <        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
168 <        rm -f cputmp6.s
169 < cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
170 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
171 <        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
172 <        rm -f cputmp7.s
173 < cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
174 <        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
175 <        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
176 <        rm -f cputmp8.s
101 > $(GENEMUS) : cpuemu.cpp
102 >        for i in 1 2 3 4 5 6 7 8; \
103 >        do \
104 >        printf "#define  PART_%d\n#include \"%s\"\n" $$i $<  >cpuemu$$i.cpp; \
105 >        done
106 >
107 >
108 > cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti
109 >        $(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@
110 >
111 > cpuemu.s: cpuemu.cpp
112 >        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
113  
114   #-------------------------------------------------------------------------
115   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines