From a99a52ab769fae84edaba26637f83458a30ef0c6 Mon Sep 17 00:00:00 2001 From: James Canete Date: Sun, 28 Oct 2012 21:04:41 +0000 Subject: From /dev/humancontroller: when hard-linking renderers, put the old renderer (not the new one) into the "ioquake3" executable, and use a distinguished "ioquake3_rend2" executable for the new renderer (Fixes bug #5789.) --- Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f9602e93..1fb689f3 100644 --- a/Makefile +++ b/Makefile @@ -858,8 +858,14 @@ ifneq ($(BUILD_CLIENT),0) endif else TARGETS += $(B)/$(CLIENTBIN)$(FULLBINEXT) + ifneq ($(BUILD_RENDERER_REND2), 0) + TARGETS += $(B)/$(CLIENTBIN)_rend2$(FULLBINEXT) + endif ifneq ($(BUILD_CLIENT_SMP),0) TARGETS += $(B)/$(CLIENTBIN)-smp$(FULLBINEXT) + ifneq ($(BUILD_RENDERER_REND2), 0) + TARGETS += $(B)/$(CLIENTBIN)_rend2-smp$(FULLBINEXT) + endif endif endif endif @@ -1691,13 +1697,25 @@ $(B)/renderer_rend2_smp_$(SHLIBNAME): $(Q3R2OBJ) $(Q3RPOBJ_SMP) $(JPGOBJ) $(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS) else -$(B)/$(CLIENTBIN)$(FULLBINEXT): $(Q3OBJ) $(Q3R2OBJ) $(Q3RPOBJ_UP) $(JPGOBJ) $(LIBSDLMAIN) +$(B)/$(CLIENTBIN)$(FULLBINEXT): $(Q3OBJ) $(Q3ROBJ) $(Q3RPOBJ_UP) $(JPGOBJ) $(LIBSDLMAIN) + $(echo_cmd) "LD $@" + $(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) \ + -o $@ $(Q3OBJ) $(Q3ROBJ) $(Q3RPOBJ_UP) $(JPGOBJ) \ + $(LIBSDLMAIN) $(CLIENT_LIBS) $(RENDERER_LIB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