From 58a561b806ca8b6c34ac978d01b706b2525750e5 Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Thu, 6 Jan 2000 03:13:04 +0000 Subject: [PATCH] Made MGL target compile again. --- qw_client/Makefile.in | 38 +++++++++++--------------------------- uquake/Makefile.in | 41 ++++++++++++++--------------------------- 2 files changed, 25 insertions(+), 54 deletions(-) diff --git a/qw_client/Makefile.in b/qw_client/Makefile.in index 5dced84..5abdd9b 100644 --- a/qw_client/Makefile.in +++ b/qw_client/Makefile.in @@ -87,8 +87,8 @@ else OPTFLAGS = -g endif -soft_targets = $(X11QUAKE) $(SVGAQUAKE) $(GGIQUAKE) $(SDLQUAKE) -gl_targets = $(GLQUAKE) $(TDFXQUAKE) $(MGLQUAKE) +soft_targets = $(X11QUAKE) $(SVGAQUAKE) $(GGIQUAKE) $(SDLQUAKE) $(MGLQUAKE) +gl_targets = $(GLQUAKE) $(TDFXQUAKE) targets = $(gl_targets) $(soft_targets) CLEAN_TARGETS = $(patsubst %,clean-%, $(targets)) .PHONY: $(targets) $(CLEAN_TARGETS) clean-soft clean-gl @@ -358,42 +358,26 @@ $(BUILD_DIR)/../$(SDLQUAKE): $(ALL_SDL_OBJS) endif -# mingw32 GL target -# FIXME: Rewrite this entire section! +# MGL software target ifneq ($(MGLQUAKE),) # Map the list of source files into a list of object files -ALL_MGL_SRC = $(GENERAL_SRC) $(CD_AUDIO_SRC) $(SW_REND_SRC) $(MGL_VID_SRC)\ - model.c -OBJSquake-mgl = $(patsubst %,$(BUILD_DIR)/mgl/%,$(addsuffix .@OBJEXT@, $(basename $(ALL_MGL_SRC) .c .s))) +ALL_MGL_SRC = $(GENERAL_SRC) $(CD_AUDIO_SRC) $(SW_REND_SRC) \ + vid_win.c in_win.c model.c +ALL_MGL_OBJS = $(patsubst %,$(BUILD_DIR)/soft/%,$(addsuffix .@OBJEXT@,\ + $(basename $(ALL_MGL_SRC) .c .s))) MGL_CFLAGS = -DMGL @MGL_CFLAGS@ MGL_LDFLAGS = @MGL_LIBS@ -lm -MGL_VID_SRC = vid_win.c in_win.c conproc.c -MAKE_SURE_mgl_DIR = @DIR=mgl; $(MAKE_SURE_DIR) - -$(BUILD_DIR)/mgl/%.o: $(SRC_DIR)/%.c - $(MAKE_SURE_mgl_DIR) +$(BUILD_DIR)/soft/vid_mgl.@OBJEXT@: $(COMMON_DIR)/vid_mgl.c $(CC) $(CFLAGS) $(MGL_CFLAGS) -o $@ -c $< -$(BUILD_DIR)/mgl/%.o: $(SRC_DIR)/%.s - $(MAKE_SURE_mgl_DIR) - $(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $< +$(MGLQUAKE): soft_DIR $(BUILD_DIR)/../$(MGLQUAKE) -$(BUILD_DIR)/mgl/%.o: $(COMMON_DIR)/%.c - $(MAKE_SURE_mgl_DIR) - $(CC) $(CFLAGS) $(MGL_CFLAGS) -o $@ -c $< - -$(BUILD_DIR)/mgl/%.o: $(COMMON_DIR)/%.s - $(MAKE_SURE_mgl_DIR) - $(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $< - -$(MGLQUAKE): $(BUILD_DIR)/../$(MGLQUAKE) - -$(BUILD_DIR)/../$(MGLQUAKE): $(OBJSquake-mgl) - $(CC) $(CFLAGS) $(OBJSquake-mgl) $(MGL_LDFLAGS) $(LDFLAGS) $(LIBS) \ +$(BUILD_DIR)/../$(MGLQUAKE): $(ALL_MGL_OBJS) + $(CC) $(CFLAGS) $(ALL_MGL_OBJS) $(MGL_LDFLAGS) $(LDFLAGS) $(LIBS) \ -o $(BUILD_DIR)/../$(MGLQUAKE) endif diff --git a/uquake/Makefile.in b/uquake/Makefile.in index 6802b16..60d1de1 100644 --- a/uquake/Makefile.in +++ b/uquake/Makefile.in @@ -86,8 +86,8 @@ else OPTFLAGS = -g endif -soft_targets = $(X11QUAKE) $(SVGAQUAKE) $(GGIQUAKE) $(SDLQUAKE) -gl_targets = $(GLQUAKE) $(TDFXQUAKE) $(MGLQUAKE) +soft_targets = $(X11QUAKE) $(SVGAQUAKE) $(GGIQUAKE) $(SDLQUAKE) $(MGLQUAKE) +gl_targets = $(GLQUAKE) $(TDFXQUAKE) targets = $(gl_targets) $(soft_targets) CLEAN_TARGETS = $(patsubst %,clean-%, $(targets)) .PHONY: $(targets) $(CLEAN_TARGETS) clean-soft clean-gl @@ -348,42 +348,29 @@ $(BUILD_DIR)/../$(SDLQUAKE): $(ALL_SDL_OBJS) endif -# mingw32 GL target -# FIXME: Rewrite this entire section! +# MGL software target ifneq ($(MGLQUAKE),) # Map the list of source files into a list of object files -ALL_MGL_SRC = $(GENERAL_SRC) $(CD_AUDIO_SRC) $(SW_REND_SRC) $(MGL_VID_SRC)\ - model.c -OBJSquake-mgl = $(patsubst %,$(BUILD_DIR)/mgl/%,$(addsuffix .@OBJEXT@, $(basename $(ALL_MGL_SRC) .c .s))) +ALL_MGL_SRC = $(GENERAL_SRC) $(CD_AUDIO_SRC) $(SW_REND_SRC) \ + vid_win.c in_win.c model.c +ALL_MGL_OBJS = $(patsubst %,$(BUILD_DIR)/soft/%,$(addsuffix .@OBJEXT@,\ + $(basename $(ALL_MGL_SRC) .c .s))) -MGL_CFLAGS = -DMGL @MGL_CFLAGS@ -MGL_LDFLAGS = @MGL_LIBS@ -lm -MGL_VID_SRC = vid_win.c in_win.c conproc.c +MGL_CFLAGS = @MGL_CFLAGS@ -DMGL +MGL_LDFLAGS = @MGL_LIBS@ -MAKE_SURE_mgl_DIR = @DIR=mgl; $(MAKE_SURE_DIR) - -$(BUILD_DIR)/mgl/%.o: $(SRC_DIR)/%.c - $(MAKE_SURE_mgl_DIR) +$(BUILD_DIR)/soft/vid_win.@OBJEXT@: $(COMMON_DIR)/vid_win.c $(CC) $(CFLAGS) $(MGL_CFLAGS) -o $@ -c $< -$(BUILD_DIR)/mgl/%.o: $(SRC_DIR)/%.s - $(MAKE_SURE_mgl_DIR) - $(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $< - -$(BUILD_DIR)/mgl/%.o: $(COMMON_DIR)/%.c - $(MAKE_SURE_mgl_DIR) +$(BUILD_DIR)/soft/in_win.@OBJEXT@: $(COMMON_DIR)/in_win.c $(CC) $(CFLAGS) $(MGL_CFLAGS) -o $@ -c $< -$(BUILD_DIR)/mgl/%.o: $(COMMON_DIR)/%.s - $(MAKE_SURE_mgl_DIR) - $(CC) $(CFLAGS) -x assembler-with-cpp -o $@ -c $< +$(MGLQUAKE): soft_DIR $(BUILD_DIR)/../$(MGLQUAKE) -$(MGLQUAKE): $(BUILD_DIR)/../$(MGLQUAKE) - -$(BUILD_DIR)/../$(MGLQUAKE): $(OBJSquake-mgl) - $(CC) $(CFLAGS) $(OBJSquake-mgl) $(MGL_LDFLAGS) $(LDFLAGS) $(LIBS) \ +$(BUILD_DIR)/../$(MGLQUAKE): $(ALL_MGL_OBJS) + $(CC) $(CFLAGS) $(ALL_MGL_OBJS) $(MGL_LDFLAGS) $(LDFLAGS) $(LIBS) \ -o $(BUILD_DIR)/../$(MGLQUAKE) endif