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