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 |
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 prefs_macosx.cpp \ |
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 |
|
|
52 |
|
all: $(APP) |
53 |
|
|
54 |
|
ide: $(OBJ_DIR) $(GEN) $(SRCS) |
55 |
< |
open BasiliskII.xcode |
52 |
< |
|
53 |
< |
oldide: $(OBJ_DIR) $(GEN) $(SRCS) |
54 |
< |
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 || rm -fr $(APP) |
66 |
< |
# pbxbuild || rm -fr $(APP) |
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 |
+ |
touch $@ |
75 |
+ |
|
76 |
|
mostlyclean: |
77 |
|
rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak |
78 |
|
|