-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terminating the app after closing window, added different flavours to…
… makefile
- Loading branch information
Showing
3 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
main.m | ||
main_c | ||
main_objc_arc | ||
main_objc_noarc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
main: main.c | ||
clang -o main -framework Cocoa -framework OpenGL main.c | ||
.PHONY: all | ||
all: main_c main_objc_arc main_objc_noarc | ||
|
||
main.m: main.c | ||
cp $< $@ | ||
|
||
main_c: main.c | ||
clang -framework Cocoa -framework OpenGL -o $@ $< | ||
|
||
main_objc_arc: main.m | ||
clang -framework Cocoa -framework OpenGL -fobjc-arc -o $@ $< | ||
|
||
main_objc_noarc: main.m | ||
clang -framework Cocoa -framework OpenGL -fno-objc-arc -o $@ $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters