ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.6
Committed: 2002-10-22T12:09:17Z (22 years, 1 month ago) by nigel
Branch: MAIN
Changes since 1.5: +1 -1 lines
Log Message:
Corrected dependency for non-ide building
(makefile was not generating cpuemu*.cpp)

File Contents

# User Rev Content
1 nigel 1.1 # MacOS X makefile for Basilisk II. Slightly based on the Unix one
2    
3     ## System specific configuration
4     @SET_MAKE@
5     SHELL = /bin/sh
6    
7    
8     CC = @CC@
9     CXX = @CXX@
10     CFLAGS = @CFLAGS@
11     CXXFLAGS = @CXXFLAGS@
12 nigel 1.5 CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
13 nigel 1.1 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
14     LDFLAGS = @LDFLAGS@
15     LIBS = @LIBS@
16    
17     ## Files
18     OBJ_DIR = build
19 nigel 1.4 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 acconfig.h install-sh \
27     config.guess config.sub user_strings_unix.h
28    
29     GEN = $(GENEMUS) $(GENSRCS) $(GENLINK)
30    
31 nigel 1.3 SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \
32 nigel 1.1 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
39    
40     ## Rules
41    
42     .PHONY: mostlyclean clean distclean depend dep
43     .SUFFIXES:
44     .SUFFIXES: .c .cpp .s .o .h
45    
46     all: $(APP)
47    
48 nigel 1.4 ide: $(OBJ_DIR) $(GEN) $(SRCS)
49 nigel 1.1 open BasiliskII.pbproj
50    
51     test: $(APP)
52     open $(APP)
53    
54     $(OBJ_DIR)::
55     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
56    
57    
58 nigel 1.6 $(APP): $(OBJ_DIR) $(GEN) $(SRCS)
59 nigel 1.1 pbxbuild -buildstyle Deployment
60     # pbxbuild
61    
62 nigel 1.3 BasiliskII.icns :
63     touch $@
64 nigel 1.1
65     mostlyclean:
66     rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
67    
68     clean: mostlyclean
69 nigel 1.4 rm -f $(GEN)
70 nigel 1.1 rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
71    
72     distclean: clean
73     rm -fr $(OBJ_DIR)
74     rm -f config.cache config.log config.status config.h
75     rm -f configure
76     rm -f Makefile
77    
78    
79    
80    
81     $(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
82     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
83    
84     $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
85     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
86    
87 nigel 1.5 $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
88     $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
89 nigel 1.1
90    
91    
92     cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
93     $(OBJ_DIR)/build68k < ../uae_cpu/table68k > $@
94    
95     cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_DIR)/gencpu
96     $<
97    
98    
99     cpuemu1.cpp: cpuemu.cpp
100 nigel 1.4 echo '#define PART_1' > $@
101     echo '#include "$<"' >> $@
102 nigel 1.1 cpuemu2.cpp: cpuemu.cpp
103 nigel 1.4 echo '#define PART_2' > $@
104     echo '#include "$<"' >> $@
105 nigel 1.1 cpuemu3.cpp: cpuemu.cpp
106 nigel 1.4 echo '#define PART_3' > $@
107     echo '#include "$<"' >> $@
108 nigel 1.1 cpuemu4.cpp: cpuemu.cpp
109 nigel 1.4 echo '#define PART_4' > $@
110     echo '#include "$<"' >> $@
111 nigel 1.1 cpuemu5.cpp: cpuemu.cpp
112 nigel 1.4 echo '#define PART_5' > $@
113     echo '#include "$<"' >> $@
114 nigel 1.1 cpuemu6.cpp: cpuemu.cpp
115 nigel 1.4 echo '#define PART_6' > $@
116     echo '#include "$<"' >> $@
117 nigel 1.1 cpuemu7.cpp: cpuemu.cpp
118 nigel 1.4 echo '#define PART_7' > $@
119     echo '#include "$<"' >> $@
120 nigel 1.1 cpuemu8.cpp: cpuemu.cpp
121 nigel 1.4 echo '#define PART_8' > $@
122     echo '#include "$<"' >> $@
123 nigel 1.1
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
161    
162     #-------------------------------------------------------------------------
163     # DO NOT DELETE THIS LINE -- make depend depends on it.