ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.10
Committed: 2003-06-03T12:27:12Z (21 years ago) by nigel
Branch: MAIN
Changes since 1.9: +1 -0 lines
Log Message:
Added RCS Id

File Contents

# User Rev Content
1 nigel 1.10 # $Id$
2 nigel 1.1 # MacOS X makefile for Basilisk II. Slightly based on the Unix one
3    
4     ## System specific configuration
5     @SET_MAKE@
6     SHELL = /bin/sh
7    
8    
9     CC = @CC@
10     CXX = @CXX@
11     CFLAGS = @CFLAGS@
12     CXXFLAGS = @CXXFLAGS@
13 nigel 1.5 CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
14 nigel 1.1 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
15     LDFLAGS = @LDFLAGS@
16     LIBS = @LIBS@
17    
18     ## Files
19     OBJ_DIR = build
20 nigel 1.4 GENSRCS = cpudefs.cpp cpuemu.cpp cpustbl.cpp cputbl.h
21    
22     # Wrappers which split the very large cpuemu.cpp into smaller compile units
23     GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \
24     cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp
25    
26     # Symlinks to files in other directories
27 nigel 1.7 GENLINK = README.txt install-sh \
28 nigel 1.9 config.guess config.sub \
29     sys_unix.cpp timer_unix.cpp user_strings_unix.h
30 nigel 1.4
31 nigel 1.7 GEN = $(GENEMUS) $(GENSRCS)
32 nigel 1.4
33 nigel 1.3 SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \
34 nigel 1.1 Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \
35     NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
36     ToDo.html Versions.html \
37 nigel 1.7 audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \
38 nigel 1.1 main_macosx.mm misc_macosx.h misc_macosx.mm prefs_macosx.cpp \
39     sysdeps.h video_macosx.mm video_macosx.h
40     APP = $(OBJ_DIR)/BasiliskII.app
41    
42     ## Rules
43    
44     .PHONY: mostlyclean clean distclean depend dep
45     .SUFFIXES:
46     .SUFFIXES: .c .cpp .s .o .h
47    
48     all: $(APP)
49    
50 nigel 1.4 ide: $(OBJ_DIR) $(GEN) $(SRCS)
51 nigel 1.1 open BasiliskII.pbproj
52    
53     test: $(APP)
54     open $(APP)
55    
56     $(OBJ_DIR)::
57     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
58    
59    
60 nigel 1.6 $(APP): $(OBJ_DIR) $(GEN) $(SRCS)
61 nigel 1.9 pbxbuild -buildstyle Deployment || rm -fr $(APP)
62     # pbxbuild || rm -fr $(APP)
63 nigel 1.1
64 nigel 1.3 BasiliskII.icns :
65     touch $@
66 nigel 1.1
67     mostlyclean:
68     rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
69    
70     clean: mostlyclean
71 nigel 1.4 rm -f $(GEN)
72 nigel 1.1 rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
73    
74     distclean: clean
75     rm -fr $(OBJ_DIR)
76 nigel 1.7 rm -fr $(GENLINK)
77     rm -f config.cache config.log config.status config.h config.h.in
78 nigel 1.1 rm -f configure
79     rm -f Makefile
80    
81    
82    
83    
84     $(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
85     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
86    
87     $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
88     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
89    
90 nigel 1.5 $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
91     $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
92 nigel 1.1
93    
94    
95     cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
96     $(OBJ_DIR)/build68k < ../uae_cpu/table68k > $@
97    
98     cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_DIR)/gencpu
99     $<
100    
101    
102 nigel 1.7 $(GENEMUS) : cpuemu.cpp
103     for i in 1 2 3 4 5 6 7 8; \
104     do \
105     printf "#define PART_%d\n#include \"%s\"\n" $$i $< >cpuemu$$i.cpp; \
106     done
107    
108    
109     cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti
110     $(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@
111    
112     cpuemu.s: cpuemu.cpp
113     $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
114 nigel 1.1
115     #-------------------------------------------------------------------------
116     # DO NOT DELETE THIS LINE -- make depend depends on it.