aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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