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)