mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Makefile: The OSX library extension is "dylib", not "dynlib"
This commit is contained in:
parent
5b6fdb2bde
commit
a7e0338c56
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -504,17 +504,17 @@ build/baseq2/%.o: %.c
|
|||
release/baseq2/game.dll : LDFLAGS += -shared
|
||||
else ifeq ($(OSTYPE), Darwin)
|
||||
game:
|
||||
@echo "===> Building baseq2/game.dynlib"
|
||||
@echo "===> Building baseq2/game.dylib"
|
||||
${Q}mkdir -p release/baseq2
|
||||
$(MAKE) release/baseq2/game.dynlib
|
||||
$(MAKE) release/baseq2/game.dylib
|
||||
|
||||
build/baseq2/%.o: %.c
|
||||
@echo "===> CC $<"
|
||||
${Q}mkdir -p $(@D)
|
||||
${Q}$(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $<
|
||||
|
||||
release/baseq2/game.dynlib : CFLAGS += -fPIC
|
||||
release/baseq2/game.dynlib : LDFLAGS += -shared
|
||||
release/baseq2/game.dylib : CFLAGS += -fPIC
|
||||
release/baseq2/game.dylib : LDFLAGS += -shared
|
||||
else # not Windows or Darwin
|
||||
game:
|
||||
@echo "===> Building baseq2/game.so"
|
||||
|
@ -783,7 +783,7 @@ release/baseq2/game.dll : $(GAME_OBJS)
|
|||
${Q}$(CC) $(GAME_OBJS) $(LDFLAGS) -o $@
|
||||
$(Q)strip $@
|
||||
else ifeq ($(OSTYPE), Darwin)
|
||||
release/baseq2/game.dynlib : $(GAME_OBJS)
|
||||
release/baseq2/game.dylib : $(GAME_OBJS)
|
||||
@echo "===> LD $@"
|
||||
${Q}$(CC) $(GAME_OBJS) $(LDFLAGS) -o $@
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue