mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +00:00
Remove some unnecessary code duplications.
This commit is contained in:
parent
702110da7d
commit
96bec2bf1f
1 changed files with 4 additions and 14 deletions
18
Makefile
18
Makefile
|
@ -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_ = \
|
||||
|
|
Loading…
Reference in a new issue