Merge pull request #15 from afreuden/master

Add make game.dylib for Darwin
This commit is contained in:
Yamagi 2019-05-09 18:24:40 +02:00 committed by GitHub
commit 702110da7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,16 @@ rogue:
${Q}mkdir -p release ${Q}mkdir -p release
$(MAKE) release/game.dll $(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 build/%.o: %.c
@echo "===> CC $<" @echo "===> CC $<"
${Q}mkdir -p $(@D) ${Q}mkdir -p $(@D)