-
Notifications
You must be signed in to change notification settings - Fork 62
/
Makefile
1383 lines (1281 loc) · 49.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
MAKEFILE_CONF ?= Makefile.conf
-include $(MAKEFILE_CONF)
## CONFIGURATION SETTINGS
# user customizable stuf
# you may override this in Makefile.conf or the environment
BUILD ?= release
# or: release, or: debug, or: extradebug, or: extradebug_quicker, or: profile, or: native
OS ?= $(shell uname)
# or: Linux, Win32, Darwin
LDFLAGS ?=
CFLAGS ?=
CXXFLAGS ?=
CPPFLAGS ?=
LIBS ?=
RADIANT_ABOUTMSG ?= Custom build
# warning: this directory may NOT contain any files other than the ones written by this Makefile!
# NEVER SET THIS TO A SYSTEM WIDE "bin" DIRECTORY!
INSTALLDIR ?= install
CC ?= gcc
CXX ?= g++
RANLIB ?= ranlib
AR ?= ar
LDD ?= ldd # nothing on Win32
OTOOL ?= # only used on OS X
WINDRES ?= windres # only used on Win32
PKGCONFIG ?= pkg-config
PKG_CONFIG_PATH ?=
SH ?= $(SHELL)
ECHO ?= echo
ECHO_NOLF ?= echo -n
CAT ?= cat
MKDIR ?= mkdir -p
CP ?= cp
CP_R ?= $(CP) -r
LN ?= ln
LN_SNF ?= $(LN) -snf
RM ?= rm
RM_R ?= $(RM) -r
TEE_STDERR ?= | tee /dev/stderr
TR ?= tr
FIND ?= find
DIFF ?= diff
SED ?= sed
GIT ?= git
SVN ?= svn
WGET ?= wget
MV ?= mv
UNZIPPER ?= unzip
FD_TO_DEVNULL ?= >/dev/null
STDOUT_TO_DEVNULL ?= 1$(FD_TO_DEVNULL)
STDERR_TO_DEVNULL ?= 2$(FD_TO_DEVNULL)
STDERR_TO_STDOUT ?= 2>&1
TO_DEVNULL ?= $(STDOUT_TO_DEVNULL) $(STDERR_TO_STDOUT)
CPPFLAGS_GLIB ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --cflags $(STDERR_TO_DEVNULL))
LIBS_GLIB ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) glib-2.0 --libs-only-L --libs-only-l $(STDERR_TO_DEVNULL))
CPPFLAGS_GLIB := $(CPPFLAGS_GLIB)
LIBS_GLIB := $(LIBS_GLIB)
CPPFLAGS_XML ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --cflags $(STDERR_TO_DEVNULL))
LIBS_XML ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libxml-2.0 --libs-only-L --libs-only-l $(STDERR_TO_DEVNULL))
CPPFLAGS_XML := $(CPPFLAGS_XML)
LIBS_XML := $(LIBS_XML)
CPPFLAGS_PNG ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --cflags $(STDERR_TO_DEVNULL))
LIBS_PNG ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) libpng --libs-only-L --libs-only-l $(STDERR_TO_DEVNULL))
CPPFLAGS_PNG := $(CPPFLAGS_PNG)
LIBS_PNG := $(LIBS_PNG)
CPPFLAGS_QTCORE ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Core --cflags $(STDERR_TO_DEVNULL)) -DQT_NO_KEYWORDS
LIBS_QTCORE ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Core --libs-only-L --libs-only-l $(STDERR_TO_DEVNULL))
CPPFLAGS_QTCORE := $(CPPFLAGS_QTCORE)
LIBS_QTCORE := $(LIBS_QTCORE)
CPPFLAGS_QTGUI ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Gui --cflags $(STDERR_TO_DEVNULL)) -DQT_NO_KEYWORDS
LIBS_QTGUI ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Gui --libs-only-L --libs-only-l $(STDERR_TO_DEVNULL))
CPPFLAGS_QTGUI := $(CPPFLAGS_QTGUI)
LIBS_QTGUI := $(LIBS_QTGUI)
CPPFLAGS_QTWIDGETS ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Widgets --cflags $(STDERR_TO_DEVNULL)) -DQT_NO_KEYWORDS
LIBS_QTWIDGETS ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Widgets --libs-only-L --libs-only-l $(STDERR_TO_DEVNULL))
CPPFLAGS_QTWIDGETS := $(CPPFLAGS_QTWIDGETS)
LIBS_QTWIDGETS := $(LIBS_QTWIDGETS)
CPPFLAGS_GL ?=
LIBS_GL ?= -lGL # -lopengl32 on Win32
CPPFLAGS_DL ?=
LIBS_DL ?= -ldl # nothing on Win32
CPPFLAGS_ZLIB ?=
LIBS_ZLIB ?= -lz
CPPFLAGS_JPEG ?=
LIBS_JPEG ?= -ljpeg
DEPEND_ON_MAKEFILE ?= yes
# yes = download; all = even download undistributable gamepacks; no = disable; allinone = dl all-in-one compact fixed archive
DOWNLOAD_GAMEPACKS ?= allinone
INSTALL_DLLS ?= yes
# Support CHECK_DEPENDENCIES with DOWNLOAD_GAMEPACKS semantics
ifneq ($(CHECK_DEPENDENCIES),)
DEPENDENCIES_CHECK = $(patsubst yes,quiet,$(patsubst no,off,$(CHECK_DEPENDENCIES)))
else
DEPENDENCIES_CHECK ?= quiet
# or: off, verbose
endif
# these are used on Win32 only
GTKDIR ?= $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKGCONFIG) Qt5Widgets --variable=prefix $(STDERR_TO_DEVNULL))
WHICHDLL ?= which
DLLINSTALL ?= install-dlls.sh
# alias mingw32 OSes
ifeq ($(OS),MINGW32_NT-6.0)
OS = Win32
endif
ifeq ($(OS),Windows_NT)
OS = Win32
endif
CFLAGS_COMMON = -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -Wno-unused-function -fno-strict-aliasing
CPPFLAGS_COMMON =
LDFLAGS_COMMON =
LIBS_COMMON =
CXXFLAGS_COMMON = -std=c++20 -Wreorder -fno-exceptions -fno-rtti
ifeq ($(BUILD),debug)
ifeq ($(findstring -g,$(CFLAGS)),)
CFLAGS_COMMON += -g
# only add -g if no -g flag is in $(CFLAGS)
endif
ifeq ($(findstring -O,$(CFLAGS)),)
CFLAGS_COMMON += -O
# only add -O if no -O flag is in $(CFLAGS)
endif
CPPFLAGS_COMMON +=
LDFLAGS_COMMON +=
else
ifeq ($(BUILD),extradebug)
ifeq ($(findstring -g,$(CFLAGS)),)
CFLAGS_COMMON += -g3
# only add -g3 if no -g flag is in $(CFLAGS)
endif
CPPFLAGS_COMMON += -D_DEBUG
LDFLAGS_COMMON +=
else
ifeq ($(BUILD),extradebug_quicker)
ifeq ($(findstring -g,$(CFLAGS)),)
CFLAGS_COMMON += -g3
# only add -g3 if no -g flag is in $(CFLAGS)
endif
CPPFLAGS_COMMON += -D_DEBUG -D_DEBUG_QUICKER
LDFLAGS_COMMON +=
else
ifeq ($(BUILD),profile)
ifeq ($(findstring -g,$(CFLAGS)),)
CFLAGS_COMMON += -g
# only add -g if no -g flag is in $(CFLAGS)
endif
ifeq ($(findstring -O,$(CFLAGS)),)
CFLAGS_COMMON += -O
# only add -O if no -O flag is in $(CFLAGS)
endif
CFLAGS_COMMON += -pg
CPPFLAGS_COMMON +=
LDFLAGS_COMMON += -pg
else
ifeq ($(BUILD),release)
ifeq ($(findstring -O,$(CFLAGS)),)
CFLAGS_COMMON += -O3
# only add -O3 if no -O flag is in $(CFLAGS)
endif
CPPFLAGS_COMMON += -DNDEBUG
LDFLAGS_COMMON += -s
else
ifeq ($(BUILD),native)
ifeq ($(findstring -O,$(CFLAGS)),)
CFLAGS_COMMON += -O3
# only add -O3 if no -O flag is in $(CFLAGS)
endif
CFLAGS_COMMON += -march=native -mtune=native
CPPFLAGS_COMMON += -DNDEBUG
LDFLAGS_COMMON += -s
else
$(error Unsupported build type: $(BUILD))
endif
endif
endif
endif
endif
endif
INSTALLDIR_BASE := $(INSTALLDIR)
MAKE_EXE_SYMLINK = false
ifeq ($(OS),Linux)
CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
CFLAGS_COMMON += -fPIC
LDFLAGS_DLL = -fPIC -ldl
LIBS_COMMON = -lpthread
EXE ?= $(shell uname -m)
MAKE_EXE_SYMLINK = true
A = a
DLL = so
MWINDOWS =
else
ifeq ($(OS),Win32)
CPPFLAGS_COMMON += -DWIN32 -D_WIN32 -D_inline=inline
CFLAGS_COMMON += -mms-bitfields
LDFLAGS_DLL = -Wl,--add-stdcall-alias
LIBS_COMMON = -lws2_32 -luser32 -lgdi32 -lole32
EXE ?= exe
A = a
DLL = dll
MWINDOWS = -mwindows
# workaround: we have no "ldd" for Win32, so...
LDD =
# workaround: OpenGL library for Win32 is called opengl32.dll
LIBS_GL = -lopengl32
# workaround: no -ldl on Win32
LIBS_DL =
else
ifeq ($(OS),Darwin)
CPPFLAGS_COMMON += -DPOSIX -DXWINDOWS
CFLAGS_COMMON += -fPIC
CXXFLAGS_COMMON += -fno-exceptions -fno-rtti
MACLIBDIR ?= /opt/local/lib
CPPFLAGS_COMMON += -I$(MACLIBDIR)/../include -I/usr/X11R6/include
LDFLAGS_COMMON += -L$(MACLIBDIR) -L/usr/X11R6/lib
LDFLAGS_DLL += -dynamiclib -ldl
EXE ?= $(shell uname -m)
MAKE_EXE_SYMLINK = true
A = a
DLL = dylib
MWINDOWS =
# workaround for weird prints
ECHO_NOLF = /bin/echo -n
# workaround: http://developer.apple.com/qa/qa2007/qa1567.html
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
# workaround: we have no "ldd" for OS X, so...
LDD =
OTOOL = otool
else
$(error Unsupported build OS: $(OS))
endif
endif
endif
# MSYS2
UNAME_S := $(shell uname -s)
UNAME_O := $(shell uname -o)
ifneq "$(filter MINGW32_NT%,$(UNAME_S))" ""
OS = Win32
ifeq ($(UNAME_O),Msys)
DLLINSTALL = install-dlls-msys2-mingw.sh
endif
endif
ifneq "$(filter MINGW64_NT%,$(UNAME_S))" ""
OS = Win32
ifeq ($(UNAME_O),Msys)
DLLINSTALL = install-dlls-msys2-mingw.sh
endif
endif
# VERSION!
RADIANT_VERSION_NUMBER = 1.6.0
RADIANT_VERSION = $(RADIANT_VERSION_NUMBER)n
RADIANT_MAJOR_VERSION = 6
RADIANT_MINOR_VERSION = 0
Q3MAP_VERSION = 2.5.17n
# Executable extension
RADIANT_EXECUTABLE := $(EXE)
GIT_VERSION := $(shell $(GIT) rev-parse --short HEAD $(STDERR_TO_DEVNULL))
ifneq ($(GIT_VERSION),)
RADIANT_VERSION := $(RADIANT_VERSION)-git-$(GIT_VERSION)
Q3MAP_VERSION := $(Q3MAP_VERSION)-git-$(GIT_VERSION)
endif
CPPFLAGS_COMMON += -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)\""
.PHONY: all
all: \
dependencies-check \
binaries \
install-data \
install-dll \
.PHONY: dependencies-check
ifeq ($(findstring off,$(DEPENDENCIES_CHECK)),off)
dependencies-check:
@$(ECHO) dependencies checking disabled, good luck...
else
dependencies-check:
@$(ECHO)
@if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; exec 3>&2; else exec 3$(FD_TO_DEVNULL); fi; \
failed=0; \
checkbinary() \
{ \
$(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
$$2 --help >&3 $(STDERR_TO_STDOUT); \
if [ $$? != 127 ]; then \
$(ECHO) "found."; \
else \
$(ECHO) "not found, please install it or set PATH right!"; \
$(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
$(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
failed=1; \
fi; \
}; \
$(ECHO) checking that the build tools exist; \
checkbinary "bash (or another shell)" "$(SH)"; \
checkbinary coreutils "$(ECHO)"; \
checkbinary coreutils "$(ECHO_NOLF)"; \
checkbinary coreutils "$(CAT)"; \
checkbinary coreutils "$(MKDIR)"; \
checkbinary coreutils "$(CP)"; \
checkbinary coreutils "$(CP_R)"; \
checkbinary coreutils "$(RM)"; \
checkbinary coreutils "$(RM_R)"; \
checkbinary coreutils "$(MV)"; \
checkbinary coreutils "$(ECHO) test $(TEE_STDERR)"; \
checkbinary sed "$(SED)"; \
checkbinary findutils "$(FIND)"; \
checkbinary diff "$(DIFF)"; \
checkbinary gcc "$(CC)"; \
checkbinary g++ "$(CXX)"; \
checkbinary binutils "$(RANLIB)"; \
checkbinary binutils "$(AR)"; \
checkbinary pkg-config "$(PKGCONFIG)"; \
checkbinary unzip "$(UNZIPPER)"; \
checkbinary git-core "$(GIT)"; \
[ "$(DOWNLOAD_GAMEPACKS)" = "yes" ] || [ "$(DOWNLOAD_GAMEPACKS)" = "all" ] && checkbinary subversion "$(SVN)"; \
checkbinary wget "$(WGET)"; \
[ "$(OS)" = "Win32" ] && checkbinary mingw32 "$(WINDRES)"; \
[ -n "$(LDD)" ] && checkbinary libc6 "$(LDD)"; \
[ -n "$(OTOOL)" ] && checkbinary xcode "$(OTOOL)"; \
[ "$$failed" = "0" ] && $(ECHO) All required tools have been found!
@$(ECHO)
@if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; exec 3>&2; else exec 3$(FD_TO_DEVNULL); fi; \
failed=0; \
checkheader() \
{ \
$(ECHO_NOLF) "Checking for $$2 ($$1)... "; \
if \
$(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); \
then \
if \
$(CXX) conftest.o $(LDFLAGS) $(LDFLAGS_COMMON) $$5 $(LIBS_COMMON) $(LIBS) -o conftest >&3 $(STDERR_TO_STDOUT); \
then \
$(RM) conftest conftest.o conftest.d; \
$(ECHO) "found and links."; \
else \
$(RM) conftest.o conftest.d; \
$(ECHO) "found but does not link, please install it or set PKG_CONFIG_PATH right!"; \
$(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
$(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
failed=1; \
fi; \
else \
$(RM) conftest conftest.o conftest.d; \
$(ECHO) "not found, please install it or set PKG_CONFIG_PATH right!"; \
$(ECHO) "To see the failed commands, set DEPENDENCIES_CHECK=verbose"; \
$(ECHO) "To proceed anyway, set DEPENDENCIES_CHECK=off"; \
failed=1; \
fi; \
}; \
$(ECHO) checking that the dependencies exist; \
checkheader libjpeg8-dev jpeglib.h jpeg_set_defaults "$(CPPFLAGS_JPEG)" "$(LIBS_JPEG)"; \
checkheader libglib2.0-dev glib.h g_path_is_absolute "$(CPPFLAGS_GLIB)" "$(LIBS_GLIB)"; \
checkheader libxml2-dev libxml/xpath.h xmlXPathInit "$(CPPFLAGS_XML)" "$(LIBS_XML)"; \
checkheader libpng12-dev png.h png_create_read_struct "$(CPPFLAGS_PNG)" "$(LIBS_PNG)"; \
checkheader "mesa-common-dev (or another OpenGL library)" GL/gl.h glClear "$(CPPFLAGS_GL)" "$(LIBS_GL)"; \
checkheader Qt5Core QCoreApplication QCoreApplication::exec "$(CPPFLAGS_QTCORE)" "$(LIBS_QTCORE)"; \
checkheader Qt5Gui QGuiApplication QGuiApplication::exec "$(CPPFLAGS_QTGUI)" "$(LIBS_QTGUI)"; \
checkheader Qt5Widgets QApplication QApplication::exec "$(CPPFLAGS_QTWIDGETS)" "$(LIBS_QTWIDGETS)"; \
[ "$(OS)" != "Win32" ] && checkheader libc6-dev dlfcn.h dlopen "$(CPPFLAGS_DL)" "$(LIBS_DL)"; \
checkheader zlib1g-dev zlib.h zlibVersion "$(CPPFLAGS_ZLIB)" "$(LIBS_ZLIB)"; \
[ "$$failed" = "0" ] && $(ECHO) All required libraries have been found!
@$(ECHO)
endif
.PHONY: binaries
binaries: \
binaries-tools \
binaries-radiant \
.PHONY: binaries-radiant-all
binaries-radiant: \
binaries-radiant-modules \
binaries-radiant-plugins \
binaries-radiant-core \
.PHONY: binaries-radiant-modules
binaries-radiant-modules: \
$(INSTALLDIR)/modules/archivepak.$(DLL) \
$(INSTALLDIR)/modules/archivewad.$(DLL) \
$(INSTALLDIR)/modules/archivezip.$(DLL) \
$(INSTALLDIR)/modules/entity.$(DLL) \
$(INSTALLDIR)/modules/image.$(DLL) \
$(INSTALLDIR)/modules/imagehl.$(DLL) \
$(INSTALLDIR)/modules/imagepng.$(DLL) \
$(INSTALLDIR)/modules/imageq2.$(DLL) \
$(INSTALLDIR)/modules/mapq3.$(DLL) \
$(INSTALLDIR)/modules/mapxml.$(DLL) \
$(INSTALLDIR)/modules/assmodel.$(DLL) \
$(INSTALLDIR)/modules/shaders.$(DLL) \
$(INSTALLDIR)/modules/vfspk3.$(DLL) \
.PHONY: binaries-radiant-plugins
binaries-radiant-plugins: \
$(INSTALLDIR)/plugins/bobtoolz.$(DLL) \
$(INSTALLDIR)/plugins/brushexport.$(DLL) \
$(INSTALLDIR)/plugins/prtview.$(DLL) \
$(INSTALLDIR)/plugins/shaderplug.$(DLL) \
$(INSTALLDIR)/plugins/sunplug.$(DLL) \
$(INSTALLDIR)/plugins/ufoaiplug.$(DLL) \
$(INSTALLDIR)/plugins/meshtex.$(DLL) \
.PHONY: binaries-radiant
binaries-radiant-core: \
$(INSTALLDIR)/radiant.$(EXE) \
$(INSTALLDIR)/radiant \
.PHONY: binaries-tools
binaries-tools: \
binaries-tools-quake2 \
binaries-tools-quake3 \
binaries-mbspc \
.PHONY: binaries-tools-quake2
binaries-tools-quake2: \
binaries-q2map \
binaries-qdata3 \
binaries-h2data \
.PHONY: binaries-q2map
binaries-q2map: \
$(INSTALLDIR)/q2map.$(EXE) \
$(INSTALLDIR)/q2map \
.PHONY: binaries-qdata3
binaries-qdata3: \
$(INSTALLDIR)/qdata3.$(EXE) \
$(INSTALLDIR)/qdata3 \
.PHONY: binaries-h2data
binaries-h2data: \
$(INSTALLDIR)/h2data.$(EXE) \
$(INSTALLDIR)/h2data \
.PHONY: binaries-tools-quake3
binaries-tools-quake3: \
binaries-q3map2 \
.PHONY: binaries-q3map2
binaries-q3map2: \
$(INSTALLDIR)/q3map2.$(EXE) \
$(INSTALLDIR)/q3map2 \
.PHONY: binaries-mbspc
binaries-mbspc: \
$(INSTALLDIR)/mbspc.$(EXE) \
$(INSTALLDIR)/mbspc \
.PHONY: clean
clean:
$(FIND) . \( -name \*.o -o -name \*.d -o -name \*.$(DLL) -o -name \*.$(A) -o -name \*.$(EXE) \) -exec $(RM) {} \;
$(RM_R) $(INSTALLDIR_BASE)/
$(RM) icons/*.rc
%.$(EXE):
file=$@; $(MKDIR) $${file%/*}
$(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -o $@
[ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
$(INSTALLDIR)/%: $(INSTALLDIR)/%.$(EXE)
if $(MAKE_EXE_SYMLINK); then o=$<; $(LN_SNF) $${o##*/} $@; else true; fi
%.$(A):
$(AR) rc $@ $^
$(RANLIB) $@
%.$(DLL):
file=$@; $(MKDIR) $${file%/*}
$(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LDFLAGS_DLL) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -shared -o $@
[ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
%.rc: %.ico
$(ECHO) '1 ICON "$<"' > $@
ifeq ($(OS),Win32)
%.o: %.rc
$(WINDRES) $< $@
endif
%.o: %.cpp $(if $(findstring yes,$(DEPEND_ON_MAKEFILE)),$(wildcard Makefile*),) | dependencies-check
$(CXX) $< $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@
%.o: %.c $(if $(findstring yes,$(DEPEND_ON_MAKEFILE)),$(wildcard Makefile*),) | dependencies-check
$(CC) $< $(CFLAGS) $(CFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(CPPFLAGS_COMMON) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@
ifeq ($(OS),Win32)
ifeq ($(shell ARCH),i686)
$(INSTALLDIR)/q3map2.$(EXE): LDFLAGS_EXTRA := -Wl,--large-address-aware,--stack,4194304
else
$(INSTALLDIR)/q3map2.$(EXE): LDFLAGS_EXTRA := -Wl,--stack,4194304
endif
endif
ifneq ($(OS),Win32)
$(INSTALLDIR)/q3map2.$(EXE): LDFLAGS_EXTRA += -Wl,-rpath '-Wl,$$ORIGIN'
endif
$(INSTALLDIR)/q3map2.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_PNG) $(LIBS_JPEG) $(LIBS_ZLIB) -lassimp_ -L$(INSTALLDIR)
$(INSTALLDIR)/q3map2.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_PNG) $(CPPFLAGS_JPEG) -Itools/quake3/common -Ilibs -Iinclude -Ilibs/assimp/include
$(INSTALLDIR)/q3map2.$(EXE): \
tools/quake3/common/cmdlib.o \
tools/quake3/common/qimagelib.o \
tools/quake3/common/inout.o \
tools/quake3/common/jpeg.o \
tools/quake3/common/md4.o \
tools/quake3/common/mutex.o \
tools/quake3/common/polylib.o \
tools/quake3/common/scriplib.o \
tools/quake3/common/threads.o \
tools/quake3/common/unzip.o \
tools/quake3/common/vfs.o \
tools/quake3/common/miniz.o \
tools/quake3/q3map2/autopk3.o \
tools/quake3/q3map2/brush.o \
tools/quake3/q3map2/bspfile_abstract.o \
tools/quake3/q3map2/bspfile_ibsp.o \
tools/quake3/q3map2/bspfile_rbsp.o \
tools/quake3/q3map2/bsp.o \
tools/quake3/q3map2/convert_ase.o \
tools/quake3/q3map2/convert_bsp.o \
tools/quake3/q3map2/convert_json.o \
tools/quake3/q3map2/convert_map.o \
tools/quake3/q3map2/convert_obj.o \
tools/quake3/q3map2/decals.o \
tools/quake3/q3map2/exportents.o \
tools/quake3/q3map2/facebsp.o \
tools/quake3/q3map2/fog.o \
tools/quake3/q3map2/games.o \
tools/quake3/q3map2/help.o \
tools/quake3/q3map2/image.o \
tools/quake3/q3map2/leakfile.o \
tools/quake3/q3map2/light_bounce.o \
tools/quake3/q3map2/lightmaps_ydnar.o \
tools/quake3/q3map2/light.o \
tools/quake3/q3map2/light_trace.o \
tools/quake3/q3map2/light_ydnar.o \
tools/quake3/q3map2/main.o \
tools/quake3/q3map2/map.o \
tools/quake3/q3map2/minimap.o \
tools/quake3/q3map2/mesh.o \
tools/quake3/q3map2/model.o \
tools/quake3/q3map2/patch.o \
tools/quake3/q3map2/path_init.o \
tools/quake3/q3map2/portals.o \
tools/quake3/q3map2/prtfile.o \
tools/quake3/q3map2/shaders.o \
tools/quake3/q3map2/surface_extra.o \
tools/quake3/q3map2/surface_foliage.o \
tools/quake3/q3map2/surface_fur.o \
tools/quake3/q3map2/surface_meta.o \
tools/quake3/q3map2/surface.o \
tools/quake3/q3map2/tjunction.o \
tools/quake3/q3map2/tree.o \
tools/quake3/q3map2/visflow.o \
tools/quake3/q3map2/vis.o \
tools/quake3/q3map2/writebsp.o \
libddslib.$(A) \
libetclib.$(A) \
libfilematch.$(A) \
libl_net.$(A) \
$(if $(findstring Win32,$(OS)),icons/q3map2.o,) \
| $(INSTALLDIR)/libassimp_.$(DLL) \
libmathlib.$(A): CPPFLAGS_EXTRA := -Ilibs
libmathlib.$(A): \
libs/mathlib/bbox.o \
libs/mathlib/line.o \
libs/mathlib/m4x4.o \
libs/mathlib/mathlib.o \
libs/mathlib/ray.o \
libl_net.$(A): CPPFLAGS_EXTRA := -Ilibs
libl_net.$(A): \
libs/l_net/l_net.o \
libs/l_net/l_net_wins.o \
libpicomodel.$(A): CPPFLAGS_EXTRA := -Ilibs
libpicomodel.$(A): \
libs/picomodel/lwo/clip.o \
libs/picomodel/lwo/envelope.o \
libs/picomodel/lwo/list.o \
libs/picomodel/lwo/lwio.o \
libs/picomodel/lwo/lwo2.o \
libs/picomodel/lwo/lwob.o \
libs/picomodel/lwo/pntspols.o \
libs/picomodel/lwo/surface.o \
libs/picomodel/lwo/vecmath.o \
libs/picomodel/lwo/vmap.o \
libs/picomodel/picointernal.o \
libs/picomodel/picomodel.o \
libs/picomodel/picomodules.o \
libs/picomodel/pm_3ds.o \
libs/picomodel/pm_ase.o \
libs/picomodel/pm_fm.o \
libs/picomodel/pm_lwo.o \
libs/picomodel/pm_md2.o \
libs/picomodel/pm_md3.o \
libs/picomodel/pm_mdc.o \
libs/picomodel/pm_ms3d.o \
libs/picomodel/pm_obj.o \
libs/picomodel/pm_terrain.o \
$(INSTALLDIR)/libassimp_.$(DLL): LIBS_EXTRA := $(LIBS_ZLIB)
$(INSTALLDIR)/libassimp_.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_ZLIB) \
-Ilibs/assimp/include -Ilibs/assimp/code -Ilibs/assimp/contrib/pugixml/src -Ilibs/assimp/contrib/unzip \
-Ilibs/assimp -Ilibs/assimp/contrib/openddlparser/include -Ilibs/assimp/contrib/rapidjson/include -Ilibs/assimp/contrib \
-DASSIMP_BUILD_DLL_EXPORT -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_EXPORT -DASSIMP_BUILD_NO_IFC_IMPORTER \
-DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 -DMINIZ_USE_UNALIGNED_LOADS_AND_STORES=0 -DOPENDDLPARSER_BUILD \
-DRAPIDJSON_HAS_STDSTRING=1 -DRAPIDJSON_NOMEMBERITERATORCLASS -DWIN32_LEAN_AND_MEAN -Dassimp_EXPORTS \
-fvisibility=hidden -Wno-long-long -fexceptions -frtti -Wno-cast-qual
$(INSTALLDIR)/libassimp_.$(DLL): \
libs/assimp/code/Common/Assimp.o \
libs/assimp/code/CApi/CInterfaceIOWrapper.o \
libs/assimp/code/Common/BaseImporter.o \
libs/assimp/code/Common/BaseProcess.o \
libs/assimp/code/Common/PostStepRegistry.o \
libs/assimp/code/Common/ImporterRegistry.o \
libs/assimp/code/Common/DefaultIOStream.o \
libs/assimp/code/Common/DefaultIOSystem.o \
libs/assimp/code/Common/ZipArchiveIOSystem.o \
libs/assimp/code/Common/Importer.o \
libs/assimp/code/Common/SGSpatialSort.o \
libs/assimp/code/Common/VertexTriangleAdjacency.o \
libs/assimp/code/Common/SpatialSort.o \
libs/assimp/code/Common/SceneCombiner.o \
libs/assimp/code/Common/ScenePreprocessor.o \
libs/assimp/code/Common/SkeletonMeshBuilder.o \
libs/assimp/code/Common/StandardShapes.o \
libs/assimp/code/Common/TargetAnimation.o \
libs/assimp/code/Common/RemoveComments.o \
libs/assimp/code/Common/Subdivision.o \
libs/assimp/code/Common/scene.o \
libs/assimp/code/Common/Bitmap.o \
libs/assimp/code/Common/Version.o \
libs/assimp/code/Common/CreateAnimMesh.o \
libs/assimp/code/Common/simd.o \
libs/assimp/code/Common/material.o \
libs/assimp/code/Common/AssertHandler.o \
libs/assimp/code/Common/Exceptional.o \
libs/assimp/code/Common/DefaultLogger.o \
libs/assimp/code/PostProcessing/CalcTangentsProcess.o \
libs/assimp/code/PostProcessing/ComputeUVMappingProcess.o \
libs/assimp/code/PostProcessing/ConvertToLHProcess.o \
libs/assimp/code/PostProcessing/EmbedTexturesProcess.o \
libs/assimp/code/PostProcessing/FindDegenerates.o \
libs/assimp/code/PostProcessing/FindInstancesProcess.o \
libs/assimp/code/PostProcessing/FindInvalidDataProcess.o \
libs/assimp/code/PostProcessing/FixNormalsStep.o \
libs/assimp/code/PostProcessing/DropFaceNormalsProcess.o \
libs/assimp/code/PostProcessing/GenFaceNormalsProcess.o \
libs/assimp/code/PostProcessing/GenVertexNormalsProcess.o \
libs/assimp/code/PostProcessing/PretransformVertices.o \
libs/assimp/code/PostProcessing/ImproveCacheLocality.o \
libs/assimp/code/PostProcessing/JoinVerticesProcess.o \
libs/assimp/code/PostProcessing/LimitBoneWeightsProcess.o \
libs/assimp/code/PostProcessing/RemoveRedundantMaterials.o \
libs/assimp/code/PostProcessing/RemoveVCProcess.o \
libs/assimp/code/PostProcessing/SortByPTypeProcess.o \
libs/assimp/code/PostProcessing/SplitLargeMeshes.o \
libs/assimp/code/PostProcessing/TextureTransform.o \
libs/assimp/code/PostProcessing/TriangulateProcess.o \
libs/assimp/code/PostProcessing/ValidateDataStructure.o \
libs/assimp/code/PostProcessing/OptimizeGraph.o \
libs/assimp/code/PostProcessing/OptimizeMeshes.o \
libs/assimp/code/PostProcessing/DeboneProcess.o \
libs/assimp/code/PostProcessing/ProcessHelper.o \
libs/assimp/code/PostProcessing/MakeVerboseFormat.o \
libs/assimp/code/PostProcessing/ScaleProcess.o \
libs/assimp/code/PostProcessing/ArmaturePopulate.o \
libs/assimp/code/PostProcessing/GenBoundingBoxesProcess.o \
libs/assimp/code/PostProcessing/SplitByBoneCountProcess.o \
libs/assimp/code/Material/MaterialSystem.o \
libs/assimp/code/AssetLib/STEPParser/STEPFileReader.o \
libs/assimp/code/AssetLib/STEPParser/STEPFileEncoding.o \
libs/assimp/code/AssetLib/AMF/AMFImporter.o \
libs/assimp/code/AssetLib/AMF/AMFImporter_Geometry.o \
libs/assimp/code/AssetLib/AMF/AMFImporter_Material.o \
libs/assimp/code/AssetLib/AMF/AMFImporter_Postprocess.o \
libs/assimp/code/AssetLib/3DS/3DSConverter.o \
libs/assimp/code/AssetLib/3DS/3DSLoader.o \
libs/assimp/code/AssetLib/AC/ACLoader.o \
libs/assimp/code/AssetLib/ASE/ASELoader.o \
libs/assimp/code/AssetLib/ASE/ASEParser.o \
libs/assimp/code/AssetLib/Assbin/AssbinLoader.o \
libs/assimp/code/AssetLib/B3D/B3DImporter.o \
libs/assimp/code/AssetLib/BVH/BVHLoader.o \
libs/assimp/code/AssetLib/Collada/ColladaHelper.o \
libs/assimp/code/AssetLib/Collada/ColladaLoader.o \
libs/assimp/code/AssetLib/Collada/ColladaParser.o \
libs/assimp/code/AssetLib/DXF/DXFLoader.o \
libs/assimp/code/AssetLib/CSM/CSMLoader.o \
libs/assimp/code/AssetLib/HMP/HMPLoader.o \
libs/assimp/code/AssetLib/Irr/IRRMeshLoader.o \
libs/assimp/code/AssetLib/Irr/IRRShared.o \
libs/assimp/code/AssetLib/Irr/IRRLoader.o \
libs/assimp/code/AssetLib/LWO/LWOAnimation.o \
libs/assimp/code/AssetLib/LWO/LWOBLoader.o \
libs/assimp/code/AssetLib/LWO/LWOLoader.o \
libs/assimp/code/AssetLib/LWO/LWOMaterial.o \
libs/assimp/code/AssetLib/LWS/LWSLoader.o \
libs/assimp/code/AssetLib/M3D/M3DImporter.o \
libs/assimp/code/AssetLib/M3D/M3DWrapper.o \
libs/assimp/code/AssetLib/MD2/MD2Loader.o \
libs/assimp/code/AssetLib/MD3/MD3Loader.o \
libs/assimp/code/AssetLib/MD5/MD5Loader.o \
libs/assimp/code/AssetLib/MD5/MD5Parser.o \
libs/assimp/code/AssetLib/MDC/MDCLoader.o \
libs/assimp/code/AssetLib/MDL/MDLLoader.o \
libs/assimp/code/AssetLib/MDL/MDLMaterialLoader.o \
libs/assimp/code/AssetLib/MDL/HalfLife/HL1MDLLoader.o \
libs/assimp/code/AssetLib/MDL/HalfLife/UniqueNameGenerator.o \
libs/assimp/code/AssetLib/NFF/NFFLoader.o \
libs/assimp/code/AssetLib/NDO/NDOLoader.o \
libs/assimp/code/AssetLib/OFF/OFFLoader.o \
libs/assimp/code/AssetLib/Obj/ObjFileImporter.o \
libs/assimp/code/AssetLib/Obj/ObjFileMtlImporter.o \
libs/assimp/code/AssetLib/Obj/ObjFileParser.o \
libs/assimp/code/AssetLib/Ogre/OgreImporter.o \
libs/assimp/code/AssetLib/Ogre/OgreStructs.o \
libs/assimp/code/AssetLib/Ogre/OgreBinarySerializer.o \
libs/assimp/code/AssetLib/Ogre/OgreXmlSerializer.o \
libs/assimp/code/AssetLib/Ogre/OgreMaterial.o \
libs/assimp/code/AssetLib/OpenGEX/OpenGEXImporter.o \
libs/assimp/code/AssetLib/Ply/PlyLoader.o \
libs/assimp/code/AssetLib/Ply/PlyParser.o \
libs/assimp/code/AssetLib/MS3D/MS3DLoader.o \
libs/assimp/code/AssetLib/COB/COBLoader.o \
libs/assimp/code/AssetLib/Blender/BlenderLoader.o \
libs/assimp/code/AssetLib/Blender/BlenderDNA.o \
libs/assimp/code/AssetLib/Blender/BlenderScene.o \
libs/assimp/code/AssetLib/Blender/BlenderModifier.o \
libs/assimp/code/AssetLib/Blender/BlenderBMesh.o \
libs/assimp/code/AssetLib/Blender/BlenderTessellator.o \
libs/assimp/code/AssetLib/Blender/BlenderCustomData.o \
libs/assimp/code/AssetLib/XGL/XGLLoader.o \
libs/assimp/code/AssetLib/FBX/FBXImporter.o \
libs/assimp/code/AssetLib/FBX/FBXParser.o \
libs/assimp/code/AssetLib/FBX/FBXTokenizer.o \
libs/assimp/code/AssetLib/FBX/FBXConverter.o \
libs/assimp/code/AssetLib/FBX/FBXUtil.o \
libs/assimp/code/AssetLib/FBX/FBXDocument.o \
libs/assimp/code/AssetLib/FBX/FBXProperties.o \
libs/assimp/code/AssetLib/FBX/FBXMeshGeometry.o \
libs/assimp/code/AssetLib/FBX/FBXMaterial.o \
libs/assimp/code/AssetLib/FBX/FBXModel.o \
libs/assimp/code/AssetLib/FBX/FBXAnimation.o \
libs/assimp/code/AssetLib/FBX/FBXNodeAttribute.o \
libs/assimp/code/AssetLib/FBX/FBXDeformer.o \
libs/assimp/code/AssetLib/FBX/FBXBinaryTokenizer.o \
libs/assimp/code/AssetLib/FBX/FBXDocumentUtil.o \
libs/assimp/code/AssetLib/IQM/IQMImporter.o \
libs/assimp/code/AssetLib/Q3D/Q3DLoader.o \
libs/assimp/code/AssetLib/Q3BSP/Q3BSPFileParser.o \
libs/assimp/code/AssetLib/Q3BSP/Q3BSPFileImporter.o \
libs/assimp/code/AssetLib/Raw/RawLoader.o \
libs/assimp/code/AssetLib/SIB/SIBImporter.o \
libs/assimp/code/AssetLib/SMD/SMDLoader.o \
libs/assimp/code/AssetLib/STL/STLLoader.o \
libs/assimp/code/AssetLib/Terragen/TerragenLoader.o \
libs/assimp/code/AssetLib/Unreal/UnrealLoader.o \
libs/assimp/code/AssetLib/X/XFileImporter.o \
libs/assimp/code/AssetLib/X/XFileParser.o \
libs/assimp/code/AssetLib/X3D/X3DImporter.o \
libs/assimp/code/AssetLib/X3D/X3DGeoHelper.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Geometry2D.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Geometry3D.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Group.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Light.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Metadata.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Networking.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Postprocess.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Rendering.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Shape.o \
libs/assimp/code/AssetLib/X3D/X3DImporter_Texturing.o \
libs/assimp/code/AssetLib/X3D/X3DXmlHelper.o \
libs/assimp/code/AssetLib/glTF/glTFCommon.o \
libs/assimp/code/AssetLib/glTF/glTFImporter.o \
libs/assimp/code/AssetLib/glTF2/glTF2Importer.o \
libs/assimp/code/AssetLib/3MF/D3MFImporter.o \
libs/assimp/code/AssetLib/3MF/D3MFOpcPackage.o \
libs/assimp/code/AssetLib/3MF/XmlSerializer.o \
libs/assimp/code/AssetLib/MMD/MMDImporter.o \
libs/assimp/code/AssetLib/MMD/MMDPmxParser.o \
libs/assimp/contrib/unzip/crypt.o \
libs/assimp/contrib/unzip/ioapi.o \
libs/assimp/contrib/unzip/unzip.o \
libs/assimp/contrib/poly2tri/poly2tri/common/shapes.cc \
libs/assimp/contrib/poly2tri/poly2tri/sweep/advancing_front.cc \
libs/assimp/contrib/poly2tri/poly2tri/sweep/cdt.cc \
libs/assimp/contrib/poly2tri/poly2tri/sweep/sweep.cc \
libs/assimp/contrib/poly2tri/poly2tri/sweep/sweep_context.cc \
libs/assimp/contrib/clipper/clipper.o \
libs/assimp/contrib/openddlparser/code/OpenDDLParser.o \
libs/assimp/contrib/openddlparser/code/DDLNode.o \
libs/assimp/contrib/openddlparser/code/OpenDDLCommon.o \
libs/assimp/contrib/openddlparser/code/OpenDDLExport.o \
libs/assimp/contrib/openddlparser/code/Value.o \
libs/assimp/contrib/openddlparser/code/OpenDDLStream.o \
libs/assimp/contrib/Open3DGC/o3dgcArithmeticCodec.o \
libs/assimp/contrib/Open3DGC/o3dgcDynamicVectorDecoder.o \
libs/assimp/contrib/Open3DGC/o3dgcDynamicVectorEncoder.o \
libs/assimp/contrib/Open3DGC/o3dgcTools.o \
libs/assimp/contrib/Open3DGC/o3dgcTriangleFans.o \
libs/assimp/contrib/zip/src/zip.o \
libddslib.$(A): CPPFLAGS_EXTRA := -Ilibs
libddslib.$(A): \
libs/ddslib/ddslib.o \
libetclib.$(A): CPPFLAGS_EXTRA := -Ilibs
libetclib.$(A): \
libs/etclib.o \
$(INSTALLDIR)/radiant.$(EXE): LDFLAGS_EXTRA := $(MWINDOWS)
$(INSTALLDIR)/radiant.$(EXE): LIBS_EXTRA := $(LIBS_GL) $(LIBS_DL) $(LIBS_XML) $(LIBS_GLIB) $(LIBS_QTWIDGETS) $(LIBS_ZLIB)
$(INSTALLDIR)/radiant.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_GL) $(CPPFLAGS_DL) $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_QTWIDGETS) -Ilibs -Iinclude
$(INSTALLDIR)/radiant.$(EXE): \
radiant/autosave.o \
radiant/brushmanip.o \
radiant/brushmodule.o \
radiant/brushnode.o \
radiant/brush.o \
radiant/brush_primit.o \
radiant/brushtokens.o \
radiant/brushxml.o \
radiant/build.o \
radiant/camwindow.o \
radiant/clippertool.o \
radiant/colors.o \
radiant/commands.o \
radiant/console.o \
radiant/csg.o \
radiant/dialog.o \
radiant/eclass_def.o \
radiant/eclass_doom3.o \
radiant/eclass_fgd.o \
radiant/eclass.o \
radiant/eclass_xml.o \
radiant/entityinspector.o \
radiant/entitylist.o \
radiant/entity.o \
radiant/environment.o \
radiant/error.o \
radiant/feedback.o \
radiant/filetypes.o \
radiant/filterbar.o \
radiant/filters.o \
radiant/findtexturedialog.o \
radiant/glwidget.o \
radiant/grid.o \
radiant/groupdialog.o \
radiant/gtkdlgs.o \
radiant/gtkmisc.o \
radiant/help.o \
radiant/image.o \
radiant/mainframe.o \
radiant/main.o \
radiant/map.o \
radiant/modelwindow.o \
radiant/mru.o \
radiant/nullmodel.o \
radiant/parse.o \
radiant/patchdialog.o \
radiant/patchmanip.o \
radiant/patchmodule.o \
radiant/patch.o \
radiant/pluginapi.o \
radiant/pluginmanager.o \
radiant/pluginmenu.o \
radiant/plugin.o \
radiant/plugintoolbar.o \
radiant/points.o \
radiant/preferencedictionary.o \
radiant/preferences.o \
radiant/qe3.o \
radiant/qgl.o \
radiant/referencecache.o \
radiant/renderer.o \
radiant/renderstate.o \
radiant/scenegraph.o \
radiant/selection.o \
radiant/select.o \
radiant/server.o \
radiant/sockets.o \
radiant/stacktrace.o \
radiant/surfacedialog.o \
radiant/texmanip.o \
radiant/textures.o \
radiant/texwindow.o \
radiant/theme.o \
radiant/tools.o \
radiant/treemodel.o \
radiant/undo.o \
radiant/url.o \
radiant/view.o \
radiant/watchbsp.o \
radiant/winding.o \
radiant/windowobservers.o \
radiant/xmlstuff.o \
radiant/xywindow.o \
libcommandlib.$(A) \
libgtkutil.$(A) \
libl_net.$(A) \
libquickhull.$(A) \
libxmllib.$(A) \
$(if $(findstring Win32,$(OS)),icons/radiant.o,) \
libfilematch.$(A): CPPFLAGS_EXTRA := -Ilibs
libfilematch.$(A): \
libs/filematch.o \
libcommandlib.$(A): CPPFLAGS_EXTRA := -Ilibs
libcommandlib.$(A): \
libs/commandlib.o \
libgtkutil.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_QTWIDGETS) -Ilibs -Iinclude
libgtkutil.$(A): \
libs/gtkutil/accelerator.o \
libs/gtkutil/clipboard.o \
libs/gtkutil/dialog.o \
libs/gtkutil/entry.o \
libs/gtkutil/filechooser.o \
libs/gtkutil/glfont.o \
libs/gtkutil/glwidget.o \
libs/gtkutil/guisettings.o \
libs/gtkutil/idledraw.o \
libs/gtkutil/image.o \
libs/gtkutil/menu.o \
libs/gtkutil/messagebox.o \
libs/gtkutil/nonmodal.o \
libs/gtkutil/toolbar.o \
libs/gtkutil/widget.o \
libs/gtkutil/xorrectangle.o \
libxmllib.$(A): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Ilibs -Iinclude
libxmllib.$(A): \
libs/xml/ixml.o \
libs/xml/xmlelement.o \
libs/xml/xmlparser.o \
libs/xml/xmltextags.o \
libs/xml/xmlwriter.o \
libquickhull.$(A): CPPFLAGS_EXTRA := -Ilibs
libquickhull.$(A): \
libs/quickhull/QuickHull.o \
$(INSTALLDIR)/modules/archivezip.$(DLL): LIBS_EXTRA := $(LIBS_ZLIB)
$(INSTALLDIR)/modules/archivezip.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_ZLIB) -Ilibs -Iinclude
$(INSTALLDIR)/modules/archivezip.$(DLL): \
plugins/archivezip/archive.o \
plugins/archivezip/pkzip.o \
plugins/archivezip/plugin.o \
plugins/archivezip/zlibstream.o \
$(INSTALLDIR)/modules/archivewad.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
$(INSTALLDIR)/modules/archivewad.$(DLL): \
plugins/archivewad/archive.o \
plugins/archivewad/plugin.o \
plugins/archivewad/wad.o \
$(INSTALLDIR)/modules/archivepak.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude
$(INSTALLDIR)/modules/archivepak.$(DLL): \
plugins/archivepak/archive.o \
plugins/archivepak/pak.o \
plugins/archivepak/plugin.o \
$(INSTALLDIR)/modules/entity.$(DLL): CPPFLAGS_EXTRA := -Ilibs -Iinclude $(CPPFLAGS_QTGUI)
$(INSTALLDIR)/modules/entity.$(DLL): \
plugins/entity/angle.o \
plugins/entity/angles.o \
plugins/entity/colour.o \