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