Change game library name in makefile to match recent change for x86_64 -> x64.

This commit is contained in:
Knightmare66 2021-11-17 19:41:25 -05:00
parent 9be3063f0e
commit e7eca9e3ff

View file

@ -99,6 +99,12 @@ ifeq ($(strip $(BUILD_LIBDIR)),YES)
BASE_CFLAGS+=-DLIBDIR='\"$(LIBDIR)\"' BASE_CFLAGS+=-DLIBDIR='\"$(LIBDIR)\"'
endif endif
ifeq ($(ARCH),x86_64)
LIBARCHNAME=x64
else
LIBARCHNAME=$(ARCH)
endif
ifeq ($(OSTYPE),Darwin) ifeq ($(OSTYPE),Darwin)
SHLIBEXT=dylib SHLIBEXT=dylib
else else
@ -133,7 +139,7 @@ ifeq ($(strip $(BUILD_KMQUAKE2_DEDICATED)),YES)
endif endif
ifeq ($(strip $(BUILD_GAME)),YES) ifeq ($(strip $(BUILD_GAME)),YES)
TARGETS+=$(BINDIR)/baseq2/kmq2game$(ARCH).$(SHLIBEXT) TARGETS+=$(BINDIR)/baseq2/kmq2game$(LIBARCHNAME).$(SHLIBEXT)
endif endif
all: all:
@ -860,7 +866,7 @@ GAME_OBJS = \
$(BUILDDIR)/game/p_weapon.o \ $(BUILDDIR)/game/p_weapon.o \
$(BUILDDIR)/game/q_shared.o $(BUILDDIR)/game/q_shared.o
$(BINDIR)/baseq2/kmq2game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS) $(BINDIR)/baseq2/kmq2game$(LIBARCHNAME).$(SHLIBEXT) : $(GAME_OBJS)
$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
$(BUILDDIR)/game/acebot_ai.o : $(GAME_DIR)/acebot_ai.c $(BUILDDIR)/game/acebot_ai.o : $(GAME_DIR)/acebot_ai.c