diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |