Remove some unnecessary code duplications.

This commit is contained in:
Yamagi Burmeister 2019-05-09 18:25:49 +02:00
parent 702110da7d
commit 96bec2bf1f

View file

@ -150,35 +150,25 @@ rogue:
@echo "===> Building game.dll"
${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)
else 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)
${Q}$(CC) -c $(CFLAGS) -o $@ $<
else
rogue:
@echo "===> Building game.so"
${Q}mkdir -p release
$(MAKE) release/game.so
release/game.so : CFLAGS += -fPIC
endif
build/%.o: %.c
@echo "===> CC $<"
${Q}mkdir -p $(@D)
${Q}$(CC) -c $(CFLAGS) -o $@ $<
release/game.so : CFLAGS += -fPIC
endif
# ----------
ROGUE_OBJS_ = \