mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
Added q3 stuff
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1579 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ae6390c7a0
commit
b318d46ea7
1 changed files with 33 additions and 4 deletions
|
@ -26,6 +26,9 @@ ifeq ($(FTE_TARGET),) #user didn't specify prefered target
|
||||||
FTE_TARGET ?= sdl #so go for sdl.
|
FTE_TARGET ?= sdl #so go for sdl.
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(shell ls|grep config.h),)
|
||||||
|
HAVECONFIG=-DHAVE_CONFIG_H
|
||||||
|
endif
|
||||||
|
|
||||||
CLIENT_DIR=$(BASE_DIR)/client
|
CLIENT_DIR=$(BASE_DIR)/client
|
||||||
GL_DIR=$(BASE_DIR)/gl
|
GL_DIR=$(BASE_DIR)/gl
|
||||||
|
@ -43,7 +46,9 @@ QUX_DIR=$(BASE_DIR)/qux
|
||||||
RELEASE_DIR=$(BASE_DIR)/release
|
RELEASE_DIR=$(BASE_DIR)/release
|
||||||
DEBUG_DIR=$(BASE_DIR)/debug
|
DEBUG_DIR=$(BASE_DIR)/debug
|
||||||
|
|
||||||
DO_CC=$(CC) $(CFLAGS) $(BASE_CFLAGS) $(WCFLAGS) -o $@ -c $<
|
ALL_CFLAGS=$(HAVECONFIG) $(CFLAGS) $(BASE_CFLAGS) $(WCFLAGS)
|
||||||
|
|
||||||
|
DO_CC=$(CC) $(ALL_CFLAGS) -o $@ -c $<
|
||||||
ifeq ($(USEASM),true)
|
ifeq ($(USEASM),true)
|
||||||
ifdef windir
|
ifdef windir
|
||||||
DO_AS=$(CC) $(BASE_CFLAGS) $(WCFLAGS) -x assembler-with-cpp -o $@ -c $< $(CFLAGS)
|
DO_AS=$(CC) $(BASE_CFLAGS) $(WCFLAGS) -x assembler-with-cpp -o $@ -c $< $(CFLAGS)
|
||||||
|
@ -111,6 +116,8 @@ CLIENT_OBJS = $(CLIENT_ASM_OBJS) \
|
||||||
cl_cam.o \
|
cl_cam.o \
|
||||||
cl_screen.o \
|
cl_screen.o \
|
||||||
cl_ui.o \
|
cl_ui.o \
|
||||||
|
cl_cg.o \
|
||||||
|
clq3_parse.o \
|
||||||
pr_csqc.o \
|
pr_csqc.o \
|
||||||
qvm.o \
|
qvm.o \
|
||||||
ircclient.o \
|
ircclient.o \
|
||||||
|
@ -251,6 +258,7 @@ SERVER_OBJS = \
|
||||||
savegame.o \
|
savegame.o \
|
||||||
svq2_ents.o \
|
svq2_ents.o \
|
||||||
svq2_game.o \
|
svq2_game.o \
|
||||||
|
svq3_game.o \
|
||||||
snd_vc.o \
|
snd_vc.o \
|
||||||
snd_voicecodecs.o \
|
snd_voicecodecs.o \
|
||||||
g711.o \
|
g711.o \
|
||||||
|
@ -287,6 +295,7 @@ COMMON_OBJS = $(COMMON_ASM_OBJS) \
|
||||||
zone.o \
|
zone.o \
|
||||||
gl_q2bsp.o \
|
gl_q2bsp.o \
|
||||||
glmod_doom.o \
|
glmod_doom.o \
|
||||||
|
q3common.o \
|
||||||
pmove.o \
|
pmove.o \
|
||||||
pmovetst.o \
|
pmovetst.o \
|
||||||
iwebiface.o \
|
iwebiface.o \
|
||||||
|
@ -465,12 +474,32 @@ endif
|
||||||
SV_DIR?=sv_sdl
|
SV_DIR?=sv_sdl
|
||||||
|
|
||||||
.default: help
|
.default: help
|
||||||
all: sv-rel sw-rel gl-rel m-rel plugins
|
all: sv-rel sw-rel gl-rel m-rel
|
||||||
|
|
||||||
|
autoconfig: clean
|
||||||
|
/bin/bash makeconfig.sh y
|
||||||
|
|
||||||
|
config: clean
|
||||||
|
/bin/bash makeconfig.sh
|
||||||
|
|
||||||
|
ifneq ($(OUT_DIR),)
|
||||||
|
-include $(OUT_DIR)/*.d
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
VPATH = $(BASE_DIR) : $(CLIENT_DIR) : $(GL_DIR) : $(COMMON_DIR) : $(SW_DIR) : $(SERVER_DIR) : $(HTTP_DIR) : $(BASE_DIR)/irc : $(BASE_DIR)/email : $(QUX_DIR) : $(PROGS_DIR) : $(SNDCODEC_DIR)
|
VPATH = $(BASE_DIR) : $(CLIENT_DIR) : $(GL_DIR) : $(COMMON_DIR) : $(SW_DIR) : $(SERVER_DIR) : $(HTTP_DIR) : $(BASE_DIR)/irc : $(BASE_DIR)/email : $(QUX_DIR) : $(PROGS_DIR) : $(SNDCODEC_DIR)
|
||||||
|
|
||||||
|
#$(OUT_DIR)/%.d: %.c
|
||||||
|
# @set -e; rm -f $@; \
|
||||||
|
# $(CC) -MM $(ALL_CFLAGS) $< > $@.$$$$; \
|
||||||
|
# sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
||||||
|
# rm -f $@.$$$$
|
||||||
|
|
||||||
$(OUT_DIR)/%.o : %.c
|
$(OUT_DIR)/%.o $(OUT_DIR)/%.d : %.c
|
||||||
|
@set -e; rm -f $@.d; \
|
||||||
|
$(CC) -MM $(ALL_CFLAGS) $< > $@.d.$$$$; \
|
||||||
|
sed 's,\($*\)\.o[ :]*,\1.o $@.d : ,g' < $@.d.$$$$ > $@.d; \
|
||||||
|
rm -f $@.d.$$$$
|
||||||
$(DO_CC) -I$(OUT_DIR)
|
$(DO_CC) -I$(OUT_DIR)
|
||||||
|
|
||||||
ifeq ($(USEASM),true)
|
ifeq ($(USEASM),true)
|
||||||
|
|
Loading…
Reference in a new issue