Add make game.dylib for Darwin

This commit is contained in:
Angus Freudenberg 2019-04-13 15:57:53 +10:00 committed by GitHub
parent 1d6e3f6eab
commit cec4adf2e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)