From 2565b0e28ff2c58dd3f34624a71c7a2acaac0a0a Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Fri, 9 Dec 2022 11:43:18 +1100 Subject: 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! --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit