ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.8
Committed: 2003-03-24T06:18:20Z (21 years, 3 months ago) by nigel
Branch: MAIN
Changes since 1.7: +1 -1 lines
Log Message:
I was compiling ../Unix/sys_unix.cpp, but that meant the compiler
was pulling in ../Unix/sysdeps.h that did not define loff_t.
So, I now generate and compile a symlink to that file instead

File Contents

# Content
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 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 = 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 sys_unix.cpp user_strings_unix.h
28
29 GEN = $(GENEMUS) $(GENSRCS)
30
31 SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \
32 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.mm 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 ide: $(OBJ_DIR) $(GEN) $(SRCS)
49 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 $(APP): $(OBJ_DIR) $(GEN) $(SRCS)
59 pbxbuild -buildstyle Deployment
60 # pbxbuild
61
62 BasiliskII.icns :
63 touch $@
64
65 mostlyclean:
66 rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
67
68 clean: mostlyclean
69 rm -f $(GEN)
70 rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
71
72 distclean: clean
73 rm -fr $(OBJ_DIR)
74 rm -fr $(GENLINK)
75 rm -f config.cache config.log config.status config.h config.h.in
76 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 $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
89 $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
90
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 $(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
113 #-------------------------------------------------------------------------
114 # DO NOT DELETE THIS LINE -- make depend depends on it.