ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.7
Committed: 2003-01-10T23:05:06Z (21 years, 10 months ago) by nigel
Branch: MAIN
Changes since 1.6: +17 -66 lines
Log Message:
Make cpuemu[1-8].cpp if a for loop, a few minor corrections

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 nigel 1.7 GENLINK = README.txt install-sh \
27 nigel 1.4 config.guess config.sub user_strings_unix.h
28    
29 nigel 1.7 GEN = $(GENEMUS) $(GENSRCS)
30 nigel 1.4
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 nigel 1.7 audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \
36 nigel 1.1 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 nigel 1.7 rm -fr $(GENLINK)
75     rm -f config.cache config.log config.status config.h config.h.in
76 nigel 1.1 rm -f configure
77     rm -f Makefile
78    
79    
80    
81    
82     $(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
83     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
84    
85     $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
86     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
87    
88 nigel 1.5 $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
89     $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
90 nigel 1.1
91    
92    
93     cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
94     $(OBJ_DIR)/build68k < ../uae_cpu/table68k > $@
95    
96     cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_DIR)/gencpu
97     $<
98    
99    
100 nigel 1.7 $(GENEMUS) : cpuemu.cpp
101     for i in 1 2 3 4 5 6 7 8; \
102     do \
103     printf "#define PART_%d\n#include \"%s\"\n" $$i $< >cpuemu$$i.cpp; \
104     done
105    
106    
107     cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti
108     $(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@
109    
110     cpuemu.s: cpuemu.cpp
111     $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
112 nigel 1.1
113     #-------------------------------------------------------------------------
114     # DO NOT DELETE THIS LINE -- make depend depends on it.