1 |
+ |
# $Id$ |
2 |
|
# MacOS X makefile for Basilisk II. Slightly based on the Unix one |
3 |
|
|
4 |
|
## System specific configuration |
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 |
27 |
|
GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \ |
28 |
|
cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp |
29 |
|
|
30 |
< |
# Symlinks to files in other directories |
31 |
< |
GENLINK = README.txt install-sh \ |
32 |
< |
config.guess config.sub user_strings_unix.h |
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 |
|
|
52 |
|
all: $(APP) |
53 |
|
|
54 |
|
ide: $(OBJ_DIR) $(GEN) $(SRCS) |
55 |
< |
open BasiliskII.pbproj |
55 |
> |
open $(PROJECT) |
56 |
|
|
57 |
|
test: $(APP) |
58 |
|
open $(APP) |
62 |
|
|
63 |
|
|
64 |
|
$(APP): $(OBJ_DIR) $(GEN) $(SRCS) |
65 |
< |
pbxbuild -buildstyle Deployment |
66 |
< |
# pbxbuild |
65 |
> |
$(IDE) -buildstyle Deployment $(IDEARGS) \ |
66 |
> |
&& $(BLESS) $(APP)/Contents/MacOS/BasiliskII \ |
67 |
> |
|| rm -fr $(APP) |
68 |
|
|
69 |
|
BasiliskII.icns : |
70 |
|
touch $@ |
77 |
|
rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp |
78 |
|
|
79 |
|
distclean: clean |
80 |
< |
rm -fr $(OBJ_DIR) |
81 |
< |
rm -fr $(GENLINK) |
80 |
> |
rm -rf $(OBJ_DIR) |
81 |
> |
rm -rf autom4te.cache |
82 |
> |
rm -f Makefile |
83 |
|
rm -f config.cache config.log config.status config.h config.h.in |
84 |
+ |
rm -f Darwin/lowmem Darwin/pagezero |
85 |
+ |
rm -f $(GENLINK) |
86 |
|
rm -f configure |
87 |
< |
rm -f Makefile |
87 |
> |
rm -f .DS_Store |
88 |
|
|
89 |
|
|
90 |
|
|