mirror of
https://github.com/yquake2/ctf.git
synced 2024-11-10 06:31:34 +00:00
Build a .dylib for OS X.
This commit is contained in:
parent
15a25d8daa
commit
821872c798
1 changed files with 8 additions and 8 deletions
16
Makefile
16
Makefile
|
@ -143,25 +143,25 @@ ctf:
|
|||
@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)
|
||||
rogue:
|
||||
@echo "===> Building game.dylib"
|
||||
${Q}mkdir -p release
|
||||
$(MAKE) release/game.dylib
|
||||
else
|
||||
ctf:
|
||||
@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
|
||||
|
||||
# ----------
|
||||
|
||||
CTF_OBJS_ = \
|
||||
|
|
Loading…
Reference in a new issue