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)