mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 20:02:09 +00:00
qw_client/Makefile.in:
put the gl specific rules back in (some of us have GL in /usr/X11R6/include rather than /usr/local/include or /usr/include, nudge, nudge).
This commit is contained in:
parent
8346bd1997
commit
0d679d1648
2 changed files with 26 additions and 3 deletions
|
@ -23,6 +23,8 @@ BUILD_DIR := $(TARGET_DIR)/qw_client
|
||||||
OBJ_PATTERN := $(BUILD_DIR)/common_lib/%.@OBJEXT@ \
|
OBJ_PATTERN := $(BUILD_DIR)/common_lib/%.@OBJEXT@ \
|
||||||
$(BUILD_DIR)/%.@OBJEXT@
|
$(BUILD_DIR)/%.@OBJEXT@
|
||||||
DEP_PATTERN := $(BUILD_DIR)/%.d $(BUILD_DIR)/common_lib/%.d
|
DEP_PATTERN := $(BUILD_DIR)/%.d $(BUILD_DIR)/common_lib/%.d
|
||||||
|
GL_OBJ_PATTERN := $(BUILD_DIR)/gl/%.@OBJEXT@
|
||||||
|
GL_DEP_PATTERN := $(BUILD_DIR)/gl/%.d
|
||||||
|
|
||||||
LDFLAGS = @LDFLAGS@ @SOUND_LIBS@ @NET_LIBS@ -lm
|
LDFLAGS = @LDFLAGS@ @SOUND_LIBS@ @NET_LIBS@ -lm
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
@ -259,9 +261,30 @@ $(OBJ_PATTERN): $(QW_COMMON_DIR)/%.c
|
||||||
$(OBJ_PATTERN): $(QW_COMMON_DIR)/%.s
|
$(OBJ_PATTERN): $(QW_COMMON_DIR)/%.s
|
||||||
$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
$(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
||||||
|
|
||||||
|
$(GL_OBJ_PATTERN): $(SRC_DIR)/%.c
|
||||||
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
$(GL_OBJ_PATTERN): $(SRC_DIR)/%.s
|
||||||
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
||||||
|
|
||||||
|
$(GL_OBJ_PATTERN): $(COMMON_DIR)/%.c
|
||||||
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
$(GL_OBJ_PATTERN): $(COMMON_DIR)/%.s
|
||||||
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
||||||
|
|
||||||
|
$(GL_OBJ_PATTERN): $(QW_COMMON_DIR)/%.c
|
||||||
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
$(GL_OBJ_PATTERN): $(QW_COMMON_DIR)/%.s
|
||||||
|
$(CC) $(CFLAGS) $(GL_CFLAGS) -x assembler-with-cpp -o $@ -c $<
|
||||||
|
|
||||||
client_DIR:
|
client_DIR:
|
||||||
@DIR=client; $(MAKE_SURE_DIR)
|
@DIR=client; $(MAKE_SURE_DIR)
|
||||||
|
|
||||||
|
gl_DIR:
|
||||||
|
@DIR=gl; $(MAKE_SURE_DIR)
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
#
|
#
|
||||||
# Specific target rules
|
# Specific target rules
|
||||||
|
@ -423,7 +446,7 @@ ifneq ($(GLQUAKE),)
|
||||||
GLX_GL_SRC = gl_vidglx.c dga_check.c
|
GLX_GL_SRC = gl_vidglx.c dga_check.c
|
||||||
ALL_GL_SRC = $(GL_REND_SRC) $(GLX_GL_SRC)
|
ALL_GL_SRC = $(GL_REND_SRC) $(GLX_GL_SRC)
|
||||||
|
|
||||||
GL_REND_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
GL_REND_OBJS = $(patsubst %,$(BUILD_DIR)/gl/%,$(addsuffix .@OBJEXT@,\
|
||||||
$(basename $(GL_REND_SRC) .c .s)))
|
$(basename $(GL_REND_SRC) .c .s)))
|
||||||
|
|
||||||
GLX_GL_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
GLX_GL_OBJS = $(patsubst %,$(BUILD_DIR)/%,$(addsuffix .@OBJEXT@,\
|
||||||
|
@ -441,7 +464,7 @@ $(BUILD_DIR)/gl_vidglx.@OBJEXT@: $(COMMON_DIR)/gl_vidglx.c
|
||||||
$(BUILD_DIR)/dga_check.@OBJEXT@: $(COMMON_DIR)/dga_check.c
|
$(BUILD_DIR)/dga_check.@OBJEXT@: $(COMMON_DIR)/dga_check.c
|
||||||
$(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) $(X11_CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
$(GLQUAKE): $(BUILD_DIR)/../$(GLQUAKE)
|
$(GLQUAKE): gl_DIR $(BUILD_DIR)/../$(GLQUAKE)
|
||||||
|
|
||||||
$(BUILD_DIR)/../$(GLQUAKE): $(ALL_GL_OBJS)
|
$(BUILD_DIR)/../$(GLQUAKE): $(ALL_GL_OBJS)
|
||||||
$(CC) $(CFLAGS) $(ALL_GL_OBJS) $(GL_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
$(CC) $(CFLAGS) $(ALL_GL_OBJS) $(GL_LDFLAGS) $(LDFLAGS) $(LIBS) \
|
||||||
|
|
|
@ -20,7 +20,7 @@ mandir = @mandir@
|
||||||
TARGET_DIR = $(PROJECT_ODIR)/targets
|
TARGET_DIR = $(PROJECT_ODIR)/targets
|
||||||
BUILD_DIR = $(TARGET_DIR)/uquake
|
BUILD_DIR = $(TARGET_DIR)/uquake
|
||||||
|
|
||||||
LDFLAGS = @LDFLAGS@ @NET_LIBS@ -lm
|
LDFLAGS = @LDFLAGS@ @SOUND_LIBS@ @NET_LIBS@ -lm
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
INTEL_ARCH = @INTEL_ARCH@
|
INTEL_ARCH = @INTEL_ARCH@
|
||||||
|
|
Loading…
Reference in a new issue