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