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
49 SVNVERSION ?= svnversion
51 STDOUT_TO_DEVNULL ?= >/dev/null
52 STDERR_TO_DEVNULL ?= 2>/dev/null
53 STDERR_TO_STDOUT ?= 2>&1
54 TO_DEVNULL ?= $(STDOUT_TO_DEVNULL) $(STDERR_TO_STDOUT)
56 CPPFLAGS_GLIB ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --cflags $(STDERR_TO_DEVNULL))
57 LIBS_GLIB ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
58 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
59 CPPFLAGS_XML ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --cflags $(STDERR_TO_DEVNULL))
60 LIBS_XML ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
61 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
62 CPPFLAGS_PNG ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --cflags $(STDERR_TO_DEVNULL))
63 LIBS_PNG ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-L $(STDERR_TO_DEVNULL)) \
64 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-l $(STDERR_TO_DEVNULL))
65 CPPFLAGS_GTK ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --cflags $(STDERR_TO_DEVNULL))
66 LIBS_GTK ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
67 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --libs-only-l $(STDERR_TO_DEVNULL))
68 CPPFLAGS_GTKGLEXT ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --cflags $(STDERR_TO_DEVNULL))
69 LIBS_GTKGLEXT ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --libs-only-L $(STDERR_TO_DEVNULL)) \
70 $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtkglext-1.0 --libs-only-l $(STDERR_TO_DEVNULL))
72 LIBS_GL ?= -lGL # -lopengl32 on Win32
74 LIBS_DL ?= -ldl # nothing on Win32
77 DEPEND_ON_MAKEFILE ?= yes
78 DEPENDENCIES_CHECK ?= quiet
81 # these are used on Win32 only
82 GTKDIR ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) gtk+-2.0 --variable=prefix $(STDERR_TO_DEVNULL))
86 ifeq ($(OS),MINGW32_NT-6.0)
89 ifeq ($(OS),Windows_NT)
93 CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing
97 CXXFLAGS_COMMON = -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti
100 ifeq ($(findstring $(CFLAGS),-g),)
102 # only add -g if no -g flag is in $(CFLAGS)
104 ifeq ($(findstring $(CFLAGS),-O),)
106 # only add -O if no -O flag is in $(CFLAGS)
112 ifeq ($(BUILD),extradebug)
113 ifeq ($(findstring $(CFLAGS),-g),)
115 # only add -g3 if no -g flag is in $(CFLAGS)
117 CPPFLAGS_COMMON += -D_DEBUG
121 ifeq ($(BUILD),profile)
122 ifeq ($(findstring $(CFLAGS),-g),)
124 # only add -g if no -g flag is in $(CFLAGS)
126 ifeq ($(findstring $(CFLAGS),-O),)
128 # only add -O if no -O flag is in $(CFLAGS)
132 LDFLAGS_COMMON += -pg
135 ifeq ($(BUILD),release)
136 ifeq ($(findstring $(CFLAGS),-O),)
138 # only add -O3 if no -O flag is in $(CFLAGS)
139 # to allow overriding the optimizations
145 $(error Unsupported build type: $(BUILD))
151 INSTALLDIR_BASE := $(INSTALLDIR)
154 CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
155 CFLAGS_COMMON += -fPIC
156 LDFLAGS_DLL = -fPIC -ldl
157 LIBS_COMMON = -lpthread
165 CPPFLAGS_COMMON += -DWIN32 -D_WIN32 -D_inline=inline
166 CFLAGS_COMMON += -mms-bitfields
167 LDFLAGS_DLL = --dll -Wl,--add-stdcall-alias
168 LIBS_COMMON = -lws2_32 -luser32 -lgdi32
174 # workaround: we have no "ldd" for Win32, so...
176 # workaround: OpenGL library for Win32 is called opengl32.dll
178 # workaround: no -ldl on Win32
183 CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
184 CFLAGS_COMMON += -fPIC
185 CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
186 CPPFLAGS_COMMON += -I/sw/include -I/usr/X11R6/include
187 LDFLAGS_COMMON += -L/sw/lib -L/usr/X11R6/lib
188 #LDFLAGS_COMMON += -L/sw/lib -L/usr/lib -L/usr/X11R6/lib
189 LDFLAGS_DLL += -dynamiclib -ldl
196 # workaround for weird prints
197 ECHO_NOLF = /bin/echo -n
199 # workaround: http://developer.apple.com/qa/qa2007/qa1567.html
200 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
201 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
202 # workaround: we have no "ldd" for OS X, so...
206 INSTALLDIR := $(INSTALLDIR_BASE)/NetRadiant.app/Contents/MacOS/install
209 $(error Unsupported build OS: $(OS))
215 RADIANT_VERSION = 1.5.0n
216 RADIANT_MAJOR_VERSION = 5
217 RADIANT_MINOR_VERSION = 0
218 Q3MAP_VERSION = 2.5.17n
220 # Executable extension
221 RADIANT_EXECUTABLE := $(EXE)
223 SVN_VERSION := $(shell $(SVNVERSION) -n $(STDERR_TO_DEVNULL) | $(SED) 's/M$$//g; s/.*://g;')
224 ifneq ($(SVN_VERSION),)
225 RADIANT_VERSION := $(RADIANT_VERSION)-svn$(SVN_VERSION)
226 Q3MAP_VERSION := $(Q3MAP_VERSION)-svn$(SVN_VERSION)
229 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)\""
238 .PHONY: dependencies-check
239 ifeq ($(findstring $(DEPENDENCIES_CHECK),off),off)
241 @$(ECHO) dependencies checking disabled, good luck...
245 @if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; fi; \
249 $(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
250 $$2 --help $(TO_DEVNULL); \
251 if [ $$? != 127 ]; then \
254 $(ECHO) "not found, please install it or set PATH right!"; \
255 $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
256 $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
260 $(ECHO) checking that the build tools exist; \
261 checkbinary "bash (or another shell)" "$(SH)"; \
262 checkbinary coreutils "$(ECHO)"; \
263 checkbinary coreutils "$(ECHO_NOLF)"; \
264 checkbinary coreutils "$(CAT)"; \
265 checkbinary coreutils "$(MKDIR)"; \
266 checkbinary coreutils "$(CP)"; \
267 checkbinary coreutils "$(CP_R)"; \
268 checkbinary coreutils "$(RM)"; \
269 checkbinary coreutils "$(RM_R)"; \
270 checkbinary coreutils "$(ECHO) test $(TEE_STDERR)"; \
271 checkbinary sed "$(SED)"; \
272 checkbinary findutils "$(FIND)"; \
273 checkbinary diff "$(DIFF)"; \
274 checkbinary gcc "$(CC)"; \
275 checkbinary g++ "$(CXX)"; \
276 checkbinary binutils "$(RANLIB)"; \
277 checkbinary binutils "$(AR)"; \
278 checkbinary pkg-config "$(PKGCONFIG)"; \
279 [ "$(OS)" = "Win32" ] && checkbinary mingw32 "$(WINDRES)"; \
280 [ -n "$(LDD)" ] && checkbinary libc6 "$(LDD)"; \
281 [ -n "$(OTOOL)" ] && checkbinary xcode "$(OTOOL)"; \
282 [ "$$failed" = "0" ] && $(ECHO) All required tools have been found!
284 @if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; fi; \
288 $(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
290 $(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) && \
291 $(CXX) conftest.o $(LDFLAGS) $(LDFLAGS_COMMON) $$5 $(LIBS_COMMON) $(LIBS) -o conftest $(TO_DEVNULL); \
293 $(RM) conftest conftest.o conftest.d; \
296 $(RM) conftest conftest.o conftest.d; \
297 $(ECHO) "not found, please install it or set PKG_CONFIG_PATH right!"; \
298 $(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
299 $(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
303 $(ECHO) checking that the dependencies exist; \
304 checkheader libglib2.0-dev glib/gutils.h g_path_is_absolute "$(CPPFLAGS_GLIB)" "$(LIBS_GLIB)"; \
305 checkheader libxml2-dev libxml/xpath.h xmlXPathInit "$(CPPFLAGS_XML)" "$(LIBS_XML)"; \
306 checkheader libpng12-dev png.h png_create_read_struct "$(CPPFLAGS_PNG)" "$(LIBS_PNG)"; \
307 checkheader "mesa-common-dev (or another OpenGL library)" GL/gl.h glClear "$(CPPFLAGS_GL)" "$(LIBS_GL)"; \
308 checkheader libgtk2.0-dev gtk/gtkdialog.h gtk_dialog_run "$(CPPFLAGS_GTK)" "$(LIBS_GTK)"; \
309 checkheader libgtkglext1-dev gtk/gtkglwidget.h gtk_widget_get_gl_context "$(CPPFLAGS_GTKGLEXT)" "$(LIBS_GTKGLEXT)"; \
310 [ "$(OS)" != "Win32" ] && checkheader libc6-dev dlfcn.h dlopen "$(CPPFLAGS_DL)" "$(LIBS_DL)"; \
311 checkheader zlib1g-dev zlib.h zlibVersion "$(CPPFLAGS_ZLIB)" "$(LIBS_ZLIB)"; \
312 [ "$$failed" = "0" ] && $(ECHO) All required libraries have been found!
318 $(INSTALLDIR)/heretic2/h2data.$(EXE) \
319 $(INSTALLDIR)/modules/archivepak.$(DLL) \
320 $(INSTALLDIR)/modules/archivewad.$(DLL) \
321 $(INSTALLDIR)/modules/archivezip.$(DLL) \
322 $(INSTALLDIR)/modules/entity.$(DLL) \
323 $(INSTALLDIR)/modules/image.$(DLL) \
324 $(INSTALLDIR)/modules/imagehl.$(DLL) \
325 $(INSTALLDIR)/modules/imagepng.$(DLL) \
326 $(INSTALLDIR)/modules/imageq2.$(DLL) \
327 $(INSTALLDIR)/modules/mapq3.$(DLL) \
328 $(INSTALLDIR)/modules/mapxml.$(DLL) \
329 $(INSTALLDIR)/modules/md3model.$(DLL) \
330 $(INSTALLDIR)/modules/model.$(DLL) \
331 $(INSTALLDIR)/modules/shaders.$(DLL) \
332 $(INSTALLDIR)/modules/vfspk3.$(DLL) \
333 $(INSTALLDIR)/plugins/bobtoolz.$(DLL) \
334 $(INSTALLDIR)/plugins/brushexport.$(DLL) \
335 $(INSTALLDIR)/plugins/prtview.$(DLL) \
336 $(INSTALLDIR)/plugins/shaderplug.$(DLL) \
337 $(INSTALLDIR)/plugins/sunplug.$(DLL) \
338 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL) \
339 $(INSTALLDIR)/q2map.$(EXE) \
340 $(INSTALLDIR)/q3data.$(EXE) \
341 $(INSTALLDIR)/q3map2.$(EXE) \
342 $(INSTALLDIR)/qdata3.$(EXE) \
343 $(INSTALLDIR)/radiant.$(EXE) \
347 $(RM_R) $(INSTALLDIR_BASE)/
348 $(FIND) . \( -name \*.o -o -name \*.d -o -name \*.$(DLL) -o -name \*.$(A) -o -name \*.$(EXE) \) -exec $(RM) {} \;
352 file=$@; $(MKDIR) $${file%/*}
353 $(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -o $@
354 [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
361 file=$@; $(MKDIR) $${file%/*}
362 $(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LDFLAGS_DLL) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -shared -o $@
363 [ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
366 $(ECHO) '1 ICON "$<"' > $@
373 %.o: %.cpp $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),)
374 $(CXX) $< $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@
376 %.o: %.c $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),)
377 $(CC) $< $(CFLAGS) $(CFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@
379 $(INSTALLDIR)/q3map2.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_PNG) $(LIBS_ZLIB)
380 $(INSTALLDIR)/q3map2.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_PNG) -Itools/quake3/common -Ilibs -Iinclude
381 $(INSTALLDIR)/q3map2.$(EXE): \
382 tools/quake3/common/cmdlib.o \
383 tools/quake3/common/imagelib.o \
384 tools/quake3/common/inout.o \
385 tools/quake3/common/md4.o \
386 tools/quake3/common/mutex.o \
387 tools/quake3/common/polylib.o \
388 tools/quake3/common/scriplib.o \
389 tools/quake3/common/threads.o \
390 tools/quake3/common/unzip.o \
391 tools/quake3/common/vfs.o \
392 tools/quake3/q3map2/brush.o \
393 tools/quake3/q3map2/brush_primit.o \
394 tools/quake3/q3map2/bspfile_abstract.o \
395 tools/quake3/q3map2/bspfile_ibsp.o \
396 tools/quake3/q3map2/bspfile_rbsp.o \
397 tools/quake3/q3map2/bsp.o \
398 tools/quake3/q3map2/convert_ase.o \
399 tools/quake3/q3map2/convert_map.o \
400 tools/quake3/q3map2/decals.o \
401 tools/quake3/q3map2/facebsp.o \
402 tools/quake3/q3map2/fog.o \
403 tools/quake3/q3map2/image.o \
404 tools/quake3/q3map2/leakfile.o \
405 tools/quake3/q3map2/light_bounce.o \
406 tools/quake3/q3map2/lightmaps_ydnar.o \
407 tools/quake3/q3map2/light.o \
408 tools/quake3/q3map2/light_trace.o \
409 tools/quake3/q3map2/light_ydnar.o \
410 tools/quake3/q3map2/main.o \
411 tools/quake3/q3map2/map.o \
412 tools/quake3/q3map2/mesh.o \
413 tools/quake3/q3map2/model.o \
414 tools/quake3/q3map2/patch.o \
415 tools/quake3/q3map2/path_init.o \
416 tools/quake3/q3map2/portals.o \
417 tools/quake3/q3map2/prtfile.o \
418 tools/quake3/q3map2/shaders.o \
419 tools/quake3/q3map2/surface_extra.o \
420 tools/quake3/q3map2/surface_foliage.o \
421 tools/quake3/q3map2/surface_fur.o \
422 tools/quake3/q3map2/surface_meta.o \
423 tools/quake3/q3map2/surface.o \
424 tools/quake3/q3map2/tjunction.o \
425 tools/quake3/q3map2/tree.o \
426 tools/quake3/q3map2/visflow.o \
427 tools/quake3/q3map2/vis.o \
428 tools/quake3/q3map2/writebsp.o \
434 $(if $(findstring $(OS),Win32),icons/q3map2.o,) \
436 libmathlib.$(A): CPPFLAGS_EXTRA := -Ilibs
438 libs/mathlib/bbox.o \
439 libs/mathlib/line.o \
440 libs/mathlib/m4x4.o \
441 libs/mathlib/mathlib.o \
444 libl_net.$(A): CPPFLAGS_EXTRA := -Ilibs
447 $(if $(findstring $(OS),Win32),libs/l_net/l_net_wins.o,libs/l_net/l_net_berkley.o) \
449 libjpeg6.$(A): CPPFLAGS_EXTRA := -Ilibs/jpeg6 -Ilibs
451 libs/jpeg6/jcomapi.o \
452 libs/jpeg6/jdapimin.o \
453 libs/jpeg6/jdapistd.o \
454 libs/jpeg6/jdatasrc.o \
455 libs/jpeg6/jdcoefct.o \
456 libs/jpeg6/jdcolor.o \
457 libs/jpeg6/jddctmgr.o \
458 libs/jpeg6/jdhuff.o \
459 libs/jpeg6/jdinput.o \
460 libs/jpeg6/jdmainct.o \
461 libs/jpeg6/jdmarker.o \
462 libs/jpeg6/jdmaster.o \
463 libs/jpeg6/jdpostct.o \
464 libs/jpeg6/jdsample.o \
465 libs/jpeg6/jdtrans.o \
466 libs/jpeg6/jerror.o \
467 libs/jpeg6/jfdctflt.o \
468 libs/jpeg6/jidctflt.o \
469 libs/jpeg6/jmemmgr.o \
470 libs/jpeg6/jmemnobs.o \
471 libs/jpeg6/jpgload.o \
472 libs/jpeg6/jutils.o \
474 libpicomodel.$(A): CPPFLAGS_EXTRA := -Ilibs
476 libs/picomodel/lwo/clip.o \
477 libs/picomodel/lwo/envelope.o \
478 libs/picomodel/lwo/list.o \
479 libs/picomodel/lwo/lwio.o \
480 libs/picomodel/lwo/lwo2.o \
481 libs/picomodel/lwo/lwob.o \
482 libs/picomodel/lwo/pntspols.o \
483 libs/picomodel/lwo/surface.o \
484 libs/picomodel/lwo/vecmath.o \
485 libs/picomodel/lwo/vmap.o \
486 libs/picomodel/picointernal.o \
487 libs/picomodel/picomodel.o \
488 libs/picomodel/picomodules.o \
489 libs/picomodel/pm_3ds.o \
490 libs/picomodel/pm_ase.o \
491 libs/picomodel/pm_fm.o \
492 libs/picomodel/pm_lwo.o \
493 libs/picomodel/pm_md2.o \
494 libs/picomodel/pm_md3.o \
495 libs/picomodel/pm_mdc.o \
496 libs/picomodel/pm_ms3d.o \
497 libs/picomodel/pm_obj.o \
498 libs/picomodel/pm_terrain.o \
500 libddslib.$(A): CPPFLAGS_EXTRA := -Ilibs
502 libs/ddslib/ddslib.o \
504 $(INSTALLDIR)/q3data.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_ZLIB)
505 $(INSTALLDIR)/q3data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_ZLIB) -Itools/quake3/common -Ilibs -Iinclude
506 $(INSTALLDIR)/q3data.$(EXE): \
507 tools/quake3/common/aselib.o \
508 tools/quake3/common/bspfile.o \
509 tools/quake3/common/cmdlib.o \
510 tools/quake3/common/imagelib.o \
511 tools/quake3/common/inout.o \
512 tools/quake3/common/md4.o \
513 tools/quake3/common/scriplib.o \
514 tools/quake3/common/trilib.o \
515 tools/quake3/common/unzip.o \
516 tools/quake3/common/vfs.o \
517 tools/quake3/q3data/3dslib.o \
518 tools/quake3/q3data/compress.o \
519 tools/quake3/q3data/images.o \
520 tools/quake3/q3data/md3lib.o \
521 tools/quake3/q3data/models.o \
522 tools/quake3/q3data/p3dlib.o \
523 tools/quake3/q3data/polyset.o \
524 tools/quake3/q3data/q3data.o \
525 tools/quake3/q3data/stripper.o \
526 tools/quake3/q3data/video.o \
529 $(if $(findstring $(OS),Win32),icons/q3data.o,) \
531 $(INSTALLDIR)/radiant.$(EXE): LDFLAGS_EXTRA := $(MWINDOWS)
532 $(INSTALLDIR)/radiant.$(EXE): LIBS_EXTRA := $(LIBS_GL) $(LIBS_DL) $(LIBS_XML) $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_GTKGLEXT) $(LIBS_ZLIB)
533 $(INSTALLDIR)/radiant.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_GL) $(CPPFLAGS_DL) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) -Ilibs -Iinclude
534 $(INSTALLDIR)/radiant.$(EXE): \
536 radiant/brushmanip.o \
537 radiant/brushmodule.o \
538 radiant/brushnode.o \
540 radiant/brush_primit.o \
541 radiant/brushtokens.o \
544 radiant/camwindow.o \
545 radiant/clippertool.o \
550 radiant/eclass_def.o \
551 radiant/eclass_doom3.o \
552 radiant/eclass_fgd.o \
554 radiant/eclass_xml.o \
555 radiant/entityinspector.o \
556 radiant/entitylist.o \
558 radiant/environment.o \
561 radiant/filetypes.o \
563 radiant/findtexturedialog.o \
566 radiant/groupdialog.o \
571 radiant/mainframe.o \
574 $(if $(findstring $(OS),Win32),radiant/multimon.o,) \
576 radiant/nullmodel.o \
578 radiant/patchdialog.o \
579 radiant/patchmanip.o \
580 radiant/patchmodule.o \
582 radiant/pluginapi.o \
583 radiant/pluginmanager.o \
584 radiant/pluginmenu.o \
586 radiant/plugintoolbar.o \
588 radiant/preferencedictionary.o \
589 radiant/preferences.o \
592 radiant/referencecache.o \
594 radiant/renderstate.o \
595 radiant/scenegraph.o \
596 radiant/selection.o \
601 radiant/stacktrace.o \
602 radiant/surfacedialog.o \
605 radiant/texwindow.o \
607 radiant/treemodel.o \
613 radiant/windowobservers.o \
622 $(if $(findstring $(OS),Win32),icons/radiant.o,) \
624 libcmdlib.$(A): CPPFLAGS_EXTRA := -Ilibs
626 libs/cmdlib/cmdlib.o \
628 libprofile.$(A): CPPFLAGS_EXTRA := -Ilibs -Iinclude
630 libs/profile/file.o \
631 libs/profile/profile.o \
633 libgtkutil.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_GTKGLEXT) -Ilibs -Iinclude
635 libs/gtkutil/accelerator.o \
636 libs/gtkutil/button.o \
637 libs/gtkutil/clipboard.o \
638 libs/gtkutil/closure.o \
639 libs/gtkutil/container.o \
640 libs/gtkutil/cursor.o \
641 libs/gtkutil/dialog.o \
642 libs/gtkutil/entry.o \
643 libs/gtkutil/filechooser.o \
644 libs/gtkutil/frame.o \
645 libs/gtkutil/glfont.o \
646 libs/gtkutil/glwidget.o \
647 libs/gtkutil/idledraw.o \
648 libs/gtkutil/image.o \
649 libs/gtkutil/menu.o \
650 libs/gtkutil/messagebox.o \
651 libs/gtkutil/nonmodal.o \
652 libs/gtkutil/paned.o \
653 libs/gtkutil/pointer.o \
654 libs/gtkutil/toolbar.o \
655 libs/gtkutil/widget.o \
656 libs/gtkutil/window.o \
657 libs/gtkutil/xorrectangle.o \
659 libxmllib.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
662 libs/xml/xmlelement.o \
663 libs/xml/xmlparser.o \
664 libs/xml/xmltextags.o \
665 libs/xml/xmlwriter.o \
667 $(INSTALLDIR)/modules/archivezip.$(DLL): LIBS_EXTRA := $(LIBS_ZLIB)
668 $(INSTALLDIR)/modules/archivezip.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_ZLIB) -Ilibs -Iinclude
669 $(INSTALLDIR)/modules/archivezip.$(DLL): \
670 plugins/archivezip/archive.o \
671 plugins/archivezip/pkzip.o \
672 plugins/archivezip/plugin.o \
673 plugins/archivezip/zlibstream.o \
675 $(INSTALLDIR)/modules/archivewad.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
676 $(INSTALLDIR)/modules/archivewad.$(DLL): \
677 plugins/archivewad/archive.o \
678 plugins/archivewad/plugin.o \
679 plugins/archivewad/wad.o \
681 $(INSTALLDIR)/modules/archivepak.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
682 $(INSTALLDIR)/modules/archivepak.$(DLL): \
683 plugins/archivepak/archive.o \
684 plugins/archivepak/pak.o \
685 plugins/archivepak/plugin.o \
687 $(INSTALLDIR)/modules/entity.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
688 $(INSTALLDIR)/modules/entity.$(DLL): \
689 plugins/entity/angle.o \
690 plugins/entity/angles.o \
691 plugins/entity/colour.o \
692 plugins/entity/doom3group.o \
693 plugins/entity/eclassmodel.o \
694 plugins/entity/entity.o \
695 plugins/entity/filters.o \
696 plugins/entity/generic.o \
697 plugins/entity/group.o \
698 plugins/entity/light.o \
699 plugins/entity/miscmodel.o \
700 plugins/entity/model.o \
701 plugins/entity/modelskinkey.o \
702 plugins/entity/namedentity.o \
703 plugins/entity/origin.o \
704 plugins/entity/plugin.o \
705 plugins/entity/rotation.o \
706 plugins/entity/scale.o \
707 plugins/entity/skincache.o \
708 plugins/entity/targetable.o \
710 $(INSTALLDIR)/modules/image.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
711 $(INSTALLDIR)/modules/image.$(DLL): \
712 plugins/image/bmp.o \
713 plugins/image/dds.o \
714 plugins/image/image.o \
715 plugins/image/jpeg.o \
716 plugins/image/pcx.o \
717 plugins/image/tga.o \
721 $(INSTALLDIR)/modules/imageq2.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
722 $(INSTALLDIR)/modules/imageq2.$(DLL): \
723 plugins/imageq2/imageq2.o \
724 plugins/imageq2/wal32.o \
725 plugins/imageq2/wal.o \
727 $(INSTALLDIR)/modules/imagehl.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
728 $(INSTALLDIR)/modules/imagehl.$(DLL): \
729 plugins/imagehl/hlw.o \
730 plugins/imagehl/imagehl.o \
731 plugins/imagehl/mip.o \
732 plugins/imagehl/sprite.o \
734 $(INSTALLDIR)/modules/imagepng.$(DLL): LIBS_EXTRA := $(LIBS_PNG)
735 $(INSTALLDIR)/modules/imagepng.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_PNG) -Ilibs -Iinclude
736 $(INSTALLDIR)/modules/imagepng.$(DLL): \
737 plugins/imagepng/plugin.o \
739 $(INSTALLDIR)/modules/mapq3.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
740 $(INSTALLDIR)/modules/mapq3.$(DLL): \
741 plugins/mapq3/parse.o \
742 plugins/mapq3/plugin.o \
743 plugins/mapq3/write.o \
745 $(INSTALLDIR)/modules/mapxml.$(DLL): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB)
746 $(INSTALLDIR)/modules/mapxml.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
747 $(INSTALLDIR)/modules/mapxml.$(DLL): \
748 plugins/mapxml/plugin.o \
749 plugins/mapxml/xmlparse.o \
750 plugins/mapxml/xmlwrite.o \
752 $(INSTALLDIR)/modules/md3model.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
753 $(INSTALLDIR)/modules/md3model.$(DLL): \
754 plugins/md3model/md2.o \
755 plugins/md3model/md3.o \
756 plugins/md3model/md5.o \
757 plugins/md3model/mdc.o \
758 plugins/md3model/mdlimage.o \
759 plugins/md3model/mdl.o \
760 plugins/md3model/plugin.o \
762 $(INSTALLDIR)/modules/model.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
763 $(INSTALLDIR)/modules/model.$(DLL): \
764 plugins/model/model.o \
765 plugins/model/plugin.o \
768 $(INSTALLDIR)/modules/shaders.$(DLL): LIBS_EXTRA := $(LIBS_GLIB)
769 $(INSTALLDIR)/modules/shaders.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) -Ilibs -Iinclude
770 $(INSTALLDIR)/modules/shaders.$(DLL): \
771 plugins/shaders/plugin.o \
772 plugins/shaders/shaders.o \
774 $(INSTALLDIR)/modules/vfspk3.$(DLL): LIBS_EXTRA := $(LIBS_GLIB)
775 $(INSTALLDIR)/modules/vfspk3.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) -Ilibs -Iinclude
776 $(INSTALLDIR)/modules/vfspk3.$(DLL): \
777 plugins/vfspk3/archive.o \
778 plugins/vfspk3/vfs.o \
779 plugins/vfspk3/vfspk3.o \
781 $(INSTALLDIR)/plugins/bobtoolz.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
782 $(INSTALLDIR)/plugins/bobtoolz.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
783 $(INSTALLDIR)/plugins/bobtoolz.$(DLL): \
784 contrib/bobtoolz/bobToolz-GTK.o \
785 contrib/bobtoolz/bsploader.o \
786 contrib/bobtoolz/cportals.o \
787 contrib/bobtoolz/DBobView.o \
788 contrib/bobtoolz/DBrush.o \
789 contrib/bobtoolz/DEntity.o \
790 contrib/bobtoolz/DEPair.o \
791 contrib/bobtoolz/dialogs/dialogs-gtk.o \
792 contrib/bobtoolz/DMap.o \
793 contrib/bobtoolz/DPatch.o \
794 contrib/bobtoolz/DPlane.o \
795 contrib/bobtoolz/DPoint.o \
796 contrib/bobtoolz/DShape.o \
797 contrib/bobtoolz/DTrainDrawer.o \
798 contrib/bobtoolz/DTreePlanter.o \
799 contrib/bobtoolz/DVisDrawer.o \
800 contrib/bobtoolz/DWinding.o \
801 contrib/bobtoolz/funchandlers-GTK.o \
802 contrib/bobtoolz/lists.o \
803 contrib/bobtoolz/misc.o \
804 contrib/bobtoolz/ScriptParser.o \
805 contrib/bobtoolz/shapes.o \
806 contrib/bobtoolz/visfind.o \
811 $(INSTALLDIR)/plugins/brushexport.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
812 $(INSTALLDIR)/plugins/brushexport.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
813 $(INSTALLDIR)/plugins/brushexport.$(DLL): \
814 contrib/brushexport/callbacks.o \
815 contrib/brushexport/export.o \
816 contrib/brushexport/interface.o \
817 contrib/brushexport/plugin.o \
818 contrib/brushexport/support.o \
820 $(INSTALLDIR)/plugins/prtview.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
821 $(INSTALLDIR)/plugins/prtview.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
822 $(INSTALLDIR)/plugins/prtview.$(DLL): \
823 contrib/prtview/AboutDialog.o \
824 contrib/prtview/ConfigDialog.o \
825 contrib/prtview/LoadPortalFileDialog.o \
826 contrib/prtview/portals.o \
827 contrib/prtview/prtview.o \
830 $(INSTALLDIR)/plugins/shaderplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_XML)
831 $(INSTALLDIR)/plugins/shaderplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) $(CPPFLAGS_XML) -Ilibs -Iinclude
832 $(INSTALLDIR)/plugins/shaderplug.$(DLL): \
833 contrib/shaderplug/shaderplug.o \
836 $(INSTALLDIR)/plugins/sunplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
837 $(INSTALLDIR)/plugins/sunplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
838 $(INSTALLDIR)/plugins/sunplug.$(DLL): \
839 contrib/sunplug/sunplug.o \
841 $(INSTALLDIR)/qdata3.$(EXE): LIBS_EXTRA := $(LIBS_XML)
842 $(INSTALLDIR)/qdata3.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
843 $(INSTALLDIR)/qdata3.$(EXE): \
844 tools/quake2/common/bspfile.o \
845 tools/quake2/common/cmdlib.o \
846 tools/quake2/common/inout.o \
847 tools/quake2/common/l3dslib.o \
848 tools/quake2/common/lbmlib.o \
849 tools/quake2/common/mathlib.o \
850 tools/quake2/common/md4.o \
851 tools/quake2/common/path_init.o \
852 tools/quake2/common/polylib.o \
853 tools/quake2/common/scriplib.o \
854 tools/quake2/common/threads.o \
855 tools/quake2/common/trilib.o \
856 tools/quake2/qdata/images.o \
857 tools/quake2/qdata/models.o \
858 tools/quake2/qdata/qdata.o \
859 tools/quake2/qdata/sprites.o \
860 tools/quake2/qdata/tables.o \
861 tools/quake2/qdata/video.o \
863 $(if $(findstring $(OS),Win32),icons/qdata3.o,) \
865 $(INSTALLDIR)/q2map.$(EXE): LIBS_EXTRA := $(LIBS_XML)
866 $(INSTALLDIR)/q2map.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
867 $(INSTALLDIR)/q2map.$(EXE): \
868 tools/quake2/common/bspfile.o \
869 tools/quake2/common/cmdlib.o \
870 tools/quake2/common/inout.o \
871 tools/quake2/common/l3dslib.o \
872 tools/quake2/common/lbmlib.o \
873 tools/quake2/common/mathlib.o \
874 tools/quake2/common/md4.o \
875 tools/quake2/common/path_init.o \
876 tools/quake2/common/polylib.o \
877 tools/quake2/common/scriplib.o \
878 tools/quake2/common/threads.o \
879 tools/quake2/common/trilib.o \
880 tools/quake2/q2map/brushbsp.o \
881 tools/quake2/q2map/csg.o \
882 tools/quake2/q2map/faces.o \
883 tools/quake2/q2map/flow.o \
884 tools/quake2/q2map/glfile.o \
885 tools/quake2/q2map/leakfile.o \
886 tools/quake2/q2map/lightmap.o \
887 tools/quake2/q2map/main.o \
888 tools/quake2/q2map/map.o \
889 tools/quake2/q2map/nodraw.o \
890 tools/quake2/q2map/patches.o \
891 tools/quake2/q2map/portals.o \
892 tools/quake2/q2map/prtfile.o \
893 tools/quake2/q2map/qbsp.o \
894 tools/quake2/q2map/qrad.o \
895 tools/quake2/q2map/qvis.o \
896 tools/quake2/q2map/textures.o \
897 tools/quake2/q2map/trace.o \
898 tools/quake2/q2map/tree.o \
899 tools/quake2/q2map/writebsp.o \
901 $(if $(findstring $(OS),Win32),icons/q2map.o,) \
903 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
904 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
905 $(INSTALLDIR)/plugins/ufoaiplug.$(DLL): \
906 contrib/ufoaiplug/ufoai_filters.o \
907 contrib/ufoaiplug/ufoai_gtk.o \
908 contrib/ufoaiplug/ufoai_level.o \
909 contrib/ufoaiplug/ufoai.o \
911 $(INSTALLDIR)/plugins/bkgrnd2d.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
912 $(INSTALLDIR)/plugins/bkgrnd2d.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
913 $(INSTALLDIR)/plugins/bkgrnd2d.$(DLL): \
914 contrib/bkgrnd2d/bkgrnd2d.o \
915 contrib/bkgrnd2d/dialog.o \
916 contrib/bkgrnd2d/plugin.o \
918 $(INSTALLDIR)/heretic2/h2data.$(EXE): LIBS_EXTRA := $(LIBS_XML)
919 $(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
920 $(INSTALLDIR)/heretic2/h2data.$(EXE): \
921 tools/quake2/qdata_heretic2/common/bspfile.o \
922 tools/quake2/qdata_heretic2/common/cmdlib.o \
923 tools/quake2/qdata_heretic2/common/inout.o \
924 tools/quake2/qdata_heretic2/common/l3dslib.o \
925 tools/quake2/qdata_heretic2/common/lbmlib.o \
926 tools/quake2/qdata_heretic2/common/mathlib.o \
927 tools/quake2/qdata_heretic2/common/md4.o \
928 tools/quake2/qdata_heretic2/common/path_init.o \
929 tools/quake2/qdata_heretic2/common/qfiles.o \
930 tools/quake2/qdata_heretic2/common/scriplib.o \
931 tools/quake2/qdata_heretic2/common/threads.o \
932 tools/quake2/qdata_heretic2/common/token.o \
933 tools/quake2/qdata_heretic2/common/trilib.o \
934 tools/quake2/qdata_heretic2/qcommon/reference.o \
935 tools/quake2/qdata_heretic2/qcommon/resourcemanager.o \
936 tools/quake2/qdata_heretic2/qcommon/skeletons.o \
937 tools/quake2/qdata_heretic2/animcomp.o \
938 tools/quake2/qdata_heretic2/book.o \
939 tools/quake2/qdata_heretic2/fmodels.o \
940 tools/quake2/qdata_heretic2/images.o \
941 tools/quake2/qdata_heretic2/jointed.o \
942 tools/quake2/qdata_heretic2/models.o \
943 tools/quake2/qdata_heretic2/pics.o \
944 tools/quake2/qdata_heretic2/qdata.o \
945 tools/quake2/qdata_heretic2/qd_skeletons.o \
946 tools/quake2/qdata_heretic2/sprites.o \
947 tools/quake2/qdata_heretic2/svdcmp.o \
948 tools/quake2/qdata_heretic2/tables.o \
949 tools/quake2/qdata_heretic2/tmix.o \
950 tools/quake2/qdata_heretic2/video.o \
952 $(if $(findstring $(OS),Win32),icons/h2data.o,) \
955 install-data: binaries
956 $(MKDIR) $(INSTALLDIR)/games
957 $(FIND) $(INSTALLDIR_BASE)/ -name .svn -exec $(RM_R) {} \; -prune
958 [ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
960 for GAME in games/*; do \
961 if [ "$$GAME" = "games/*" ]; then \
962 $(ECHO) "Game packs not found, please run"; \
963 $(ECHO) " ./download-gamepacks.sh"; \
964 $(ECHO) "and then try again!"; \
966 CP="$(CP)" CP_R="$(CP_R)" $(SH) install-gamepack.sh "$$GAME" "$(INSTALLDIR)"; \
969 $(ECHO) $(RADIANT_MINOR_VERSION) > $(INSTALLDIR)/RADIANT_MINOR
970 $(ECHO) $(RADIANT_MAJOR_VERSION) > $(INSTALLDIR)/RADIANT_MAJOR
971 $(CP_R) setup/data/tools/* $(INSTALLDIR)/
972 $(FIND) $(INSTALLDIR_BASE)/ -name .svn -exec $(RM_R) {} \; -prune
976 install-dll: binaries
977 MKDIR="$(MKDIR)" CP="$(CP)" CAT="$(CAT)" GTKDIR="$(GTKDIR)" WHICHDLL="$(WHICHDLL)" INSTALLDIR="$(INSTALLDIR)" $(SH) install-dlls.sh
980 install-dll: binaries
981 EXE="$(EXE)" MACLIBDIR="$(MACLIBDIR)" CP="$(CP)" OTOOL="$(OTOOL)" INSTALLDIR="$(INSTALLDIR)" $(SH) install-dylibs.sh
983 install-dll: binaries
984 @$(ECHO) No DLL inclusion implemented for this target.
988 -include $(shell find . -name \*.d)