1 MAKEFILE_CONF ?= Makefile.conf
2 -include $(MAKEFILE_CONF)
4 ## CONFIGURATION SETTINGS
5 # user customizable stuf
6 # you may override this in Makefile.conf or the environment
8 # or: release, or: extradebug, or: profile
10 # or: Linux, Win32, Darwin
16 RADIANT_ABOUTMSG ?= Custom build
18 # warning: this directory may NOT contain any files other than the ones written by this Makefile!
19 # NEVER SET THIS TO A SYSTEM WIDE "bin" DIRECTORY!
26 LDD ?= ldd # nothing on Win32
27 OTOOL ?= # only used on OS X
28 WINDRES ?= windres # only used on Win32
30 PKGCONFIG ?= pkg-config
42 TEE_STDERR ?= | tee /dev/stderr
53 FD_TO_DEVNULL ?= >/dev/null
54 STDOUT_TO_DEVNULL ?= 1$(FD_TO_DEVNULL)
55 STDERR_TO_DEVNULL ?= 2$(FD_TO_DEVNULL)
56 STDERR_TO_STDOUT ?= 2>&1
57 TO_DEVNULL ?= $(STDOUT_TO_DEVNULL) $(STDERR_TO_STDOUT)
59 CPPFLAGS_GLIB ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --cflags $(STDERR_TO_DEVNULL))
60 LIBS_GLIB ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
61 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
62 CPPFLAGS_XML ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --cflags $(STDERR_TO_DEVNULL))
63 LIBS_XML ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
64 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
65 CPPFLAGS_PNG ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --cflags $(STDERR_TO_DEVNULL))
66 LIBS_PNG ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-L $(STDERR_TO_DEVNULL)) \
67 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-l $(STDERR_TO_DEVNULL))
68 CPPFLAGS_GTK ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --cflags $(STDERR_TO_DEVNULL))
69 LIBS_GTK ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
70 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
71 CPPFLAGS_PANGOFT2 ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) pangoft2 --cflags $(STDERR_TO_DEVNULL))
72 LIBS_PANGOFT2 ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) pangoft2 --libs-only-L $(STDERR_TO_DEVNULL)) \
73 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) pangoft2 --libs-only-l $(STDERR_TO_DEVNULL))
74 CPPFLAGS_GTKGLEXT ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --cflags $(STDERR_TO_DEVNULL))
75 LIBS_GTKGLEXT ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
76 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --libs-only-l $(STDERR_TO_DEVNULL))
78 LIBS_GL ?= -lGL # -lopengl32 on Win32
80 LIBS_DL ?= -ldl # nothing on Win32
85 DEPEND_ON_MAKEFILE ?= yes
86 DOWNLOAD_GAMEPACKS ?= yes
87 # set to no to disable gamepack, set to all to even download undistributable gamepacks
89 # Support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics
90 ifneq ($(CHECK_DEPENDENCIES),)
91 DEPENDENCIES_CHECK = $(patsubst yes,quiet,$(patsubst no,off,$(CHECK_DEPENDENCIES)))
93 DEPENDENCIES_CHECK ?= quiet
97 # these are used on Win32 only
98 GTKDIR ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --variable=prefix $(STDERR_TO_DEVNULL))
100 DLLINSTALL ?= install-dlls.sh
103 ifeq ($(OS),MINGW32_NT-6.0)
106 ifeq ($(OS),Windows_NT)
110 CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing
114 CXXFLAGS_COMMON = -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti
116 ifeq ($(BUILD),debug)
117 ifeq ($(findstring $(CFLAGS),-g),)
119 # only add -g if no -g flag is in $(CFLAGS)
121 ifeq ($(findstring $(CFLAGS),-O),)
123 # only add -O if no -O flag is in $(CFLAGS)
129 ifeq ($(BUILD),extradebug)
130 ifeq ($(findstring $(CFLAGS),-g),)
132 # only add -g3 if no -g flag is in $(CFLAGS)
134 CPPFLAGS_COMMON += -D_DEBUG
138 ifeq ($(BUILD),profile)
139 ifeq ($(findstring $(CFLAGS),-g),)
141 # only add -g if no -g flag is in $(CFLAGS)
143 ifeq ($(findstring $(CFLAGS),-O),)
145 # only add -O if no -O flag is in $(CFLAGS)
149 LDFLAGS_COMMON += -pg
152 ifeq ($(BUILD),release)
153 ifeq ($(findstring $(CFLAGS),-O),)
155 # only add -O3 if no -O flag is in $(CFLAGS)
156 # to allow overriding the optimizations
162 $(error Unsupported build type: $(BUILD))
168 INSTALLDIR_BASE := $(INSTALLDIR)
171 CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
172 CFLAGS_COMMON += -fPIC
173 LDFLAGS_DLL = -fPIC -ldl
174 LIBS_COMMON = -lpthread
182 CPPFLAGS_COMMON += -DWIN32 -D_WIN32 -D_inline=inline
183 CFLAGS_COMMON += -mms-bitfields
184 LDFLAGS_DLL = -Wl,--add-stdcall-alias
185 LIBS_COMMON = -lws2_32 -luser32 -lgdi32 -lole32
191 # workaround: we have no "ldd" for Win32, so...
193 # workaround: OpenGL library for Win32 is called opengl32.dll
195 # workaround: no -ldl on Win32
200 CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
201 CFLAGS_COMMON += -fPIC
202 CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
203 MACLIBDIR ?= /opt/local/lib
204 CPPFLAGS_COMMON += -I$(MACLIBDIR)/../include -I/usr/X11R6/include
205 LDFLAGS_COMMON += -L$(MACLIBDIR) -L/usr/X11R6/lib
206 LDFLAGS_DLL += -dynamiclib -ldl
211 # workaround for weird prints
212 ECHO_NOLF = /bin/echo -n
214 # workaround: http://developer.apple.com/qa/qa2007/qa1567.html
215 LIBS_GL += -lX11 -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
216 LIBS_GTKGLEXT += -lX11 -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
217 # workaround: we have no "ldd" for OS X, so...
221 INSTALLDIR := $(INSTALLDIR_BASE)/NetRadiant.app/Contents/MacOS/install
224 $(error Unsupported build OS: $(OS))
230 RADIANT_VERSION_NUMBER = 1.5.0
231 RADIANT_VERSION = $(RADIANT_VERSION_NUMBER)n
232 RADIANT_MAJOR_VERSION = 5
233 RADIANT_MINOR_VERSION = 0
234 Q3MAP_VERSION = 2.5.17n
236 # Executable extension
237 RADIANT_EXECUTABLE := $(EXE)
239 GIT_VERSION := $(shell $(GIT) rev-parse --short HEAD $(STDERR_TO_DEVNULL))
240 ifneq ($(GIT_VERSION),)
241 RADIANT_VERSION := $(RADIANT_VERSION)-git-$(GIT_VERSION)
242 Q3MAP_VERSION := $(Q3MAP_VERSION)-git-$(GIT_VERSION)
245 CPPFLAGS += -DRADIANT_VERSION="\"$(RADIANT_VERSION)\"" -DRADIANT_MAJOR_VERSION="\"$(RADIANT_MAJOR_VERSION)\"" -DRADIANT_MINOR_VERSION="\"$(RADIANT_MINOR_VERSION)\"" -DRADIANT_ABOUTMSG="\"$(RADIANT_ABOUTMSG)\"" -DQ3MAP_VERSION="\"$(Q3MAP_VERSION)\"" -DRADIANT_EXECUTABLE="\"$(RADIANT_EXECUTABLE)\""
254 .PHONY: dependencies-check
255 ifeq ($(findstring $(DEPENDENCIES_CHECK),off),off)
257 @$(ECHO) dependencies checking disabled, good luck...
261 @if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; exec 3>&2; else exec 3$(FD_TO_DEVNULL); fi; \
265 $(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
266 $$2 --help >&3 $(STDERR_TO_STDOUT); \
267 if [ $$? != 127 ]; then \
270 $(ECHO) "not found, please install it or set PATH right!"; \
271 $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
272 $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
276 $(ECHO) checking that the build tools exist; \
277 checkbinary "bash (or another shell)" "$(SH)"; \
278 checkbinary coreutils "$(ECHO)"; \
279 checkbinary coreutils "$(ECHO_NOLF)"; \
280 checkbinary coreutils "$(CAT)"; \
281 checkbinary coreutils "$(MKDIR)"; \
282 checkbinary coreutils "$(CP)"; \
283 checkbinary coreutils "$(CP_R)"; \
284 checkbinary coreutils "$(RM)"; \
285 checkbinary coreutils "$(RM_R)"; \
286 checkbinary coreutils "$(MV)"; \
287 checkbinary coreutils "$(ECHO) test $(TEE_STDERR)"; \
288 checkbinary sed "$(SED)"; \
289 checkbinary findutils "$(FIND)"; \
290 checkbinary diff "$(DIFF)"; \
291 checkbinary gcc "$(CC)"; \
292 checkbinary g++ "$(CXX)"; \
293 checkbinary binutils "$(RANLIB)"; \
294 checkbinary binutils "$(AR)"; \
295 checkbinary pkg-config "$(PKGCONFIG)"; \
296 checkbinary unzip "$(UNZIPPER)"; \
297 checkbinary git-core "$(GIT)"; \
298 checkbinary subversion "$(SVN)"; \
299 checkbinary wget "$(WGET)"; \
300 [ "$(OS)" = "Win32" ] && checkbinary mingw32 "$(WINDRES)"; \
301 [ -n "$(LDD)" ] && checkbinary libc6 "$(LDD)"; \
302 [ -n "$(OTOOL)" ] && checkbinary xcode "$(OTOOL)"; \
303 [ "$$failed" = "0" ] && $(ECHO) All required tools have been found!
305 @if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; exec 3>&2; else exec 3$(FD_TO_DEVNULL); fi; \
309 $(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
311 $(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 >&3 $(STDERR_TO_STDOUT); \
314 $(CXX) conftest.o $(LDFLAGS) $(LDFLAGS_COMMON) $$5 $(LIBS_COMMON) $(LIBS) -o conftest >&3 $(STDERR_TO_STDOUT); \
316 $(RM) conftest conftest.o conftest.d; \
317 $(ECHO) "found and links."; \
319 $(RM) conftest.o conftest.d; \
320 $(ECHO) "found but does not link, please install it or set PKG_CONFIG_PATH right!"; \
321 $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
322 $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
326 $(RM) conftest conftest.o conftest.d; \
327 $(ECHO) "not found, please install it or set PKG_CONFIG_PATH right!"; \
328 $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
329 $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
333 $(ECHO) checking that the dependencies exist; \
334 checkheader libjpeg8-dev jpeglib.h jpeg_set_defaults "$(CPPFLAGS_JPEG)" "$(LIBS_JPEG)"; \
335 checkheader libglib2.0-dev glib.h g_path_is_absolute "$(CPPFLAGS_GLIB)" "$(LIBS_GLIB)"; \
336 checkheader libxml2-dev libxml/xpath.h xmlXPathInit "$(CPPFLAGS_XML)" "$(LIBS_XML)"; \
337 checkheader libpng12-dev png.h png_create_read_struct "$(CPPFLAGS_PNG)" "$(LIBS_PNG)"; \
338 checkheader "mesa-common-dev (or another OpenGL library)" GL/gl.h glClear "$(CPPFLAGS_GL)" "$(LIBS_GL)"; \
339 checkheader libgtk2.0-dev gtk/gtkdialog.h gtk_dialog_run "$(CPPFLAGS_GTK)" "$(LIBS_GTK)"; \
340 checkheader libpango1.0-dev pango/pangoft2.h pango_ft2_font_map_new "$(CPPFLAGS_PANGOFT2)" "$(LIBS_PANGOFT2)"; \
341 checkheader libgtkglext1-dev gtk/gtkglwidget.h gtk_widget_get_gl_context "$(CPPFLAGS_GTKGLEXT)" "$(LIBS_GTKGLEXT)"; \
342 [ "$(OS)" != "Win32" ] && checkheader libc6-dev dlfcn.h dlopen "$(CPPFLAGS_DL)" "$(LIBS_DL)"; \
343 checkheader zlib1g-dev zlib.h zlibVersion "$(CPPFLAGS_ZLIB)" "$(LIBS_ZLIB)"; \
344 [ "$$failed" = "0" ] && $(ECHO) All required libraries have been found!
353 .PHONY: binaries-radiant-all
355 binaries-radiant-modules \
356 binaries-radiant-plugins \
357 binaries-radiant-core \
359 .PHONY: binaries-radiant-modules
360 binaries-radiant-modules: \
361 $(INSTALLDIR)/modules/archivepak.$(DLL) \
362 $(INSTALLDIR)/modules/archivewad.$(DLL) \
363 $(INSTALLDIR)/modules/archivezip.$(DLL) \
364 $(INSTALLDIR)/modules/entity.$(DLL) \
365 $(INSTALLDIR)/modules/image.$(DLL) \
366 $(INSTALLDIR)/modules/imagehl.$(DLL) \
367 $(INSTALLDIR)/modules/imagepng.$(DLL) \
368 $(INSTALLDIR)/modules/imageq2.$(DLL) \
369 $(INSTALLDIR)/modules/mapq3.$(DLL) \
370 $(INSTALLDIR)/modules/mapxml.$(DLL) \
371 $(INSTALLDIR)/modules/md3model.$(DLL) \
372 $(INSTALLDIR)/modules/model.$(DLL) \
373 $(INSTALLDIR)/modules/shaders.$(DLL) \
374 $(INSTALLDIR)/modules/vfspk3.$(DLL) \
376 .PHONY: binaries-radiant-plugins
377 binaries-radiant-plugins: \
378 $(INSTALLDIR)/plugins/bobtoolz.$(DLL) \
379 $(INSTALLDIR)/plugins/brushexport.$(DLL) \
380 $(INSTALLDIR)/plugins/prtview.$(DLL) \
381 $(INSTALLDIR)/plugins/shaderplug.$(DLL) \
382 $(INSTALLDIR)/plugins/sunplug.$(DLL) \
383 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL) \
385 .PHONY: binaries-radiant
386 binaries-radiant-core: \
387 $(INSTALLDIR)/radiant.$(EXE) \
389 .PHONY: binaries-tools
391 binaries-tools-quake2 \
392 binaries-tools-quake3 \
394 .PHONY: binaries-tools-quake2
395 binaries-tools-quake2: \
400 .PHONY: binaries-q2map
402 $(INSTALLDIR)/q2map.$(EXE) \
404 .PHONY: binaries-qdata3
406 $(INSTALLDIR)/qdata3.$(EXE) \
408 .PHONY: binaries-h2data
410 $(INSTALLDIR)/heretic2/h2data.$(EXE)
412 .PHONY: binaries-tools-quake3
413 binaries-tools-quake3: \
417 .PHONY: binaries-q3data
419 $(INSTALLDIR)/q3data.$(EXE) \
421 .PHONY: binaries-q3map2
423 $(INSTALLDIR)/q3map2.$(EXE) \
428 $(RM_R) $(INSTALLDIR_BASE)/
429 $(FIND) . \( -name \*.o -o -name \*.d -o -name \*.$(DLL) -o -name \*.$(A) -o -name \*.$(EXE) \) -exec $(RM) {} \;
433 file=$@; $(MKDIR) $${file%/*}
434 $(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -o $@
435 [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
442 file=$@; $(MKDIR) $${file%/*}
443 $(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LDFLAGS_DLL) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -shared -o $@
444 [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
447 $(ECHO) '1 ICON "$<"' > $@
454 %.o: %.cpp $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),) | dependencies-check
455 $(CXX) $< $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@
457 %.o: %.c $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),) | dependencies-check
458 $(CC) $< $(CFLAGS) $(CFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@
461 $(INSTALLDIR)/q3map2.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_PNG) $(LIBS_JPEG) $(LIBS_ZLIB)
462 $(INSTALLDIR)/q3map2.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_PNG) $(CPPFLAGS_JPEG) -Itools/quake3/common -Ilibs -Iinclude
463 $(INSTALLDIR)/q3map2.$(EXE): \
464 tools/quake3/common/cmdlib.o \
465 tools/quake3/common/imagelib.o \
466 tools/quake3/common/inout.o \
467 tools/quake3/common/jpeg.o \
468 tools/quake3/common/md4.o \
469 tools/quake3/common/mutex.o \
470 tools/quake3/common/polylib.o \
471 tools/quake3/common/scriplib.o \
472 tools/quake3/common/threads.o \
473 tools/quake3/common/unzip.o \
474 tools/quake3/common/vfs.o \
475 tools/quake3/q3map2/brush.o \
476 tools/quake3/q3map2/brush_primit.o \
477 tools/quake3/q3map2/bspfile_abstract.o \
478 tools/quake3/q3map2/bspfile_ibsp.o \
479 tools/quake3/q3map2/bspfile_rbsp.o \
480 tools/quake3/q3map2/bsp.o \
481 tools/quake3/q3map2/convert_ase.o \
482 tools/quake3/q3map2/convert_obj.o \
483 tools/quake3/q3map2/convert_map.o \
484 tools/quake3/q3map2/decals.o \
485 tools/quake3/q3map2/facebsp.o \
486 tools/quake3/q3map2/fog.o \
487 tools/quake3/q3map2/image.o \
488 tools/quake3/q3map2/leakfile.o \
489 tools/quake3/q3map2/light_bounce.o \
490 tools/quake3/q3map2/lightmaps_ydnar.o \
491 tools/quake3/q3map2/light.o \
492 tools/quake3/q3map2/light_trace.o \
493 tools/quake3/q3map2/light_ydnar.o \
494 tools/quake3/q3map2/main.o \
495 tools/quake3/q3map2/map.o \
496 tools/quake3/q3map2/mesh.o \
497 tools/quake3/q3map2/model.o \
498 tools/quake3/q3map2/patch.o \
499 tools/quake3/q3map2/path_init.o \
500 tools/quake3/q3map2/portals.o \
501 tools/quake3/q3map2/prtfile.o \
502 tools/quake3/q3map2/shaders.o \
503 tools/quake3/q3map2/surface_extra.o \
504 tools/quake3/q3map2/surface_foliage.o \
505 tools/quake3/q3map2/surface_fur.o \
506 tools/quake3/q3map2/surface_meta.o \
507 tools/quake3/q3map2/surface.o \
508 tools/quake3/q3map2/tjunction.o \
509 tools/quake3/q3map2/tree.o \
510 tools/quake3/q3map2/visflow.o \
511 tools/quake3/q3map2/vis.o \
512 tools/quake3/q3map2/writebsp.o \
518 $(if $(findstring $(OS),Win32),icons/q3map2.o,) \
520 libmathlib.$(A): CPPFLAGS_EXTRA := -Ilibs
522 libs/mathlib/bbox.o \
523 libs/mathlib/line.o \
524 libs/mathlib/m4x4.o \
525 libs/mathlib/mathlib.o \
528 libl_net.$(A): CPPFLAGS_EXTRA := -Ilibs
531 $(if $(findstring $(OS),Win32),libs/l_net/l_net_wins.o,libs/l_net/l_net_berkley.o) \
533 libpicomodel.$(A): CPPFLAGS_EXTRA := -Ilibs
535 libs/picomodel/lwo/clip.o \
536 libs/picomodel/lwo/envelope.o \
537 libs/picomodel/lwo/list.o \
538 libs/picomodel/lwo/lwio.o \
539 libs/picomodel/lwo/lwo2.o \
540 libs/picomodel/lwo/lwob.o \
541 libs/picomodel/lwo/pntspols.o \
542 libs/picomodel/lwo/surface.o \
543 libs/picomodel/lwo/vecmath.o \
544 libs/picomodel/lwo/vmap.o \
545 libs/picomodel/picointernal.o \
546 libs/picomodel/picomodel.o \
547 libs/picomodel/picomodules.o \
548 libs/picomodel/pm_3ds.o \
549 libs/picomodel/pm_ase.o \
550 libs/picomodel/pm_fm.o \
551 libs/picomodel/pm_lwo.o \
552 libs/picomodel/pm_md2.o \
553 libs/picomodel/pm_md3.o \
554 libs/picomodel/pm_mdc.o \
555 libs/picomodel/pm_ms3d.o \
556 libs/picomodel/pm_obj.o \
557 libs/picomodel/pm_terrain.o \
559 libddslib.$(A): CPPFLAGS_EXTRA := -Ilibs
561 libs/ddslib/ddslib.o \
563 $(INSTALLDIR)/q3data.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_ZLIB)
564 $(INSTALLDIR)/q3data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_ZLIB) -Itools/quake3/common -Ilibs -Iinclude
565 $(INSTALLDIR)/q3data.$(EXE): \
566 tools/quake3/common/aselib.o \
567 tools/quake3/common/bspfile.o \
568 tools/quake3/common/cmdlib.o \
569 tools/quake3/common/imagelib.o \
570 tools/quake3/common/inout.o \
571 tools/quake3/common/md4.o \
572 tools/quake3/common/scriplib.o \
573 tools/quake3/common/trilib.o \
574 tools/quake3/common/unzip.o \
575 tools/quake3/common/vfs.o \
576 tools/quake3/q3data/3dslib.o \
577 tools/quake3/q3data/compress.o \
578 tools/quake3/q3data/images.o \
579 tools/quake3/q3data/md3lib.o \
580 tools/quake3/q3data/models.o \
581 tools/quake3/q3data/p3dlib.o \
582 tools/quake3/q3data/polyset.o \
583 tools/quake3/q3data/q3data.o \
584 tools/quake3/q3data/stripper.o \
585 tools/quake3/q3data/video.o \
589 $(if $(findstring $(OS),Win32),icons/q3data.o,) \
591 $(INSTALLDIR)/radiant.$(EXE): LDFLAGS_EXTRA := $(MWINDOWS)
592 $(INSTALLDIR)/radiant.$(EXE): LIBS_EXTRA := $(LIBS_GL) $(LIBS_DL) $(LIBS_XML) $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_GTKGLEXT) $(LIBS_ZLIB) $(LIBS_PANGOFT2)
593 $(INSTALLDIR)/radiant.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_GL) $(CPPFLAGS_DL) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) $(CPPFLAGS_PANGOFT2) -Ilibs -Iinclude
594 $(INSTALLDIR)/radiant.$(EXE): \
596 radiant/brushmanip.o \
597 radiant/brushmodule.o \
598 radiant/brushnode.o \
600 radiant/brush_primit.o \
601 radiant/brushtokens.o \
604 radiant/camwindow.o \
605 radiant/clippertool.o \
610 radiant/eclass_def.o \
611 radiant/eclass_doom3.o \
612 radiant/eclass_fgd.o \
614 radiant/eclass_xml.o \
615 radiant/entityinspector.o \
616 radiant/entitylist.o \
618 radiant/environment.o \
621 radiant/filetypes.o \
623 radiant/findtexturedialog.o \
626 radiant/groupdialog.o \
631 radiant/mainframe.o \
634 $(if $(findstring $(OS),Win32),radiant/multimon.o,) \
636 radiant/nullmodel.o \
638 radiant/patchdialog.o \
639 radiant/patchmanip.o \
640 radiant/patchmodule.o \
642 radiant/pluginapi.o \
643 radiant/pluginmanager.o \
644 radiant/pluginmenu.o \
646 radiant/plugintoolbar.o \
648 radiant/preferencedictionary.o \
649 radiant/preferences.o \
652 radiant/referencecache.o \
654 radiant/renderstate.o \
655 radiant/scenegraph.o \
656 radiant/selection.o \
661 radiant/stacktrace.o \
662 radiant/surfacedialog.o \
665 radiant/texwindow.o \
667 radiant/treemodel.o \
673 radiant/windowobservers.o \
682 $(if $(findstring $(OS),Win32),icons/radiant.o,) \
684 libfilematch.$(A): CPPFLAGS_EXTRA := -Ilibs
688 libcmdlib.$(A): CPPFLAGS_EXTRA := -Ilibs
690 libs/cmdlib/cmdlib.o \
692 libprofile.$(A): CPPFLAGS_EXTRA := -Ilibs -Iinclude
694 libs/profile/file.o \
695 libs/profile/profile.o \
697 libgtkutil.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) $(CPPFLAGS_PANGOFT2) -Ilibs -Iinclude
699 libs/gtkutil/accelerator.o \
700 libs/gtkutil/button.o \
701 libs/gtkutil/clipboard.o \
702 libs/gtkutil/closure.o \
703 libs/gtkutil/container.o \
704 libs/gtkutil/cursor.o \
705 libs/gtkutil/dialog.o \
706 libs/gtkutil/entry.o \
707 libs/gtkutil/filechooser.o \
708 libs/gtkutil/frame.o \
709 libs/gtkutil/glfont.o \
710 libs/gtkutil/glwidget.o \
711 libs/gtkutil/idledraw.o \
712 libs/gtkutil/image.o \
713 libs/gtkutil/menu.o \
714 libs/gtkutil/messagebox.o \
715 libs/gtkutil/nonmodal.o \
716 libs/gtkutil/paned.o \
717 libs/gtkutil/pointer.o \
718 libs/gtkutil/toolbar.o \
719 libs/gtkutil/widget.o \
720 libs/gtkutil/window.o \
721 libs/gtkutil/xorrectangle.o \
723 libxmllib.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
726 libs/xml/xmlelement.o \
727 libs/xml/xmlparser.o \
728 libs/xml/xmltextags.o \
729 libs/xml/xmlwriter.o \
731 $(INSTALLDIR)/modules/archivezip.$(DLL): LIBS_EXTRA := $(LIBS_ZLIB)
732 $(INSTALLDIR)/modules/archivezip.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_ZLIB) -Ilibs -Iinclude
733 $(INSTALLDIR)/modules/archivezip.$(DLL): \
734 plugins/archivezip/archive.o \
735 plugins/archivezip/pkzip.o \
736 plugins/archivezip/plugin.o \
737 plugins/archivezip/zlibstream.o \
739 $(INSTALLDIR)/modules/archivewad.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
740 $(INSTALLDIR)/modules/archivewad.$(DLL): \
741 plugins/archivewad/archive.o \
742 plugins/archivewad/plugin.o \
743 plugins/archivewad/wad.o \
745 $(INSTALLDIR)/modules/archivepak.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
746 $(INSTALLDIR)/modules/archivepak.$(DLL): \
747 plugins/archivepak/archive.o \
748 plugins/archivepak/pak.o \
749 plugins/archivepak/plugin.o \
751 $(INSTALLDIR)/modules/entity.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
752 $(INSTALLDIR)/modules/entity.$(DLL): \
753 plugins/entity/angle.o \
754 plugins/entity/angles.o \
755 plugins/entity/colour.o \
756 plugins/entity/doom3group.o \
757 plugins/entity/eclassmodel.o \
758 plugins/entity/entity.o \
759 plugins/entity/filters.o \
760 plugins/entity/generic.o \
761 plugins/entity/group.o \
762 plugins/entity/light.o \
763 plugins/entity/miscmodel.o \
764 plugins/entity/model.o \
765 plugins/entity/modelskinkey.o \
766 plugins/entity/namedentity.o \
767 plugins/entity/origin.o \
768 plugins/entity/plugin.o \
769 plugins/entity/rotation.o \
770 plugins/entity/scale.o \
771 plugins/entity/skincache.o \
772 plugins/entity/targetable.o \
774 $(INSTALLDIR)/modules/image.$(DLL): LIBS_EXTRA := $(LIBS_JPEG)
775 $(INSTALLDIR)/modules/image.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_JPEG) -Ilibs -Iinclude
776 $(INSTALLDIR)/modules/image.$(DLL): \
777 plugins/image/bmp.o \
778 plugins/image/dds.o \
779 plugins/image/image.o \
780 plugins/image/jpeg.o \
781 plugins/image/pcx.o \
782 plugins/image/tga.o \
785 $(INSTALLDIR)/modules/imageq2.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
786 $(INSTALLDIR)/modules/imageq2.$(DLL): \
787 plugins/imageq2/imageq2.o \
788 plugins/imageq2/wal32.o \
789 plugins/imageq2/wal.o \
791 $(INSTALLDIR)/modules/imagehl.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
792 $(INSTALLDIR)/modules/imagehl.$(DLL): \
793 plugins/imagehl/hlw.o \
794 plugins/imagehl/imagehl.o \
795 plugins/imagehl/mip.o \
796 plugins/imagehl/sprite.o \
798 $(INSTALLDIR)/modules/imagepng.$(DLL): LIBS_EXTRA := $(LIBS_PNG)
799 $(INSTALLDIR)/modules/imagepng.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_PNG) -Ilibs -Iinclude
800 $(INSTALLDIR)/modules/imagepng.$(DLL): \
801 plugins/imagepng/plugin.o \
803 $(INSTALLDIR)/modules/mapq3.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
804 $(INSTALLDIR)/modules/mapq3.$(DLL): \
805 plugins/mapq3/parse.o \
806 plugins/mapq3/plugin.o \
807 plugins/mapq3/write.o \
809 $(INSTALLDIR)/modules/mapxml.$(DLL): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB)
810 $(INSTALLDIR)/modules/mapxml.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
811 $(INSTALLDIR)/modules/mapxml.$(DLL): \
812 plugins/mapxml/plugin.o \
813 plugins/mapxml/xmlparse.o \
814 plugins/mapxml/xmlwrite.o \
816 $(INSTALLDIR)/modules/md3model.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
817 $(INSTALLDIR)/modules/md3model.$(DLL): \
818 plugins/md3model/md2.o \
819 plugins/md3model/md3.o \
820 plugins/md3model/md5.o \
821 plugins/md3model/mdc.o \
822 plugins/md3model/mdlimage.o \
823 plugins/md3model/mdl.o \
824 plugins/md3model/plugin.o \
826 $(INSTALLDIR)/modules/model.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
827 $(INSTALLDIR)/modules/model.$(DLL): \
828 plugins/model/model.o \
829 plugins/model/plugin.o \
832 $(INSTALLDIR)/modules/shaders.$(DLL): LIBS_EXTRA := $(LIBS_GLIB)
833 $(INSTALLDIR)/modules/shaders.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) -Ilibs -Iinclude
834 $(INSTALLDIR)/modules/shaders.$(DLL): \
835 plugins/shaders/plugin.o \
836 plugins/shaders/shaders.o \
838 $(INSTALLDIR)/modules/vfspk3.$(DLL): LIBS_EXTRA := $(LIBS_GLIB)
839 $(INSTALLDIR)/modules/vfspk3.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) -Ilibs -Iinclude
840 $(INSTALLDIR)/modules/vfspk3.$(DLL): \
841 plugins/vfspk3/archive.o \
842 plugins/vfspk3/vfs.o \
843 plugins/vfspk3/vfspk3.o \
846 $(INSTALLDIR)/plugins/bobtoolz.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
847 $(INSTALLDIR)/plugins/bobtoolz.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
848 $(INSTALLDIR)/plugins/bobtoolz.$(DLL): \
849 contrib/bobtoolz/bobToolz-GTK.o \
850 contrib/bobtoolz/bsploader.o \
851 contrib/bobtoolz/cportals.o \
852 contrib/bobtoolz/DBobView.o \
853 contrib/bobtoolz/DBrush.o \
854 contrib/bobtoolz/DEntity.o \
855 contrib/bobtoolz/DEPair.o \
856 contrib/bobtoolz/dialogs/dialogs-gtk.o \
857 contrib/bobtoolz/DMap.o \
858 contrib/bobtoolz/DPatch.o \
859 contrib/bobtoolz/DPlane.o \
860 contrib/bobtoolz/DPoint.o \
861 contrib/bobtoolz/DShape.o \
862 contrib/bobtoolz/DTrainDrawer.o \
863 contrib/bobtoolz/DTreePlanter.o \
864 contrib/bobtoolz/DVisDrawer.o \
865 contrib/bobtoolz/DWinding.o \
866 contrib/bobtoolz/funchandlers-GTK.o \
867 contrib/bobtoolz/lists.o \
868 contrib/bobtoolz/misc.o \
869 contrib/bobtoolz/ScriptParser.o \
870 contrib/bobtoolz/shapes.o \
871 contrib/bobtoolz/visfind.o \
876 $(INSTALLDIR)/plugins/brushexport.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
877 $(INSTALLDIR)/plugins/brushexport.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
878 $(INSTALLDIR)/plugins/brushexport.$(DLL): \
879 contrib/brushexport/callbacks.o \
880 contrib/brushexport/export.o \
881 contrib/brushexport/interface.o \
882 contrib/brushexport/plugin.o \
883 contrib/brushexport/support.o \
885 $(INSTALLDIR)/plugins/prtview.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
886 $(INSTALLDIR)/plugins/prtview.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
887 $(INSTALLDIR)/plugins/prtview.$(DLL): \
888 contrib/prtview/AboutDialog.o \
889 contrib/prtview/ConfigDialog.o \
890 contrib/prtview/LoadPortalFileDialog.o \
891 contrib/prtview/portals.o \
892 contrib/prtview/prtview.o \
895 $(INSTALLDIR)/plugins/shaderplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_XML)
896 $(INSTALLDIR)/plugins/shaderplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_XML) -Ilibs -Iinclude
897 $(INSTALLDIR)/plugins/shaderplug.$(DLL): \
898 contrib/shaderplug/shaderplug.o \
901 $(INSTALLDIR)/plugins/sunplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
902 $(INSTALLDIR)/plugins/sunplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
903 $(INSTALLDIR)/plugins/sunplug.$(DLL): \
904 contrib/sunplug/sunplug.o \
906 $(INSTALLDIR)/qdata3.$(EXE): LIBS_EXTRA := $(LIBS_XML)
907 $(INSTALLDIR)/qdata3.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
908 $(INSTALLDIR)/qdata3.$(EXE): \
909 tools/quake2/common/bspfile.o \
910 tools/quake2/common/cmdlib.o \
911 tools/quake2/common/inout.o \
912 tools/quake2/common/l3dslib.o \
913 tools/quake2/common/lbmlib.o \
914 tools/quake2/common/mathlib.o \
915 tools/quake2/common/md4.o \
916 tools/quake2/common/path_init.o \
917 tools/quake2/common/polylib.o \
918 tools/quake2/common/scriplib.o \
919 tools/quake2/common/threads.o \
920 tools/quake2/common/trilib.o \
921 tools/quake2/qdata/images.o \
922 tools/quake2/qdata/models.o \
923 tools/quake2/qdata/qdata.o \
924 tools/quake2/qdata/sprites.o \
925 tools/quake2/qdata/tables.o \
926 tools/quake2/qdata/video.o \
928 $(if $(findstring $(OS),Win32),icons/qdata3.o,) \
930 $(INSTALLDIR)/q2map.$(EXE): LIBS_EXTRA := $(LIBS_XML)
931 $(INSTALLDIR)/q2map.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
932 $(INSTALLDIR)/q2map.$(EXE): \
933 tools/quake2/common/bspfile.o \
934 tools/quake2/common/cmdlib.o \
935 tools/quake2/common/inout.o \
936 tools/quake2/common/l3dslib.o \
937 tools/quake2/common/lbmlib.o \
938 tools/quake2/common/mathlib.o \
939 tools/quake2/common/md4.o \
940 tools/quake2/common/path_init.o \
941 tools/quake2/common/polylib.o \
942 tools/quake2/common/scriplib.o \
943 tools/quake2/common/threads.o \
944 tools/quake2/common/trilib.o \
945 tools/quake2/q2map/brushbsp.o \
946 tools/quake2/q2map/csg.o \
947 tools/quake2/q2map/faces.o \
948 tools/quake2/q2map/flow.o \
949 tools/quake2/q2map/glfile.o \
950 tools/quake2/q2map/leakfile.o \
951 tools/quake2/q2map/lightmap.o \
952 tools/quake2/q2map/main.o \
953 tools/quake2/q2map/map.o \
954 tools/quake2/q2map/nodraw.o \
955 tools/quake2/q2map/patches.o \
956 tools/quake2/q2map/portals.o \
957 tools/quake2/q2map/prtfile.o \
958 tools/quake2/q2map/qbsp.o \
959 tools/quake2/q2map/qrad.o \
960 tools/quake2/q2map/qvis.o \
961 tools/quake2/q2map/textures.o \
962 tools/quake2/q2map/trace.o \
963 tools/quake2/q2map/tree.o \
964 tools/quake2/q2map/writebsp.o \
966 $(if $(findstring $(OS),Win32),icons/q2map.o,) \
968 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
969 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
970 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL): \
971 contrib/ufoaiplug/ufoai_filters.o \
972 contrib/ufoaiplug/ufoai_gtk.o \
973 contrib/ufoaiplug/ufoai_level.o \
974 contrib/ufoaiplug/ufoai.o \
976 $(INSTALLDIR)/plugins/bkgrnd2d.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
977 $(INSTALLDIR)/plugins/bkgrnd2d.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
978 $(INSTALLDIR)/plugins/bkgrnd2d.$(DLL): \
979 contrib/bkgrnd2d/bkgrnd2d.o \
980 contrib/bkgrnd2d/dialog.o \
981 contrib/bkgrnd2d/plugin.o \
983 $(INSTALLDIR)/heretic2/h2data.$(EXE): LIBS_EXTRA := $(LIBS_XML)
984 $(INSTALLDIR)/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
985 $(INSTALLDIR)/heretic2/h2data.$(EXE): \
986 tools/quake2/qdata_heretic2/common/bspfile.o \
987 tools/quake2/qdata_heretic2/common/cmdlib.o \
988 tools/quake2/qdata_heretic2/common/inout.o \
989 tools/quake2/qdata_heretic2/common/l3dslib.o \
990 tools/quake2/qdata_heretic2/common/lbmlib.o \
991 tools/quake2/qdata_heretic2/common/mathlib.o \
992 tools/quake2/qdata_heretic2/common/md4.o \
993 tools/quake2/qdata_heretic2/common/path_init.o \
994 tools/quake2/qdata_heretic2/common/qfiles.o \
995 tools/quake2/qdata_heretic2/common/scriplib.o \
996 tools/quake2/qdata_heretic2/common/threads.o \
997 tools/quake2/qdata_heretic2/common/token.o \
998 tools/quake2/qdata_heretic2/common/trilib.o \
999 tools/quake2/qdata_heretic2/qcommon/reference.o \
1000 tools/quake2/qdata_heretic2/qcommon/resourcemanager.o \
1001 tools/quake2/qdata_heretic2/qcommon/skeletons.o \
1002 tools/quake2/qdata_heretic2/animcomp.o \
1003 tools/quake2/qdata_heretic2/book.o \
1004 tools/quake2/qdata_heretic2/fmodels.o \
1005 tools/quake2/qdata_heretic2/images.o \
1006 tools/quake2/qdata_heretic2/jointed.o \
1007 tools/quake2/qdata_heretic2/models.o \
1008 tools/quake2/qdata_heretic2/pics.o \
1009 tools/quake2/qdata_heretic2/qdata.o \
1010 tools/quake2/qdata_heretic2/qd_skeletons.o \
1011 tools/quake2/qdata_heretic2/sprites.o \
1012 tools/quake2/qdata_heretic2/svdcmp.o \
1013 tools/quake2/qdata_heretic2/tables.o \
1014 tools/quake2/qdata_heretic2/tmix.o \
1015 tools/quake2/qdata_heretic2/video.o \
1017 $(if $(findstring $(OS),Win32),icons/h2data.o,) \
1019 .PHONY: install-data
1020 install-data: binaries
1021 $(MKDIR) $(INSTALLDIR)/games
1022 $(FIND) $(INSTALLDIR_BASE)/ -name .svn -exec $(RM_R) {} \; -prune
1023 [ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
1024 DOWNLOAD_GAMEPACKS="$(DOWNLOAD_GAMEPACKS)" GIT="$(GIT)" SVN="$(SVN)" WGET="$(WGET)" RM_R="$(RM_R)" MV="$(MV)" UNZIPPER="$(UNZIPPER)" ECHO="$(ECHO)" SH="$(SH)" CP="$(CP)" CP_R="$(CP_R)" $(SH) install-gamepacks.sh "$(INSTALLDIR)"
1025 $(ECHO) $(RADIANT_MINOR_VERSION) > $(INSTALLDIR)/RADIANT_MINOR
1026 $(ECHO) $(RADIANT_MAJOR_VERSION) > $(INSTALLDIR)/RADIANT_MAJOR
1027 $(CP_R) setup/data/tools/* $(INSTALLDIR)/
1028 $(MKDIR) $(INSTALLDIR)/docs
1029 $(CP_R) docs/* $(INSTALLDIR)/docs/
1030 $(FIND) $(INSTALLDIR_BASE)/ -name .svn -exec $(RM_R) {} \; -prune
1034 install-dll: binaries
1035 MKDIR="$(MKDIR)" CP="$(CP)" CAT="$(CAT)" GTKDIR="$(GTKDIR)" WHICHDLL="$(WHICHDLL)" INSTALLDIR="$(INSTALLDIR)" $(SH) $(DLLINSTALL)
1038 install-dll: binaries
1039 EXE="$(EXE)" MACLIBDIR="$(MACLIBDIR)" CP="$(CP)" OTOOL="$(OTOOL)" INSTALLDIR="$(INSTALLDIR)" $(SH) install-dylibs.sh
1041 install-dll: binaries
1042 @$(ECHO) No DLL inclusion implemented for this target.
1046 # release building... NOT for general users
1047 # these may use tools not in the list that is checked by the build system
1048 release-src: BUILD_DATE := $(shell date +%Y%m%d)
1049 release-src: INSTALLDIR := netradiant-$(RADIANT_VERSION_NUMBER)-$(BUILD_DATE)
1051 $(GIT) archive --format=tar --prefix=$(INSTALLDIR)/ HEAD | bzip2 > ../$(INSTALLDIR).tar.bz2
1053 release-win32: BUILD_DATE := $(shell date +%Y%m%d)
1054 release-win32: INSTALLDIR := netradiant-$(RADIANT_VERSION_NUMBER)-$(BUILD_DATE)
1056 $(MAKE) all INSTALLDIR=$(INSTALLDIR) MAKEFILE_CONF=cross-Makefile.conf RADIANT_ABOUTMSG="Official release build" BUILD=release
1057 7za a -sfx../../../../../../../../../../$(HOME)/7z.sfx ../$(INSTALLDIR)-win32-7z.exe $(INSTALLDIR)/
1058 chmod 644 ../$(INSTALLDIR)-win32-7z.exe # 7zip is evil
1059 $(MAKE) clean INSTALLDIR=$(INSTALLDIR) MAKEFILE_CONF=cross-Makefile.conf RADIANT_ABOUTMSG="Official release build" BUILD=release
1064 $(MAKE) release-win32
1066 # load dependency files
1067 -include $(shell find . -name \*.d)