aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-12-09 11:43:18 +1100
committerNicholas Tay <nick@windblume.net>2022-12-09 11:43:18 +1100
commit2565b0e28ff2c58dd3f34624a71c7a2acaac0a0a (patch)
tree947fd416b2c9f46bfde5fa4583fc46e451dd1a9a /Makefile
parent0f5a18991f320a2df370994326f882a144c45b02 (diff)
downloadclak-2565b0e28ff2c58dd3f34624a71c7a2acaac0a0a.tar.gz
clak-2565b0e28ff2c58dd3f34624a71c7a2acaac0a0a.tar.bz2
clak-2565b0e28ff2c58dd3f34624a71c7a2acaac0a0a.zip
Initial working Obj-C sound (leak)
It seems to memory leak so needs to be fixed, but this was before I had to return my work MacBook - until I get my own!
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e21da87..ce7e806 100644
--- a/Makefile
+++ b/Makefile
@@ -17,13 +17,15 @@ else
else ifeq ($(UNAME_S),Darwin)
PLATFORM = darwin
CFLAGS += -framework CoreFoundation -framework IOKit -framework AppKit
+ PLATFORM_C += platform/$(PLATFORM)-native.m
endif
endif
+PLATFORM_C += platform/$(PLATFORM).c
default: $(NAME)
-$(NAME): $(NAME).c platform/$(PLATFORM).c
- $(CC) $(CFLAGS) $(NAME).c platform/$(PLATFORM).c $(LDLIBS) -o $(NAME)
+$(NAME): $(NAME).c $(PLATFORM_C)
+ $(CC) $(CFLAGS) $(NAME).c $(PLATFORM_C) $(LDLIBS) -o $(NAME)
clean:
rm -f *.o