ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.15
Committed: 2004-01-29T12:24:43Z (20 years, 5 months ago) by nigel
Branch: MAIN
Changes since 1.14: +5 -2 lines
Log Message:
Try to get nowrite.icns from 10.1 install

File Contents

# Content
1 # $Id: Makefile.in,v 1.14 2004/01/28 07:24:31 nigel Exp $
2 # 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 CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
14 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT
15 LDFLAGS = @LDFLAGS@
16 LIBS = @LIBS@
17 BLESS = @BLESS@
18 IDE = @IDE@
19 PROJECT = @PROJECT@
20 IDEARGS = @IDEARGS@
21
22 ## Files
23 OBJ_DIR = build
24 GENSRCS = cpudefs.cpp cpuemu.cpp cpustbl.cpp cputbl.h
25
26 # Wrappers which split the very large cpuemu.cpp into smaller compile units
27 GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \
28 cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp
29
30 # Symlinks to, or copies of, files in other directories
31 GENLINK = README.txt INSTALL.txt install-sh \
32 Darwin config.guess config.sub \
33 sys_unix.cpp timer_unix.cpp user_strings_unix.h
34
35 GEN = $(GENEMUS) $(GENSRCS)
36
37 SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \
38 Emulator.h Emulator.mm EmulatorView.h EmulatorView.mm English.lproj \
39 NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
40 ToDo.html Versions.html \
41 audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \
42 main_macosx.mm misc_macosx.h misc_macosx.mm nowrite.icns prefs_macosx.cpp \
43 sysdeps.h video_macosx.mm video_macosx.h
44 APP = $(OBJ_DIR)/BasiliskII.app
45
46 ## Rules
47
48 .PHONY: mostlyclean clean distclean depend dep
49 .SUFFIXES:
50 .SUFFIXES: .c .cpp .s .o .h
51
52 all: $(APP)
53
54 ide: $(OBJ_DIR) $(GEN) $(SRCS)
55 open $(PROJECT)
56
57 test: $(APP)
58 open $(APP)
59
60 $(OBJ_DIR)::
61 @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
62
63
64 $(APP): $(OBJ_DIR) $(GEN) $(SRCS)
65 $(IDE) -buildstyle Deployment $(IDEARGS) \
66 && $(BLESS) $(APP)/Contents/MacOS/BasiliskII \
67 || rm -fr $(APP)
68
69 BasiliskII.icns :
70 touch $@
71
72 nowrite.icns :
73 ln -sf /System/Library/CoreServices/Finder.app/Contents/Resources/nowrite.icns .
74
75 mostlyclean:
76 rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
77
78 clean: mostlyclean
79 rm -f $(GEN)
80 rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
81
82 distclean: clean
83 rm -rf $(OBJ_DIR)
84 rm -rf autom4te.cache
85 rm -f Makefile
86 rm -f config.cache config.log config.status config.h config.h.in
87 rm -f Darwin/lowmem Darwin/pagezero
88 rm -f $(GENLINK)
89 rm -f configure
90 rm -f .DS_Store
91
92
93
94
95 $(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
96 $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
97
98 $(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
99 $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
100
101 $(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
102 $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
103
104
105
106 cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
107 $(OBJ_DIR)/build68k < ../uae_cpu/table68k > $@
108
109 cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_DIR)/gencpu
110 $<
111
112
113 $(GENEMUS) : cpuemu.cpp
114 for i in 1 2 3 4 5 6 7 8; \
115 do \
116 printf "#define PART_%d\n#include \"%s\"\n" $$i $< >cpuemu$$i.cpp; \
117 done
118
119
120 cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti
121 $(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@
122
123 cpuemu.s: cpuemu.cpp
124 $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
125
126 #-------------------------------------------------------------------------
127 # DO NOT DELETE THIS LINE -- make depend depends on it.