port some obvious vars from the original SConstruct/SConscript to the Darwin block...
[divverent/netradiant.git] / Makefile
1 MAKEFILE_CONF      ?= Makefile.conf
2 -include $(MAKEFILE_CONF)
3
4 ## CONFIGURATION SETTINGS
5 # user customizable stuf
6 # you may override this in Makefile.conf or the environment
7 BUILD              ?= debug
8 # or: release, or: extradebug, or: profile
9 OS                 ?= $(shell uname)
10 # or: Linux, Win32, Darwin
11 LDFLAGS            ?=
12 CFLAGS             ?=
13 CXXFLAGS           ?=
14 CPPFLAGS           ?=
15 LIBS               ?=
16 RADIANT_ABOUTMSG   ?= Custom build
17
18 CC                 ?= gcc
19 CXX                ?= g++
20 RANLIB             ?= ranlib
21 AR                 ?= ar
22 LDD                ?= ldd # nothing on Win32
23 WINDRES            ?= # only used on Win32
24
25 PKGCONFIG          ?= pkg-config
26 PKG_CONFIG_PATH    ?=
27
28 SH                 ?= $(SHELL)
29 ECHO               ?= echo
30 ECHO_NOLF          ?= echo -n
31 CAT                ?= cat
32 MKDIR              ?= mkdir -p
33 CP                 ?= cp
34 CP_R               ?= $(CP) -r
35 RM                 ?= rm
36 RM_R               ?= $(RM) -r
37 TEE_STDERR         ?= | tee /dev/stderr
38 TR                 ?= tr
39 FIND               ?= find
40 DIFF               ?= diff
41
42 # optional:
43 SVNVERSION         ?= svnversion
44
45 STDOUT_TO_DEVNULL  ?= >/dev/null
46 STDERR_TO_DEVNULL  ?= 2>/dev/null
47 STDERR_TO_STDOUT   ?= 2>&1
48 TO_DEVNULL         ?= $(STDOUT_TO_DEVNULL) $(STDERR_TO_STDOUT)
49
50 CPPFLAGS_GLIB      ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --cflags $(STDERR_TO_DEVNULL))
51 LIBS_GLIB          ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
52                       $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
53 CPPFLAGS_XML       ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --cflags $(STDERR_TO_DEVNULL))
54 LIBS_XML           ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
55                       $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
56 CPPFLAGS_PNG       ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --cflags $(STDERR_TO_DEVNULL))
57 LIBS_PNG           ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-L $(STDERR_TO_DEVNULL)) \
58                       $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-l $(STDERR_TO_DEVNULL))
59 CPPFLAGS_GTK       ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --cflags $(STDERR_TO_DEVNULL))
60 LIBS_GTK           ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
61                       $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
62 CPPFLAGS_GTKGLEXT  ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --cflags $(STDERR_TO_DEVNULL))
63 LIBS_GTKGLEXT      ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
64                       $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --libs-only-l $(STDERR_TO_DEVNULL))
65 CPPFLAGS_GL        ?=
66 LIBS_GL            ?= -lGL # -lopengl32 on Win32
67 CPPFLAGS_DL        ?=
68 LIBS_DL            ?= -ldl # nothing on Win32
69 CPPFLAGS_ZLIB      ?=
70 LIBS_ZLIB          ?= -lz
71 DEPEND_ON_MAKEFILE ?= yes
72 DEPENDENCIES_CHECK ?= quiet
73 # or: off, verbose
74
75 # these are used on Win32 only
76 GTKDIR             ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --variable=prefix $(STDERR_TO_DEVNULL))
77 WHICHDLL           ?= which
78
79 # alias mingw32 OSes
80 ifeq ($(OS),MINGW32_NT-6.0)
81         OS = Win32
82 endif
83
84 CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter
85 CPPFLAGS_COMMON =
86 LDFLAGS_COMMON =
87 LIBS_COMMON =
88 CXXFLAGS_COMMON = -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti
89
90 ifeq ($(BUILD),debug)
91 ifeq ($(findstring $(CFLAGS),-g),)
92         CFLAGS_COMMON += -g
93         # only add -g if no -g flag is in $(CFLAGS)
94 endif
95 ifeq ($(findstring $(CFLAGS),-O),)
96         CFLAGS_COMMON += -O
97         # only add -O if no -O flag is in $(CFLAGS)
98 endif
99         CPPFLAGS_COMMON +=
100         LDFLAGS_COMMON +=
101 else ifeq ($(BUILD),extradebug)
102 ifeq ($(findstring $(CFLAGS),-g),)
103         CFLAGS_COMMON += -g3
104         # only add -g3 if no -g flag is in $(CFLAGS)
105 endif
106         CPPFLAGS_COMMON += -D_DEBUG
107         LDFLAGS_COMMON +=
108 else ifeq ($(BUILD),profile)
109 ifeq ($(findstring $(CFLAGS),-g),)
110         CFLAGS_COMMON += -g
111         # only add -g if no -g flag is in $(CFLAGS)
112 endif
113 ifeq ($(findstring $(CFLAGS),-O),)
114         CFLAGS_COMMON += -O
115         # only add -O if no -O flag is in $(CFLAGS)
116 endif
117         CFLAGS_COMMON += -pg
118         CPPFLAGS_COMMON +=
119         LDFLAGS_COMMON += -pg
120 else ifeq ($(BUILD),release)
121 ifeq ($(findstring $(CFLAGS),-O),)
122         CFLAGS_COMMON += -O3
123         # only add -O3 if no -O flag is in $(CFLAGS)
124         # to allow overriding the optimizations
125 endif
126         CPPFLAGS_COMMON +=
127         LDFLAGS_COMMON += -s
128 else
129 $(error Unsupported build type: $(BUILD))
130 endif
131
132 ifeq ($(OS),Linux)
133         CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS -D_LINUX
134         CFLAGS_COMMON += -fPIC
135         LDFLAGS_DLL = -fPIC -ldl
136         LIBS_COMMON = -lpthread
137         EXE = x86
138         A = a
139         DLL = so
140         MWINDOWS =
141 else ifeq ($(OS),Win32)
142         CPPFLAGS_COMMON += -DWIN32 -D_WIN32 -D_inline=inline
143         CFLAGS_COMMON += -mms-bitfields
144         LDFLAGS_DLL = --dll -Wl,--add-stdcall-alias
145         LIBS_COMMON = -lws2_32 -luser32 -lgdi32
146         EXE = exe
147         A = a
148         DLL = dll
149         MWINDOWS = -mwindows
150
151         # workaround: we have no "ldd" for Win32, so...
152         LDD =
153         # workaround: OpenGL library for Win32 is called opengl32.dll
154         LIBS_GL = -lopengl32
155         # workaround: no -ldl on Win32
156         LIBS_DL = 
157 else ifeq ($(OS),Darwin)
158         CFLAGS_COMMON += -force-cpusubtype_ALL -fPIC
159         CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
160         CPPFLAGS_COMMON += -I/sw/include -I/usr/X11R6/include
161         LDFLAGS_COMMON += -L/sw/lib -L/usr/lib -L/usr/X11R6/lib
162         LDFLAGS_DLL += -dynamiclib -ldl
163         EXE = ppc
164         $(error Unsupported build OS: $(OS) - please complete the Darwin support in this Makefile and submit a patch)
165 else
166 $(error Unsupported build OS: $(OS))
167 endif
168
169 # VERSION!
170 RADIANT_VERSION = 1.5.0
171 RADIANT_MAJOR_VERSION = 5
172 RADIANT_MINOR_VERSION = 0
173
174 SVN_VERSION := $(shell $(SVNVERSION) -n $(STDERR_TO_DEVNULL) | $(TR) -cd 0-9:)
175 ifneq ($(SVN_VERSION),)
176         RADIANT_VERSION := $(RADIANT_VERSION)-svn$(SVN_VERSION)
177 endif
178
179 CPPFLAGS += -DRADIANT_VERSION="\"$(RADIANT_VERSION)\"" -DRADIANT_MAJOR_VERSION="\"$(RADIANT_MAJOR_VERSION)\"" -DRADIANT_MINOR_VERSION="\"$(RADIANT_MINOR_VERSION)\"" -DRADIANT_ABOUTMSG="\"$(RADIANT_ABOUTMSG)\""
180
181 .PHONY: all
182 all: \
183         dependencies-check \
184         binaries \
185         install-data \
186         install-dll \
187
188 .PHONY: dependencies-check
189 ifeq ($(findstring $(DEPENDENCIES_CHECK),off),off)
190 dependencies-check:
191         @$(ECHO) dependencies checking disabled, good luck...
192 else
193 dependencies-check:
194         @$(ECHO)
195         @if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; fi; \
196         checkbinary() \
197         { \
198                 $(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
199                 $$2 --help $(TO_DEVNULL); \
200                 if [ $$? != 127 ]; then \
201                         $(ECHO) "found."; \
202                 else \
203                         $(ECHO) "not found, please install it or set PATH right!"; \
204                         $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
205                         $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
206                         exit 1; \
207                 fi; \
208         }; \
209         $(ECHO) checking that the build tools exist; \
210         checkbinary "bash (or another shell)" "$(SH)"; \
211         checkbinary coreutils "$(ECHO)"; \
212         checkbinary coreutils "$(ECHO_NOLF)"; \
213         checkbinary coreutils "$(CAT)"; \
214         checkbinary coreutils "$(MKDIR)"; \
215         checkbinary coreutils "$(CP)"; \
216         checkbinary coreutils "$(CP_R)"; \
217         checkbinary coreutils "$(RM)"; \
218         checkbinary coreutils "$(RM_R)"; \
219         checkbinary coreutils "$(ECHO) test $(TEE_STDERR)"; \
220         checkbinary coreutils "$(TR)"; \
221         checkbinary findutils "$(FIND)"; \
222         checkbinary diff "$(DIFF)"; \
223         checkbinary gcc "$(CC)"; \
224         checkbinary g++ "$(CXX)"; \
225         checkbinary binutils "$(RANLIB)"; \
226         checkbinary binutils "$(AR)"; \
227         [ "$(OS)" = "Win32" ] && checkbinary mingw32 "$(WINDRES)"; \
228         [ "$(OS)" != "Win32" ] && checkbinary libc6 "$(LDD)"; \
229         $(ECHO) All required tools have been found!
230         @$(ECHO)
231         @if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; fi; \
232         checkheader() \
233         { \
234                 $(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
235                 if \
236                         $(CXX) conftest.cpp $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS) $(CPPFLAGS_COMMON) $$4 -DCONFTEST_HEADER="<$$2>" -DCONFTEST_SYMBOL="$$3" $(TARGET_ARCH) $(LDFLAGS) -c -o conftest.o $(TO_DEVNULL) && \
237                         $(CXX) conftest.o $(LDFLAGS) $(LDFLAGS_COMMON) $$5 $(LIBS_COMMON) $(LIBS) -o conftest $(TO_DEVNULL); \
238                 then \
239                         $(RM) conftest conftest.o conftest.d; \
240                         $(ECHO) "found."; \
241                 else \
242                         $(RM) conftest conftest.o conftest.d; \
243                         $(ECHO) "not found, please install it or set PKG_CONFIG_PATH right!"; \
244                         $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
245                         $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
246                         exit 1; \
247                 fi; \
248         }; \
249         $(ECHO) checking that the dependencies exist; \
250         checkheader libglib2.0-dev glib/gutils.h g_path_is_absolute "$(CPPFLAGS_GLIB)" "$(LIBS_GLIB)"; \
251         checkheader libxml2-dev libxml/xpath.h xmlXPathInit "$(CPPFLAGS_XML)" "$(LIBS_XML)"; \
252         checkheader libpng12-dev png.h png_create_read_struct "$(CPPFLAGS_PNG)" "$(LIBS_PNG)"; \
253         checkheader "mesa-common-dev (or another OpenGL library)" GL/gl.h glClear "$(CPPFLAGS_GL)" "$(LIBS_GL)"; \
254         checkheader libgtk2.0-dev gtk/gtkdialog.h gtk_dialog_run "$(CPPFLAGS_GTK)" "$(LIBS_GTK)"; \
255         checkheader libgtkglext1-dev gtk/gtkglwidget.h gtk_widget_get_gl_context "$(CPPFLAGS_GTKGLEXT)" "$(LIBS_GTKGLEXT)"; \
256         [ "$(OS)" != "Win32" ] && checkheader libc6-dev dlfcn.h dlopen "$(CPPFLAGS_DL)" "$(LIBS_DL)"; \
257         checkheader zlib1g-dev zlib.h zlibVersion "$(CPPFLAGS_ZLIB)" "$(LIBS_ZLIB)"; \
258         $(ECHO) All required libraries have been found!
259         @$(ECHO)
260 endif
261
262 .PHONY: binaries
263 binaries: \
264         install/heretic2/h2data.$(EXE) \
265         install/modules/archivepak.$(DLL) \
266         install/modules/archivewad.$(DLL) \
267         install/modules/archivezip.$(DLL) \
268         install/modules/entity.$(DLL) \
269         install/modules/image.$(DLL) \
270         install/modules/imagehl.$(DLL) \
271         install/modules/imagepng.$(DLL) \
272         install/modules/imageq2.$(DLL) \
273         install/modules/mapq3.$(DLL) \
274         install/modules/mapxml.$(DLL) \
275         install/modules/md3model.$(DLL) \
276         install/modules/model.$(DLL) \
277         install/modules/shaders.$(DLL) \
278         install/modules/vfspk3.$(DLL) \
279         install/plugins/bobtoolz.$(DLL) \
280         install/plugins/brushexport.$(DLL) \
281         install/plugins/prtview.$(DLL) \
282         install/plugins/shaderplug.$(DLL) \
283         install/plugins/sunplug.$(DLL) \
284         install/plugins/ufoaiplug.$(DLL) \
285         install/q2map.$(EXE) \
286         install/q3data.$(EXE) \
287         install/q3map2.$(EXE) \
288         install/qdata3.$(EXE) \
289         install/radiant.$(EXE) \
290
291 .PHONY: clean
292 clean:
293         $(RM_R) install/
294         $(FIND) . \( -name \*.o -o -name \*.d -o -name \*.$(DLL) -o -name \*.$(A) -o -name \*.$(EXE) \) -exec $(RM) {} \;
295         $(RM) icons/*.rc
296
297 %.$(EXE):
298         file=$@; $(MKDIR) $${file%/*}
299         $(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -o $@
300         [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
301
302 %.$(A):
303         $(AR) rc $@ $^
304         $(RANLIB) $@
305
306 %.$(DLL):
307         file=$@; $(MKDIR) $${file%/*}
308         $(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LDFLAGS_DLL) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -shared -o $@
309         [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
310
311 %.rc: %.ico
312         $(ECHO) '1 ICON "$<"' > $@
313
314 ifeq ($(OS),Win32)
315 %.o: %.rc
316         $(WINDRES) $< $@
317 endif
318
319 %.o: %.cpp $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),)
320         $(CXX) $< $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS) $(CPPFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(TARGET_ARCH) -c -o $@
321
322 %.o: %.c $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),)
323         $(CC) $< $(CFLAGS) $(CFLAGS_COMMON) $(CPPFLAGS) $(CPPFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(TARGET_ARCH) -c -o $@
324
325 install/q3map2.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_PNG)
326 install/q3map2.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_PNG) -Itools/quake3/common -Ilibs -Iinclude
327 install/q3map2.$(EXE): \
328         tools/quake3/common/cmdlib.o \
329         tools/quake3/common/imagelib.o \
330         tools/quake3/common/inout.o \
331         tools/quake3/common/md4.o \
332         tools/quake3/common/mutex.o \
333         tools/quake3/common/polylib.o \
334         tools/quake3/common/scriplib.o \
335         tools/quake3/common/threads.o \
336         tools/quake3/common/unzip.o \
337         tools/quake3/common/vfs.o \
338         tools/quake3/q3map2/brush.o \
339         tools/quake3/q3map2/brush_primit.o \
340         tools/quake3/q3map2/bspfile_abstract.o \
341         tools/quake3/q3map2/bspfile_ibsp.o \
342         tools/quake3/q3map2/bspfile_rbsp.o \
343         tools/quake3/q3map2/bsp.o \
344         tools/quake3/q3map2/convert_ase.o \
345         tools/quake3/q3map2/convert_map.o \
346         tools/quake3/q3map2/decals.o \
347         tools/quake3/q3map2/facebsp.o \
348         tools/quake3/q3map2/fog.o \
349         tools/quake3/q3map2/image.o \
350         tools/quake3/q3map2/leakfile.o \
351         tools/quake3/q3map2/light_bounce.o \
352         tools/quake3/q3map2/lightmaps_ydnar.o \
353         tools/quake3/q3map2/light.o \
354         tools/quake3/q3map2/light_trace.o \
355         tools/quake3/q3map2/light_ydnar.o \
356         tools/quake3/q3map2/main.o \
357         tools/quake3/q3map2/map.o \
358         tools/quake3/q3map2/mesh.o \
359         tools/quake3/q3map2/model.o \
360         tools/quake3/q3map2/patch.o \
361         tools/quake3/q3map2/path_init.o \
362         tools/quake3/q3map2/portals.o \
363         tools/quake3/q3map2/prtfile.o \
364         tools/quake3/q3map2/shaders.o \
365         tools/quake3/q3map2/surface_extra.o \
366         tools/quake3/q3map2/surface_foliage.o \
367         tools/quake3/q3map2/surface_fur.o \
368         tools/quake3/q3map2/surface_meta.o \
369         tools/quake3/q3map2/surface.o \
370         tools/quake3/q3map2/tjunction.o \
371         tools/quake3/q3map2/tree.o \
372         tools/quake3/q3map2/visflow.o \
373         tools/quake3/q3map2/vis.o \
374         tools/quake3/q3map2/writebsp.o \
375         libddslib.$(A) \
376         libjpeg6.$(A) \
377         libl_net.$(A) \
378         libmathlib.$(A) \
379         libpicomodel.$(A) \
380         $(if $(findstring $(OS),Win32),icons/q3map2.o,) \
381
382 libmathlib.$(A): CPPFLAGS_EXTRA := -Ilibs
383 libmathlib.$(A): \
384         libs/mathlib/bbox.o \
385         libs/mathlib/line.o \
386         libs/mathlib/m4x4.o \
387         libs/mathlib/mathlib.o \
388         libs/mathlib/ray.o \
389
390 libl_net.$(A): CPPFLAGS_EXTRA := -Ilibs
391 libl_net.$(A): \
392         libs/l_net/l_net.o \
393         $(if $(findstring $(OS),Win32),libs/l_net/l_net_wins.o,libs/l_net/l_net_berkley.o) \
394
395 libjpeg6.$(A): CPPFLAGS_EXTRA := -Ilibs/jpeg6 -Ilibs
396 libjpeg6.$(A): \
397         libs/jpeg6/jcomapi.o \
398         libs/jpeg6/jdapimin.o \
399         libs/jpeg6/jdapistd.o \
400         libs/jpeg6/jdatasrc.o \
401         libs/jpeg6/jdcoefct.o \
402         libs/jpeg6/jdcolor.o \
403         libs/jpeg6/jddctmgr.o \
404         libs/jpeg6/jdhuff.o \
405         libs/jpeg6/jdinput.o \
406         libs/jpeg6/jdmainct.o \
407         libs/jpeg6/jdmarker.o \
408         libs/jpeg6/jdmaster.o \
409         libs/jpeg6/jdpostct.o \
410         libs/jpeg6/jdsample.o \
411         libs/jpeg6/jdtrans.o \
412         libs/jpeg6/jerror.o \
413         libs/jpeg6/jfdctflt.o \
414         libs/jpeg6/jidctflt.o \
415         libs/jpeg6/jmemmgr.o \
416         libs/jpeg6/jmemnobs.o \
417         libs/jpeg6/jpgload.o \
418         libs/jpeg6/jutils.o \
419
420 libpicomodel.$(A): CPPFLAGS_EXTRA := -Ilibs
421 libpicomodel.$(A): \
422         libs/picomodel/lwo/clip.o \
423         libs/picomodel/lwo/envelope.o \
424         libs/picomodel/lwo/list.o \
425         libs/picomodel/lwo/lwio.o \
426         libs/picomodel/lwo/lwo2.o \
427         libs/picomodel/lwo/lwob.o \
428         libs/picomodel/lwo/pntspols.o \
429         libs/picomodel/lwo/surface.o \
430         libs/picomodel/lwo/vecmath.o \
431         libs/picomodel/lwo/vmap.o \
432         libs/picomodel/picointernal.o \
433         libs/picomodel/picomodel.o \
434         libs/picomodel/picomodules.o \
435         libs/picomodel/pm_3ds.o \
436         libs/picomodel/pm_ase.o \
437         libs/picomodel/pm_fm.o \
438         libs/picomodel/pm_lwo.o \
439         libs/picomodel/pm_md2.o \
440         libs/picomodel/pm_md3.o \
441         libs/picomodel/pm_mdc.o \
442         libs/picomodel/pm_ms3d.o \
443         libs/picomodel/pm_obj.o \
444         libs/picomodel/pm_terrain.o \
445
446 libddslib.$(A): CPPFLAGS_EXTRA := -Ilibs
447 libddslib.$(A): \
448         libs/ddslib/ddslib.o \
449
450 install/q3data.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB)
451 install/q3data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Itools/quake3/common -Ilibs -Iinclude
452 install/q3data.$(EXE): \
453         tools/quake3/common/aselib.o \
454         tools/quake3/common/bspfile.o \
455         tools/quake3/common/cmdlib.o \
456         tools/quake3/common/imagelib.o \
457         tools/quake3/common/inout.o \
458         tools/quake3/common/md4.o \
459         tools/quake3/common/scriplib.o \
460         tools/quake3/common/trilib.o \
461         tools/quake3/common/unzip.o \
462         tools/quake3/common/vfs.o \
463         tools/quake3/q3data/3dslib.o \
464         tools/quake3/q3data/compress.o \
465         tools/quake3/q3data/images.o \
466         tools/quake3/q3data/md3lib.o \
467         tools/quake3/q3data/models.o \
468         tools/quake3/q3data/p3dlib.o \
469         tools/quake3/q3data/polyset.o \
470         tools/quake3/q3data/q3data.o \
471         tools/quake3/q3data/stripper.o \
472         tools/quake3/q3data/video.o \
473         libl_net.$(A) \
474         libmathlib.$(A) \
475         $(if $(findstring $(OS),Win32),icons/q3data.o,) \
476
477 install/radiant.$(EXE): LDFLAGS_EXTRA := $(MWINDOWS)
478 install/radiant.$(EXE): LIBS_EXTRA := $(LIBS_GL) $(LIBS_DL) $(LIBS_XML) $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_GTKGLEXT)
479 install/radiant.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_GL) $(CPPFLAGS_DL) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) -Ilibs -Iinclude
480 install/radiant.$(EXE): \
481         radiant/autosave.o \
482         radiant/brushmanip.o \
483         radiant/brushmodule.o \
484         radiant/brushnode.o \
485         radiant/brush.o \
486         radiant/brush_primit.o \
487         radiant/brushtokens.o \
488         radiant/brushxml.o \
489         radiant/build.o \
490         radiant/camwindow.o \
491         radiant/clippertool.o \
492         radiant/commands.o \
493         radiant/console.o \
494         radiant/csg.o \
495         radiant/dialog.o \
496         radiant/eclass_def.o \
497         radiant/eclass_doom3.o \
498         radiant/eclass_fgd.o \
499         radiant/eclass.o \
500         radiant/eclass_xml.o \
501         radiant/entityinspector.o \
502         radiant/entitylist.o \
503         radiant/entity.o \
504         radiant/environment.o \
505         radiant/error.o \
506         radiant/feedback.o \
507         radiant/filetypes.o \
508         radiant/filters.o \
509         radiant/findtexturedialog.o \
510         radiant/glwidget.o \
511         radiant/grid.o \
512         radiant/groupdialog.o \
513         radiant/gtkdlgs.o \
514         radiant/gtkmisc.o \
515         radiant/help.o \
516         radiant/image.o \
517         radiant/mainframe.o \
518         radiant/main.o \
519         radiant/map.o \
520         $(if $(findstring $(OS),Win32),radiant/multimon.o,) \
521         radiant/mru.o \
522         radiant/nullmodel.o \
523         radiant/parse.o \
524         radiant/patchdialog.o \
525         radiant/patchmanip.o \
526         radiant/patchmodule.o \
527         radiant/patch.o \
528         radiant/pluginapi.o \
529         radiant/pluginmanager.o \
530         radiant/pluginmenu.o \
531         radiant/plugin.o \
532         radiant/plugintoolbar.o \
533         radiant/points.o \
534         radiant/preferencedictionary.o \
535         radiant/preferences.o \
536         radiant/qe3.o \
537         radiant/qgl.o \
538         radiant/referencecache.o \
539         radiant/renderer.o \
540         radiant/renderstate.o \
541         radiant/scenegraph.o \
542         radiant/selection.o \
543         radiant/select.o \
544         radiant/server.o \
545         radiant/shaders.o \
546         radiant/sockets.o \
547         radiant/stacktrace.o \
548         radiant/surfacedialog.o \
549         radiant/texmanip.o \
550         radiant/textures.o \
551         radiant/texwindow.o \
552         radiant/timer.o \
553         radiant/treemodel.o \
554         radiant/undo.o \
555         radiant/url.o \
556         radiant/view.o \
557         radiant/watchbsp.o \
558         radiant/winding.o \
559         radiant/windowobservers.o \
560         radiant/xmlstuff.o \
561         radiant/xywindow.o \
562         libcmdlib.$(A) \
563         libgtkutil.$(A) \
564         libl_net.$(A) \
565         libmathlib.$(A) \
566         libprofile.$(A) \
567         libxmllib.$(A) \
568         $(if $(findstring $(OS),Win32),icons/radiant.o,) \
569
570 libcmdlib.$(A): CPPFLAGS_EXTRA := -Ilibs
571 libcmdlib.$(A): \
572         libs/cmdlib/cmdlib.o \
573
574 libprofile.$(A): CPPFLAGS_EXTRA := -Ilibs -Iinclude
575 libprofile.$(A): \
576         libs/profile/file.o \
577         libs/profile/profile.o \
578
579 libgtkutil.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) -Ilibs -Iinclude
580 libgtkutil.$(A): \
581         libs/gtkutil/accelerator.o \
582         libs/gtkutil/button.o \
583         libs/gtkutil/clipboard.o \
584         libs/gtkutil/closure.o \
585         libs/gtkutil/container.o \
586         libs/gtkutil/cursor.o \
587         libs/gtkutil/dialog.o \
588         libs/gtkutil/entry.o \
589         libs/gtkutil/filechooser.o \
590         libs/gtkutil/frame.o \
591         libs/gtkutil/glfont.o \
592         libs/gtkutil/glwidget.o \
593         libs/gtkutil/idledraw.o \
594         libs/gtkutil/image.o \
595         libs/gtkutil/menu.o \
596         libs/gtkutil/messagebox.o \
597         libs/gtkutil/nonmodal.o \
598         libs/gtkutil/paned.o \
599         libs/gtkutil/pointer.o \
600         libs/gtkutil/toolbar.o \
601         libs/gtkutil/widget.o \
602         libs/gtkutil/window.o \
603         libs/gtkutil/xorrectangle.o \
604
605 libxmllib.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
606 libxmllib.$(A): \
607         libs/xml/ixml.o \
608         libs/xml/xmlelement.o \
609         libs/xml/xmlparser.o \
610         libs/xml/xmltextags.o \
611         libs/xml/xmlwriter.o \
612
613 install/modules/archivezip.$(DLL): LIBS_EXTRA := $(LIBS_ZLIB)
614 install/modules/archivezip.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_ZLIB) -Ilibs -Iinclude
615 install/modules/archivezip.$(DLL): \
616         plugins/archivezip/archive.o \
617         plugins/archivezip/pkzip.o \
618         plugins/archivezip/plugin.o \
619         plugins/archivezip/zlibstream.o \
620
621 install/modules/archivewad.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
622 install/modules/archivewad.$(DLL): \
623         plugins/archivewad/archive.o \
624         plugins/archivewad/plugin.o \
625         plugins/archivewad/wad.o \
626
627 install/modules/archivepak.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
628 install/modules/archivepak.$(DLL): \
629         plugins/archivepak/archive.o \
630         plugins/archivepak/pak.o \
631         plugins/archivepak/plugin.o \
632
633 install/modules/entity.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
634 install/modules/entity.$(DLL): \
635         plugins/entity/angle.o \
636         plugins/entity/angles.o \
637         plugins/entity/colour.o \
638         plugins/entity/doom3group.o \
639         plugins/entity/eclassmodel.o \
640         plugins/entity/entity.o \
641         plugins/entity/filters.o \
642         plugins/entity/generic.o \
643         plugins/entity/group.o \
644         plugins/entity/light.o \
645         plugins/entity/miscmodel.o \
646         plugins/entity/model.o \
647         plugins/entity/modelskinkey.o \
648         plugins/entity/namedentity.o \
649         plugins/entity/origin.o \
650         plugins/entity/plugin.o \
651         plugins/entity/rotation.o \
652         plugins/entity/scale.o \
653         plugins/entity/skincache.o \
654         plugins/entity/targetable.o \
655
656 install/modules/image.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
657 install/modules/image.$(DLL): \
658         plugins/image/bmp.o \
659         plugins/image/dds.o \
660         plugins/image/image.o \
661         plugins/image/jpeg.o \
662         plugins/image/pcx.o \
663         plugins/image/tga.o \
664         libddslib.$(A) \
665         libjpeg6.$(A) \
666
667 install/modules/imageq2.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
668 install/modules/imageq2.$(DLL): \
669         plugins/imageq2/imageq2.o \
670         plugins/imageq2/wal32.o \
671         plugins/imageq2/wal.o \
672
673 install/modules/imagehl.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
674 install/modules/imagehl.$(DLL): \
675         plugins/imagehl/hlw.o \
676         plugins/imagehl/imagehl.o \
677         plugins/imagehl/mip.o \
678         plugins/imagehl/sprite.o \
679
680 install/modules/imagepng.$(DLL): LIBS_EXTRA := $(LIBS_PNG)
681 install/modules/imagepng.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_PNG) -Ilibs -Iinclude
682 install/modules/imagepng.$(DLL): \
683         plugins/imagepng/plugin.o \
684
685 install/modules/mapq3.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
686 install/modules/mapq3.$(DLL): \
687         plugins/mapq3/parse.o \
688         plugins/mapq3/plugin.o \
689         plugins/mapq3/write.o \
690
691 install/modules/mapxml.$(DLL): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB)
692 install/modules/mapxml.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
693 install/modules/mapxml.$(DLL): \
694         plugins/mapxml/plugin.o \
695         plugins/mapxml/xmlparse.o \
696         plugins/mapxml/xmlwrite.o \
697
698 install/modules/md3model.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
699 install/modules/md3model.$(DLL): \
700         plugins/md3model/md2.o \
701         plugins/md3model/md3.o \
702         plugins/md3model/md5.o \
703         plugins/md3model/mdc.o \
704         plugins/md3model/mdlimage.o \
705         plugins/md3model/mdl.o \
706         plugins/md3model/plugin.o \
707
708 install/modules/model.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
709 install/modules/model.$(DLL): \
710         plugins/model/model.o \
711         plugins/model/plugin.o \
712         libpicomodel.$(A) \
713
714 install/modules/shaders.$(DLL): LIBS_EXTRA := $(LIBS_GLIB)
715 install/modules/shaders.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) -Ilibs -Iinclude
716 install/modules/shaders.$(DLL): \
717         plugins/shaders/plugin.o \
718         plugins/shaders/shaders.o \
719
720 install/modules/vfspk3.$(DLL): LIBS_EXTRA := $(LIBS_GLIB)
721 install/modules/vfspk3.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) -Ilibs -Iinclude
722 install/modules/vfspk3.$(DLL): \
723         plugins/vfspk3/archive.o \
724         plugins/vfspk3/vfs.o \
725         plugins/vfspk3/vfspk3.o \
726
727 install/plugins/bobtoolz.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
728 install/plugins/bobtoolz.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
729 install/plugins/bobtoolz.$(DLL): \
730         contrib/bobtoolz/bobToolz-GTK.o \
731         contrib/bobtoolz/bsploader.o \
732         contrib/bobtoolz/cportals.o \
733         contrib/bobtoolz/DBobView.o \
734         contrib/bobtoolz/DBrush.o \
735         contrib/bobtoolz/DEntity.o \
736         contrib/bobtoolz/DEPair.o \
737         contrib/bobtoolz/dialogs/dialogs-gtk.o \
738         contrib/bobtoolz/DMap.o \
739         contrib/bobtoolz/DPatch.o \
740         contrib/bobtoolz/DPlane.o \
741         contrib/bobtoolz/DPoint.o \
742         contrib/bobtoolz/DShape.o \
743         contrib/bobtoolz/DTrainDrawer.o \
744         contrib/bobtoolz/DTreePlanter.o \
745         contrib/bobtoolz/DVisDrawer.o \
746         contrib/bobtoolz/DWinding.o \
747         contrib/bobtoolz/funchandlers-GTK.o \
748         contrib/bobtoolz/lists.o \
749         contrib/bobtoolz/misc.o \
750         contrib/bobtoolz/ScriptParser.o \
751         contrib/bobtoolz/shapes.o \
752         contrib/bobtoolz/visfind.o \
753         libcmdlib.$(A) \
754         libmathlib.$(A) \
755         libprofile.$(A) \
756
757 install/plugins/brushexport.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
758 install/plugins/brushexport.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
759 install/plugins/brushexport.$(DLL): \
760         contrib/brushexport/callbacks.o \
761         contrib/brushexport/export.o \
762         contrib/brushexport/interface.o \
763         contrib/brushexport/plugin.o \
764         contrib/brushexport/support.o \
765
766 install/plugins/prtview.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
767 install/plugins/prtview.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
768 install/plugins/prtview.$(DLL): \
769         contrib/prtview/AboutDialog.o \
770         contrib/prtview/ConfigDialog.o \
771         contrib/prtview/LoadPortalFileDialog.o \
772         contrib/prtview/portals.o \
773         contrib/prtview/prtview.o \
774         libprofile.$(A) \
775
776 install/plugins/shaderplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_XML)
777 install/plugins/shaderplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_XML) -Ilibs -Iinclude
778 install/plugins/shaderplug.$(DLL): \
779         contrib/shaderplug/shaderplug.o \
780         libxmllib.$(A) \
781
782 install/plugins/sunplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
783 install/plugins/sunplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
784 install/plugins/sunplug.$(DLL): \
785         contrib/sunplug/sunplug.o \
786
787 install/qdata3.$(EXE): LIBS_EXTRA := $(LIBS_XML)
788 install/qdata3.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
789 install/qdata3.$(EXE): \
790         tools/quake2/common/bspfile.o \
791         tools/quake2/common/cmdlib.o \
792         tools/quake2/common/inout.o \
793         tools/quake2/common/l3dslib.o \
794         tools/quake2/common/lbmlib.o \
795         tools/quake2/common/mathlib.o \
796         tools/quake2/common/md4.o \
797         tools/quake2/common/path_init.o \
798         tools/quake2/common/polylib.o \
799         tools/quake2/common/scriplib.o \
800         tools/quake2/common/threads.o \
801         tools/quake2/common/trilib.o \
802         tools/quake2/qdata/images.o \
803         tools/quake2/qdata/models.o \
804         tools/quake2/qdata/qdata.o \
805         tools/quake2/qdata/sprites.o \
806         tools/quake2/qdata/tables.o \
807         tools/quake2/qdata/video.o \
808         libl_net.$(A) \
809         $(if $(findstring $(OS),Win32),icons/qdata3.o,) \
810
811 install/q2map.$(EXE): LIBS_EXTRA := $(LIBS_XML)
812 install/q2map.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
813 install/q2map.$(EXE): \
814         tools/quake2/common/bspfile.o \
815         tools/quake2/common/cmdlib.o \
816         tools/quake2/common/inout.o \
817         tools/quake2/common/l3dslib.o \
818         tools/quake2/common/lbmlib.o \
819         tools/quake2/common/mathlib.o \
820         tools/quake2/common/md4.o \
821         tools/quake2/common/path_init.o \
822         tools/quake2/common/polylib.o \
823         tools/quake2/common/scriplib.o \
824         tools/quake2/common/threads.o \
825         tools/quake2/common/trilib.o \
826         tools/quake2/q2map/brushbsp.o \
827         tools/quake2/q2map/csg.o \
828         tools/quake2/q2map/faces.o \
829         tools/quake2/q2map/flow.o \
830         tools/quake2/q2map/glfile.o \
831         tools/quake2/q2map/leakfile.o \
832         tools/quake2/q2map/lightmap.o \
833         tools/quake2/q2map/main.o \
834         tools/quake2/q2map/map.o \
835         tools/quake2/q2map/nodraw.o \
836         tools/quake2/q2map/patches.o \
837         tools/quake2/q2map/portals.o \
838         tools/quake2/q2map/prtfile.o \
839         tools/quake2/q2map/qbsp.o \
840         tools/quake2/q2map/qrad.o \
841         tools/quake2/q2map/qvis.o \
842         tools/quake2/q2map/textures.o \
843         tools/quake2/q2map/trace.o \
844         tools/quake2/q2map/tree.o \
845         tools/quake2/q2map/writebsp.o \
846         libl_net.$(A) \
847         $(if $(findstring $(OS),Win32),icons/q2map.o,) \
848
849 install/plugins/ufoaiplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
850 install/plugins/ufoaiplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
851 install/plugins/ufoaiplug.$(DLL): \
852         contrib/ufoaiplug/ufoai_filters.o \
853         contrib/ufoaiplug/ufoai_gtk.o \
854         contrib/ufoaiplug/ufoai_level.o \
855         contrib/ufoaiplug/ufoai.o \
856
857 #install/plugins/bkgrnd2d.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
858 #install/plugins/bkgrnd2d.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
859 #install/plugins/bkgrnd2d.$(DLL): \
860 #       contrib/bkgrnd2d/bkgrnd2d.o \
861 #       contrib/bkgrnd2d/dialog.o \
862 #       contrib/bkgrnd2d/plugin.o \
863
864 install/heretic2/h2data.$(EXE): LIBS_EXTRA := $(LIBS_XML)
865 install/heretic2/h2data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/qdata_heretic2/common -Itools/quake2/qdata_heretic2/qcommon -Itools/quake2/qdata_heretic2 -Itools/quake2/common -Ilibs -Iinclude
866 install/heretic2/h2data.$(EXE): \
867         tools/quake2/qdata_heretic2/common/bspfile.o \
868         tools/quake2/qdata_heretic2/common/cmdlib.o \
869         tools/quake2/qdata_heretic2/common/inout.o \
870         tools/quake2/qdata_heretic2/common/l3dslib.o \
871         tools/quake2/qdata_heretic2/common/lbmlib.o \
872         tools/quake2/qdata_heretic2/common/mathlib.o \
873         tools/quake2/qdata_heretic2/common/md4.o \
874         tools/quake2/qdata_heretic2/common/path_init.o \
875         tools/quake2/qdata_heretic2/common/qfiles.o \
876         tools/quake2/qdata_heretic2/common/scriplib.o \
877         tools/quake2/qdata_heretic2/common/threads.o \
878         tools/quake2/qdata_heretic2/common/token.o \
879         tools/quake2/qdata_heretic2/common/trilib.o \
880         tools/quake2/qdata_heretic2/qcommon/reference.o \
881         tools/quake2/qdata_heretic2/qcommon/resourcemanager.o \
882         tools/quake2/qdata_heretic2/qcommon/skeletons.o \
883         tools/quake2/qdata_heretic2/animcomp.o \
884         tools/quake2/qdata_heretic2/book.o \
885         tools/quake2/qdata_heretic2/fmodels.o \
886         tools/quake2/qdata_heretic2/images.o \
887         tools/quake2/qdata_heretic2/jointed.o \
888         tools/quake2/qdata_heretic2/models.o \
889         tools/quake2/qdata_heretic2/pics.o \
890         tools/quake2/qdata_heretic2/qdata.o \
891         tools/quake2/qdata_heretic2/qd_skeletons.o \
892         tools/quake2/qdata_heretic2/sprites.o \
893         tools/quake2/qdata_heretic2/svdcmp.o \
894         tools/quake2/qdata_heretic2/tables.o \
895         tools/quake2/qdata_heretic2/tmix.o \
896         tools/quake2/qdata_heretic2/video.o \
897         libl_net.$(A) \
898         $(if $(findstring $(OS),Win32),icons/h2data.o,) \
899
900 .PHONY: install-data
901 install-data: binaries
902         $(MKDIR) install/games
903         $(FIND) install/ -name .svn -exec $(RM_R) {} \; -prune
904         set -ex; \
905         for GAME in games/*; do \
906                 if [ -d "$$GAME/tools" ]; then \
907                         GAME=$$GAME/tools; \
908                 fi; \
909                 for GAMEFILE in $$GAME/games/*.game; do \
910                         $(CP) "$$GAMEFILE" install/games/; \
911                 done; \
912                 for GAMEDIR in $$GAME/*.game; do \
913                         $(CP_R) "$$GAMEDIR" install/; \
914                 done; \
915         done
916         $(ECHO) $(RADIANT_MINOR_VERSION) > install/RADIANT_MINOR
917         $(ECHO) $(RADIANT_MAJOR_VERSION) > install/RADIANT_MAJOR
918         $(CP_R) setup/data/tools/* install/
919         $(FIND) install/ -name .svn -exec $(RM_R) {} \; -prune
920
921 .PHONY: install-dll
922 ifeq ($(OS),Win32)
923 install-dll: binaries
924         MKDIR="$(MKDIR)" CP="$(CP)" CAT="$(CAT)" GTKDIR="$(GTKDIR)" WHICHDLL="$(WHICHDLL)" $(SH) install-dlls.sh
925 else
926 install-dll: binaries
927         @$(ECHO) No DLL inclusion implemented for this target.
928 endif
929
930 -include $(shell find . -name \*.d)