Remove some unnecessary code duplication.

This commit is contained in:
Yamagi Burmeister 2019-05-09 18:17:06 +02:00
parent fef3b42212
commit e16436efe2

View file

@ -150,35 +150,25 @@ xatrix:
@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 $@ $<
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)
${Q}$(CC) -c $(CFLAGS) -o $@ $<
else
xatrix:
@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
# ----------
XATRIX_OBJS_ = \