1 |
nigel |
1.14 |
# $Id: Makefile.in,v 1.13 2004/01/27 22:04: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.1 |
|
22 |
|
|
## Files |
23 |
|
|
OBJ_DIR = build |
24 |
nigel |
1.4 |
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 |
nigel |
1.12 |
# Symlinks to, or copies of, files in other directories |
31 |
nigel |
1.11 |
GENLINK = README.txt INSTALL.txt install-sh \ |
32 |
nigel |
1.12 |
Darwin config.guess config.sub \ |
33 |
nigel |
1.9 |
sys_unix.cpp timer_unix.cpp user_strings_unix.h |
34 |
nigel |
1.4 |
|
35 |
nigel |
1.7 |
GEN = $(GENEMUS) $(GENSRCS) |
36 |
nigel |
1.4 |
|
37 |
nigel |
1.3 |
SRCS = BasiliskII.icns Controller.h Controller.mm Credits.html \ |
38 |
nigel |
1.1 |
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 |
nigel |
1.7 |
audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \ |
42 |
nigel |
1.1 |
main_macosx.mm misc_macosx.h misc_macosx.mm 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 |
nigel |
1.4 |
ide: $(OBJ_DIR) $(GEN) $(SRCS) |
55 |
nigel |
1.14 |
open $(PROJECT) |
56 |
nigel |
1.1 |
|
57 |
|
|
test: $(APP) |
58 |
|
|
open $(APP) |
59 |
|
|
|
60 |
|
|
$(OBJ_DIR):: |
61 |
|
|
@[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1 |
62 |
|
|
|
63 |
|
|
|
64 |
nigel |
1.6 |
$(APP): $(OBJ_DIR) $(GEN) $(SRCS) |
65 |
nigel |
1.14 |
$(IDE) -buildstyle Deployment $(IDEARGS) \ |
66 |
|
|
&& $(BLESS) $(APP)/Contents/MacOS/BasiliskII \ |
67 |
|
|
|| rm -fr $(APP) |
68 |
nigel |
1.1 |
|
69 |
nigel |
1.3 |
BasiliskII.icns : |
70 |
|
|
touch $@ |
71 |
nigel |
1.1 |
|
72 |
|
|
mostlyclean: |
73 |
|
|
rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak |
74 |
|
|
|
75 |
|
|
clean: mostlyclean |
76 |
nigel |
1.4 |
rm -f $(GEN) |
77 |
nigel |
1.1 |
rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp |
78 |
|
|
|
79 |
|
|
distclean: clean |
80 |
nigel |
1.12 |
rm -rf $(OBJ_DIR) |
81 |
|
|
rm -rf autom4te.cache |
82 |
|
|
rm -f Makefile |
83 |
nigel |
1.7 |
rm -f config.cache config.log config.status config.h config.h.in |
84 |
nigel |
1.12 |
rm -f Darwin/lowmem Darwin/pagezero |
85 |
|
|
rm -f $(GENLINK) |
86 |
nigel |
1.1 |
rm -f configure |
87 |
nigel |
1.12 |
rm -f .DS_Store |
88 |
nigel |
1.1 |
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
|
|
$(OBJ_DIR)/build68k: ../uae_cpu/build68k.c |
93 |
|
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@ |
94 |
|
|
|
95 |
|
|
$(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c |
96 |
|
|
$(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@ |
97 |
|
|
|
98 |
nigel |
1.5 |
$(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp |
99 |
|
|
$(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ |
100 |
nigel |
1.1 |
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k |
104 |
|
|
$(OBJ_DIR)/build68k < ../uae_cpu/table68k > $@ |
105 |
|
|
|
106 |
|
|
cpuemu.cpp cpustbl.cpp cputbl.h: $(OBJ_DIR)/gencpu |
107 |
|
|
$< |
108 |
|
|
|
109 |
|
|
|
110 |
nigel |
1.7 |
$(GENEMUS) : cpuemu.cpp |
111 |
|
|
for i in 1 2 3 4 5 6 7 8; \ |
112 |
|
|
do \ |
113 |
|
|
printf "#define PART_%d\n#include \"%s\"\n" $$i $< >cpuemu$$i.cpp; \ |
114 |
|
|
done |
115 |
|
|
|
116 |
|
|
|
117 |
|
|
cpufast.s: cpuemu.s $(OBJ_DIR)/cpuopti |
118 |
|
|
$(OBJ_DIR)/cpuopti <cpuemu.s >$@ || mv cputmp.s $@ |
119 |
|
|
|
120 |
|
|
cpuemu.s: cpuemu.cpp |
121 |
|
|
$(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@ |
122 |
nigel |
1.1 |
|
123 |
|
|
#------------------------------------------------------------------------- |
124 |
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |