aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-06 20:31:30 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-09-06 20:31:30 +0000
commit4d72acef0743f75a260b22a41f4d474f064d15e5 (patch)
tree01c192dfa1a1efc2137285935845e7f475e3ecd9 /Makefile
parent4e64b0a1b82badbf25bb32bd96290f96668c2290 (diff)
downloadioquake3-aero-4d72acef0743f75a260b22a41f4d474f064d15e5.tar.gz
ioquake3-aero-4d72acef0743f75a260b22a41f4d474f064d15e5.zip
* Build dedicated server binary on Windows
git-svn-id: svn://svn.icculus.org/quake3/trunk@1169 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index aa10e38..91ae4b2 100644
--- a/Makefile
+++ b/Makefile
@@ -429,8 +429,8 @@ endif
BINEXT=.exe
- LDFLAGS= -mwindows -lwsock32 -lgdi32 -lwinmm -lole32 -lopengl32
- CLIENT_LDFLAGS=
+ LDFLAGS= -mwindows -lwsock32 -lwinmm
+ CLIENT_LDFLAGS = -lgdi32 -lole32 -lopengl32
ifeq ($(USE_CURL),1)
ifneq ($(USE_CURL_DLOPEN),1)
@@ -456,7 +456,6 @@ endif
$(LIBSDIR)/win32/libSDLmain.a \
$(LIBSDIR)/win32/libSDL.dll.a
- BUILD_SERVER = 0
BUILD_CLIENT_SMP = 0
else # ifeq mingw32
@@ -1181,9 +1180,6 @@ Q3DOBJ = \
$(B)/ded/null_input.o \
$(B)/ded/null_snddma.o \
\
- $(B)/ded/tty_console.o \
- $(B)/ded/sys_unix.o \
- \
$(B)/ded/sys_main.o
ifeq ($(ARCH),i386)
@@ -1214,6 +1210,17 @@ ifeq ($(HAVE_VM_COMPILED),true)
endif
endif
+ifeq ($(PLATFORM),mingw32)
+ Q3DOBJ += \
+ $(B)/ded/win_resource.o \
+ $(B)/ded/sys_win32.o \
+ $(B)/ded/con_win32.o
+else
+ Q3DOBJ += \
+ $(B)/ded/sys_unix.o \
+ $(B)/ded/con_tty.o
+endif
+
$(B)/ioq3ded.$(ARCH)$(BINEXT): $(Q3DOBJ)
$(echo_cmd) "LD $@"
$(Q)$(CC) -o $@ $(Q3DOBJ) $(LDFLAGS)
@@ -1550,6 +1557,9 @@ $(B)/ded/%.o: $(BLIBDIR)/%.c
$(B)/ded/%.o: $(SYSDIR)/%.c
$(DO_DED_CC)
+$(B)/ded/%.o: $(SYSDIR)/%.rc
+ $(DO_WINDRES)
+
$(B)/ded/%.o: $(NDIR)/%.c
$(DO_DED_CC)