+bobtoolz
[divverent/netradiant.git] / Makefile
1 CFLAGS = -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -g3 -fPIC
2 CXXFLAGS = $(CFLAGS) -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti
3 CPPFLAGS_COMMON = -DPOSIX -DXWINDOWS -D_DEBUG -D_LINUX
4 LDFLAGS_COMMON = 
5 LDFLAGS_DLL = -fPIC -Wl,-fini,fini_stub -static-libgcc -ldl
6
7 EXE = x86
8 A = a
9 DLL = so
10 NETAPI = berkley
11
12 RADIANT_ABOUTMSG = Custom build
13
14 LDD ?= ldd
15 FIND ?= find
16 RANLIB ?= ranlib
17 AR ?= ar
18 MKDIR ?= mkdir -p
19 CP ?= cp
20 CP_R ?= $(CP) -r
21 RM_R ?= $(RM) -r
22
23 TEE_STDERR ?= | tee /dev/stderr
24
25 CPPFLAGS_GLIB = `pkg-config glib-2.0 --cflags`
26 LIBS_GLIB = `pkg-config glib-2.0 --libs`
27
28 CPPFLAGS_XML = `xml2-config --cflags`
29 LIBS_XML = `xml2-config --libs`
30
31 CPPFLAGS_PNG = `libpng-config --cflags`
32 LIBS_PNG = `libpng-config --libs`
33
34 CPPFLAGS_GTK = `pkg-config gtk+-2.0 --cflags`
35 LIBS_GTK = `pkg-config gtk+-2.0 --libs`
36
37 CPPFLAGS_GTKGLEXT = `pkg-config gtkglext-1.0 --cflags`
38 LIBS_GTKGLEXT = `pkg-config gtkglext-1.0 --libs`
39
40 LDFLAGS := $(LDFLAGS_COMMON)
41
42 # from qe3.cpp: const char* const EXECUTABLE_TYPE = 
43 # from qe3.cpp: #if defined(__linux__) || defined (__FreeBSD__)
44 # from qe3.cpp: "x86"
45 # from qe3.cpp: #elif defined(__APPLE__)
46 # from qe3.cpp: "ppc"
47 # from qe3.cpp: #elif defined(WIN32)
48 # from qe3.cpp: "exe"
49 # from qe3.cpp: #else
50 # from qe3.cpp: #error "unknown platform"
51 # from qe3.cpp: #endif
52 # from qe3.cpp: ;
53
54 .PHONY: all
55 all: \
56         makeversion \
57         install/q3map2.$(EXE) \
58         install/q3data.$(EXE) \
59         install/radiant.$(EXE) \
60         install/modules/archivezip.$(DLL) \
61         install/modules/entity.$(DLL) \
62         install/modules/image.$(DLL) \
63         install/modules/imagepng.$(DLL) \
64         install/modules/mapq3.$(DLL) \
65         install/modules/md3model.$(DLL) \
66         install/modules/model.$(DLL) \
67         install/modules/shaders.$(DLL) \
68         install/modules/vfspk3.$(DLL) \
69         install/modules/bobtoolz.$(DLL) \
70         install-data \
71
72 .PHONY: clean
73 clean:
74         $(RM_R) install/
75         $(FIND) . \( -name \*.o -o -name \*.$(DLL) -o -name \*.$(A) -o -name \*.$(EXE) \) -exec $(RM) {} \;
76
77 %.$(EXE):
78         dir=$@; $(MKDIR) $${dir%/*}
79         $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
80         [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ 2>&1 >/dev/null $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
81
82 %.$(A):
83         $(AR) rc $@ $^
84         $(RANLIB) $@
85
86 %.$(DLL):
87         dir=$@; $(MKDIR) $${dir%/*}
88         $(CXX) -shared -o $@ $^ $(LDFLAGS) $(LDFLAGS_DLL) $(LIBS)
89         [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ 2>&1 >/dev/null $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
90
91 install/q3map2.$(EXE): LIBS := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_PNG)
92 install/q3map2.$(EXE): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_PNG) -Itools/quake3/common -Ilibs -Iinclude
93 install/q3map2.$(EXE): \
94         tools/quake3/common/cmdlib.o \
95         tools/quake3/common/imagelib.o \
96         tools/quake3/common/inout.o \
97         tools/quake3/common/mutex.o \
98         tools/quake3/common/polylib.o \
99         tools/quake3/common/scriplib.o \
100         tools/quake3/common/threads.o \
101         tools/quake3/common/unzip.o \
102         tools/quake3/common/vfs.o \
103         tools/quake3/common/md4.o \
104         tools/quake3/q3map2/brush.o \
105         tools/quake3/q3map2/brush_primit.o \
106         tools/quake3/q3map2/bspfile_abstract.o \
107         tools/quake3/q3map2/bspfile_ibsp.o \
108         tools/quake3/q3map2/bspfile_rbsp.o \
109         tools/quake3/q3map2/bsp.o \
110         tools/quake3/q3map2/convert_ase.o \
111         tools/quake3/q3map2/convert_map.o \
112         tools/quake3/q3map2/decals.o \
113         tools/quake3/q3map2/facebsp.o \
114         tools/quake3/q3map2/fog.o \
115         tools/quake3/q3map2/image.o \
116         tools/quake3/q3map2/leakfile.o \
117         tools/quake3/q3map2/light_bounce.o \
118         tools/quake3/q3map2/lightmaps_ydnar.o \
119         tools/quake3/q3map2/light.o \
120         tools/quake3/q3map2/light_trace.o \
121         tools/quake3/q3map2/light_ydnar.o \
122         tools/quake3/q3map2/main.o \
123         tools/quake3/q3map2/map.o \
124         tools/quake3/q3map2/mesh.o \
125         tools/quake3/q3map2/model.o \
126         tools/quake3/q3map2/patch.o \
127         tools/quake3/q3map2/path_init.o \
128         tools/quake3/q3map2/portals.o \
129         tools/quake3/q3map2/prtfile.o \
130         tools/quake3/q3map2/shaders.o \
131         tools/quake3/q3map2/surface_extra.o \
132         tools/quake3/q3map2/surface_foliage.o \
133         tools/quake3/q3map2/surface_fur.o \
134         tools/quake3/q3map2/surface_meta.o \
135         tools/quake3/q3map2/surface.o \
136         tools/quake3/q3map2/tjunction.o \
137         tools/quake3/q3map2/tree.o \
138         tools/quake3/q3map2/visflow.o \
139         tools/quake3/q3map2/vis.o \
140         tools/quake3/q3map2/writebsp.o \
141         libmathlib.$(A) \
142         libl_net.$(A) \
143         libjpeg6.$(A) \
144         libpicomodel.$(A) \
145         libddslib.$(A) \
146
147 libmathlib.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs
148 libmathlib.$(A): \
149         libs/mathlib/mathlib.o \
150         libs/mathlib/bbox.o \
151         libs/mathlib/line.o \
152         libs/mathlib/m4x4.o \
153         libs/mathlib/ray.o \
154
155 libl_net.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs
156 libl_net.$(A): \
157         libs/l_net/l_net.o \
158         libs/l_net/l_net_$(NETAPI).o \
159
160 libjpeg6.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs/jpeg6 -Ilibs
161 libjpeg6.$(A): \
162         libs/jpeg6/jcomapi.o \
163         libs/jpeg6/jdcoefct.o \
164         libs/jpeg6/jdinput.o \
165         libs/jpeg6/jdpostct.o \
166         libs/jpeg6/jfdctflt.o \
167         libs/jpeg6/jpgload.o \
168         libs/jpeg6/jdapimin.o \
169         libs/jpeg6/jdcolor.o \
170         libs/jpeg6/jdmainct.o \
171         libs/jpeg6/jdsample.o \
172         libs/jpeg6/jidctflt.o \
173         libs/jpeg6/jutils.o \
174         libs/jpeg6/jdapistd.o \
175         libs/jpeg6/jddctmgr.o \
176         libs/jpeg6/jdmarker.o \
177         libs/jpeg6/jdtrans.o \
178         libs/jpeg6/jmemmgr.o \
179         libs/jpeg6/jdatasrc.o \
180         libs/jpeg6/jdhuff.o \
181         libs/jpeg6/jdmaster.o \
182         libs/jpeg6/jerror.o \
183         libs/jpeg6/jmemnobs.o \
184
185 libpicomodel.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs
186 libpicomodel.$(A): \
187         libs/picomodel/picointernal.o \
188         libs/picomodel/picomodel.o \
189         libs/picomodel/picomodules.o \
190         libs/picomodel/pm_3ds.o \
191         libs/picomodel/pm_ase.o \
192         libs/picomodel/pm_md3.o \
193         libs/picomodel/pm_obj.o \
194         libs/picomodel/pm_ms3d.o \
195         libs/picomodel/pm_mdc.o \
196         libs/picomodel/pm_fm.o \
197         libs/picomodel/pm_md2.o \
198         libs/picomodel/pm_lwo.o \
199         libs/picomodel/pm_terrain.o \
200         libs/picomodel/lwo/clip.o \
201         libs/picomodel/lwo/envelope.o \
202         libs/picomodel/lwo/list.o \
203         libs/picomodel/lwo/lwio.o \
204         libs/picomodel/lwo/lwo2.o \
205         libs/picomodel/lwo/lwob.o \
206         libs/picomodel/lwo/pntspols.o \
207         libs/picomodel/lwo/surface.o \
208         libs/picomodel/lwo/vecmath.o \
209         libs/picomodel/lwo/vmap.o \
210
211 libddslib.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs
212 libddslib.$(A): \
213         libs/ddslib/ddslib.o \
214
215 install/q3data.$(EXE): LIBS := $(LIBS_XML) $(LIBS_GLIB)
216 install/q3data.$(EXE): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Itools/quake3/common -Ilibs -Iinclude
217 install/q3data.$(EXE): \
218         tools/quake3/common/aselib.o \
219         tools/quake3/common/bspfile.o \
220         tools/quake3/common/cmdlib.o \
221         tools/quake3/common/imagelib.o \
222         tools/quake3/common/inout.o \
223         tools/quake3/common/md4.o \
224         tools/quake3/common/scriplib.o \
225         tools/quake3/common/trilib.o \
226         tools/quake3/common/unzip.o \
227         tools/quake3/common/vfs.o \
228         tools/quake3/q3data/3dslib.o \
229         tools/quake3/q3data/compress.o \
230         tools/quake3/q3data/images.o \
231         tools/quake3/q3data/md3lib.o \
232         tools/quake3/q3data/models.o \
233         tools/quake3/q3data/p3dlib.o \
234         tools/quake3/q3data/polyset.o \
235         tools/quake3/q3data/q3data.o \
236         tools/quake3/q3data/stripper.o \
237         tools/quake3/q3data/video.o \
238         libmathlib.$(A) \
239         libl_net.$(A) \
240
241 install/radiant.$(EXE): LIBS := -ldl -lGL -static-libgcc $(LIBS_XML) $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_GTKGLEXT)
242 install/radiant.$(EXE): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) -Ilibs -Iinclude
243 #install/radiant.$(EXE): LDFLAGS := -fPIC -Wl,-fini,fini_stub $(LDFLAGS_COMMON)
244 install/radiant.$(EXE): \
245         radiant/autosave.o \
246         radiant/brush.o \
247         radiant/brushmanip.o \
248         radiant/brushmodule.o \
249         radiant/brushnode.o \
250         radiant/brushtokens.o \
251         radiant/brushxml.o \
252         radiant/brush_primit.o \
253         radiant/build.o \
254         radiant/camwindow.o \
255         radiant/clippertool.o \
256         radiant/commands.o \
257         radiant/console.o \
258         radiant/csg.o \
259         radiant/dialog.o \
260         radiant/eclass.o \
261         radiant/eclass_def.o \
262         radiant/eclass_doom3.o \
263         radiant/eclass_fgd.o \
264         radiant/eclass_xml.o \
265         radiant/entity.o \
266         radiant/entityinspector.o \
267         radiant/entitylist.o \
268         radiant/environment.o \
269         radiant/error.o \
270         radiant/feedback.o \
271         radiant/filetypes.o \
272         radiant/filters.o \
273         radiant/findtexturedialog.o \
274         radiant/glwidget.o \
275         radiant/grid.o \
276         radiant/groupdialog.o \
277         radiant/gtkdlgs.o \
278         radiant/gtkmisc.o \
279         radiant/help.o \
280         radiant/image.o \
281         radiant/main.o \
282         radiant/mainframe.o \
283         radiant/map.o \
284         radiant/mru.o \
285         radiant/nullmodel.o \
286         radiant/parse.o \
287         radiant/patch.o \
288         radiant/patchdialog.o \
289         radiant/patchmanip.o \
290         radiant/patchmodule.o \
291         radiant/plugin.o \
292         radiant/pluginapi.o \
293         radiant/pluginmanager.o \
294         radiant/pluginmenu.o \
295         radiant/plugintoolbar.o \
296         radiant/points.o \
297         radiant/preferencedictionary.o \
298         radiant/preferences.o \
299         radiant/qe3.o \
300         radiant/qgl.o \
301         radiant/referencecache.o \
302         radiant/renderer.o \
303         radiant/renderstate.o \
304         radiant/scenegraph.o \
305         radiant/stacktrace.o \
306         radiant/select.o \
307         radiant/selection.o \
308         radiant/server.o \
309         radiant/shaders.o \
310         radiant/sockets.o \
311         radiant/surfacedialog.o \
312         radiant/texmanip.o \
313         radiant/textures.o \
314         radiant/texwindow.o \
315         radiant/timer.o \
316         radiant/treemodel.o \
317         radiant/undo.o \
318         radiant/url.o \
319         radiant/view.o \
320         radiant/watchbsp.o \
321         radiant/winding.o \
322         radiant/windowobservers.o \
323         radiant/xmlstuff.o \
324         radiant/xywindow.o \
325         libmathlib.$(A) \
326         libcmdlib.$(A) \
327         libl_net.$(A) \
328         libprofile.$(A) \
329         libgtkutil.$(A) \
330         libxmllib.$(A) \
331
332 libcmdlib.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs
333 libcmdlib.$(A): \
334         libs/cmdlib/cmdlib.o \
335
336 libprofile.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
337 libprofile.$(A): \
338         libs/profile/profile.o \
339         libs/profile/file.o \
340
341 libgtkutil.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) -Ilibs -Iinclude
342 libgtkutil.$(A): \
343         libs/gtkutil/accelerator.o \
344         libs/gtkutil/button.o \
345         libs/gtkutil/clipboard.o \
346         libs/gtkutil/closure.o \
347         libs/gtkutil/container.o \
348         libs/gtkutil/cursor.o \
349         libs/gtkutil/dialog.o \
350         libs/gtkutil/entry.o \
351         libs/gtkutil/frame.o \
352         libs/gtkutil/filechooser.o \
353         libs/gtkutil/glfont.o \
354         libs/gtkutil/glwidget.o \
355         libs/gtkutil/image.o \
356         libs/gtkutil/idledraw.o \
357         libs/gtkutil/menu.o \
358         libs/gtkutil/messagebox.o \
359         libs/gtkutil/nonmodal.o \
360         libs/gtkutil/paned.o \
361         libs/gtkutil/pointer.o \
362         libs/gtkutil/toolbar.o \
363         libs/gtkutil/widget.o \
364         libs/gtkutil/window.o \
365         libs/gtkutil/xorrectangle.o \
366
367 libxmllib.$(A): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
368 libxmllib.$(A): \
369         libs/xml/ixml.o \
370         libs/xml/xmlparser.o \
371         libs/xml/xmlwriter.o \
372         libs/xml/xmlelement.o \
373         libs/xml/xmltextags.o \
374
375 install/modules/archivezip.$(DLL): LIBS := -lz
376 install/modules/archivezip.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
377 install/modules/archivezip.$(DLL): \
378         plugins/archivezip/plugin.o \
379         plugins/archivezip/archive.o \
380         plugins/archivezip/pkzip.o \
381         plugins/archivezip/zlibstream.o \
382
383 install/modules/entity.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
384 install/modules/entity.$(DLL): \
385         plugins/entity/plugin.o \
386         plugins/entity/entity.o \
387         plugins/entity/eclassmodel.o \
388         plugins/entity/generic.o \
389         plugins/entity/group.o \
390         plugins/entity/light.o \
391         plugins/entity/miscmodel.o \
392         plugins/entity/doom3group.o \
393         plugins/entity/skincache.o \
394         plugins/entity/angle.o \
395         plugins/entity/angles.o \
396         plugins/entity/colour.o \
397         plugins/entity/filters.o \
398         plugins/entity/model.o \
399         plugins/entity/namedentity.o \
400         plugins/entity/origin.o \
401         plugins/entity/scale.o \
402         plugins/entity/targetable.o \
403         plugins/entity/rotation.o \
404         plugins/entity/modelskinkey.o \
405
406 install/modules/image.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
407 install/modules/image.$(DLL): \
408         plugins/image/bmp.o \
409         plugins/image/jpeg.o \
410         plugins/image/image.o \
411         plugins/image/pcx.o \
412         plugins/image/tga.o \
413         plugins/image/dds.o \
414         libjpeg6.$(A) \
415         libddslib.$(A) \
416
417 install/modules/imagepng.$(DLL): LIBS := $(LIBS_PNG)
418 install/modules/imagepng.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_PNG) -Ilibs -Iinclude
419 install/modules/imagepng.$(DLL): \
420         plugins/imagepng/plugin.o \
421
422 install/modules/mapq3.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
423 install/modules/mapq3.$(DLL): \
424         plugins/mapq3/plugin.o \
425         plugins/mapq3/parse.o \
426         plugins/mapq3/write.o \
427
428 install/modules/md3model.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
429 install/modules/md3model.$(DLL): \
430         plugins/md3model/plugin.o \
431         plugins/md3model/mdl.o \
432         plugins/md3model/md3.o \
433         plugins/md3model/md2.o \
434         plugins/md3model/mdc.o \
435         plugins/md3model/mdlimage.o \
436         plugins/md3model/md5.o \
437
438 install/modules/model.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) -Ilibs -Iinclude
439 install/modules/model.$(DLL): \
440         plugins/model/plugin.o \
441         plugins/model/model.o \
442         libpicomodel.$(A) \
443
444 install/modules/shaders.$(DLL): LIBS := $(LIBS_GLIB)
445 install/modules/shaders.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
446 install/modules/shaders.$(DLL): \
447         plugins/shaders/plugin.o \
448         plugins/shaders/shaders.o \
449
450 install/modules/vfspk3.$(DLL): LIBS := $(LIBS_GLIB)
451 install/modules/vfspk3.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
452 install/modules/vfspk3.$(DLL): \
453         plugins/vfspk3/archive.o \
454         plugins/vfspk3/vfs.o \
455         plugins/vfspk3/vfspk3.o \
456
457 install/modules/bobtoolz.$(DLL): LIBS := $(LIBS_GLIB) $(LIBS_GTK)
458 install/modules/bobtoolz.$(DLL): CPPFLAGS := $(CPPFLAGS_COMMON) $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
459 install/modules/bobtoolz.$(DLL): \
460         contrib/bobtoolz/dialogs/dialogs-gtk.os \
461         contrib/bobtoolz/bobToolz-GTK.os \
462         contrib/bobtoolz/bsploader.os \
463         contrib/bobtoolz/cportals.os \
464         contrib/bobtoolz/DBobView.os \
465         contrib/bobtoolz/DBrush.os \
466         contrib/bobtoolz/DEntity.os \
467         contrib/bobtoolz/DEPair.os \
468         contrib/bobtoolz/DMap.os \
469         contrib/bobtoolz/DPatch.os \
470         contrib/bobtoolz/DPlane.os \
471         contrib/bobtoolz/DPoint.os \
472         contrib/bobtoolz/DShape.os \
473         contrib/bobtoolz/DTrainDrawer.os \
474         contrib/bobtoolz/DTreePlanter.os \
475         contrib/bobtoolz/DVisDrawer.os \
476         contrib/bobtoolz/DWinding.os \
477         contrib/bobtoolz/funchandlers-GTK.os \
478         contrib/bobtoolz/lists.os \
479         contrib/bobtoolz/misc.os \
480         contrib/bobtoolz/ScriptParser.os \
481         contrib/bobtoolz/shapes.os \
482         contrib/bobtoolz/visfind.os \
483         libmathlib.$(A) \
484         libcmdlib.$(A) \
485         libprofile.$(A) \
486
487 .PHONY: makeversion
488 makeversion:
489         set -ex; \
490         ver=`cat include/version.default`; \
491         major=`echo $$ver | cut -d . -f 2`; \
492         minor=`echo $$ver | cut -d . -f 3 | cut -d - -f 1`; \
493         echo "// generated header, see Makefile" > include/version.h; \
494         echo "#define RADIANT_VERSION \"$$ver\"" >> include/version.h; \
495         echo "#define RADIANT_MAJOR_VERSION \"$$major\"" >> include/version.h; \
496         echo "#define RADIANT_MINOR_VERSION \"$$minor\"" >> include/version.h; \
497         echo "$$major" > include/RADIANT_MAJOR; \
498         echo "$$minor" > include/RADIANT_MINOR; \
499         echo "$$ver" > include/version; \
500         echo "// generated header, see Makefile" > include/aboutmsg.h; \
501         echo "#define RADIANT_ABOUTMSG \"$(RADIANT_ABOUTMSG)\"" >> include/aboutmsg.h; \
502
503 .PHONY: install-data
504 install-data:
505         $(MKDIR) install/games
506         set -ex; \
507         for GAME in games/*; do \
508                 for GAMEFILE in $$GAME/games/*.game; do \
509                         $(CP) "$$GAMEFILE" install/games/; \
510                 done; \
511                 for GAMEDIR in $$GAME/*.game; do \
512                         $(CP_R) "$$GAMEDIR" install/; \
513                 done; \
514         done
515         $(CP) include/RADIANT_MAJOR install/
516         $(CP) include/RADIANT_MINOR install/
517         $(CP_R) setup/data/tools/* install/
518         $(FIND) install/ -name .svn -exec $(RM_R) {} \; -prune; \