ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/Makefile.in
Revision: 1.18
Committed: 2006-01-04T06:11:04Z (18 years, 8 months ago) by nigel
Branch: MAIN
CVS Tags: nigel-build-17
Changes since 1.17: +2 -1 lines
Log Message:
Clean up after configure

File Contents

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