From c18ba3bd91729e06a4cf80fb32ea158bc2bc3886 Mon Sep 17 00:00:00 2001 From: Angus Freudenberg Date: Sat, 13 Apr 2019 16:12:53 +1000 Subject: [PATCH] Add make game.dylib for Darwin --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index cae756c..af928ee 100644 --- a/Makefile +++ b/Makefile @@ -151,6 +151,16 @@ rogue: ${Q}mkdir -p release $(MAKE) release/game.dll +build/%.o: %.c + @echo "===> CC $<" + ${Q}mkdir -p $(@D) + ${Q}$(CC) -c $(CFLAGS) -o $@ $< +ifeq ($(OSTYPE), Darwin) +rogue: + @echo "===> Building game.dylib" + ${Q}mkdir -p release + $(MAKE) release/game.dylib + build/%.o: %.c @echo "===> CC $<" ${Q}mkdir -p $(@D)