Add make game.dylib for Darwin

This commit is contained in:
Angus Freudenberg 2019-04-13 16:12:53 +10:00 committed by GitHub
parent eaaf6c43d4
commit c18ba3bd91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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