forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
1619 lines (1470 loc) · 57.4 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
# Top level Makefile for ROOT System
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
##### Check version of GNU make #####
MAKE_VERSION_MAJOR := $(word 1,$(subst ., ,$(MAKE_VERSION)))
MAKE_VERSION_MINOR := $(shell echo $(word 2,$(subst ., ,$(MAKE_VERSION))) | \
sed 's/\([0-9][0-9]*\).*/\1/')
MAKE_VERSION_MAJOR ?= 0
MAKE_VERSION_MINOR ?= 0
ORDER_ := $(shell test $(MAKE_VERSION_MAJOR) -gt 3 || \
test $(MAKE_VERSION_MAJOR) -eq 3 && \
test $(MAKE_VERSION_MINOR) -ge 80 && echo '|')
##### Include path/location macros (result of ./configure) #####
include config/Makefile.config
##### Prevent propagation of user flags to autoconf #####
##### configure in bundled autotools projects since we #####
##### are trying to set all compiler flags ourself and #####
##### including them could lead to e.g. conflicting 32/64 #####
##### bit build options.
CONFIG_SITE =
##### Make sure build products are taken instead of #####
##### binaries from a different, existing build. #####
export PATH := $(ROOT_OBJDIR)/bin:$(PATH)
ifeq ($(subst win,,$(ARCH)),$(ARCH))
# not windows
ifeq ($(LD_LIBRARY_PATH),)
export LD_LIBRARY_PATH := $(ROOT_OBJDIR)/lib
else
export LD_LIBRARY_PATH := $(ROOT_OBJDIR)/lib:$(LD_LIBRARY_PATH)
endif
endif
##### Include compiler overrides specified via ./configure #####
##### However, if we are building packages or cleaning, we #####
##### don't include this file since it may screw up things #####
##### Included before Makefile.$ARCH only because of f77 #####
##### if case has to be processed #####
ifeq ($(findstring $(MAKECMDGOALS), maintainer-clean debian redhat),)
include config/Makefile.comp
endif
ifeq ($(MAKECMDGOALS),clean)
include config/Makefile.comp
endif
##### Include machine dependent macros #####
##### However, if we are building packages or cleaning, we #####
##### don't include this file since it may screw up things #####
ifndef ROOT_SRCDIR
$(error Please run ./configure first)
endif
ifeq ($(findstring $(MAKECMDGOALS), maintainer-clean debian redhat),)
include $(ROOT_SRCDIR)/config/Makefile.$(ARCH)
endif
ifeq ($(MAKECMDGOALS),clean)
include $(ROOT_SRCDIR)/config/Makefile.$(ARCH)
endif
##### Include compiler overrides specified via ./configure #####
##### However, if we are building packages or cleaning, we #####
##### don't include this file since it may screw up things #####
ifeq ($(findstring $(MAKECMDGOALS), maintainer-clean debian redhat),)
include config/Makefile.comp
endif
ifeq ($(MAKECMDGOALS),clean)
include config/Makefile.comp
endif
##### Include library dependencies for explicit linking #####
MAKEFILEDEP = $(ROOT_SRCDIR)/config/Makefile.depend
include $(MAKEFILEDEP)
##### Allow local macros #####
-include MyConfig.mk
##### Modules to build #####
MODULES = build interpreter/llvm interpreter/cling core/foundation \
core/clingutils core/dictgen core/metacling \
core/pcre core/clib \
core/textinput core/base core/cont core/meta core/thread \
io/rootpcm io/io math/mathcore net/net core/zip core/lzma \
math/matrix \
core/newdelete hist/hist hist/unfold tree/tree graf2d/freetype \
graf2d/mathtext graf2d/graf graf2d/gpad graf3d/g3d \
gui/gui math/minuit math/cmaes hist/histpainter tree/treeplayer \
gui/ged tree/treeviewer math/physics graf2d/postscript \
core/rint html montecarlo/eg \
geom/geom geom/geompainter montecarlo/vmc \
math/fumili math/mlp math/quadp net/auth gui/guibuilder io/xml \
math/foam math/splot math/smatrix io/sql \
geom/geombuilder hist/spectrum hist/spectrumpainter \
gui/fitpanel proof/proof proof/proofplayer \
gui/sessionviewer gui/guihtml gui/recorder core/multiproc
ifeq ($(ARCH),win32)
MODULES += core/winnt graf2d/win32gdk
MODULES := $(filter-out core/newdelete,$(MODULES))
SYSTEMDH = $(WINNTH1)
SYTSTEMDEF := -DSYSTEM_TYPE_winnt
SYSTEML = $(WINNTL)
SYSTEMO = $(WINNTO)
SYSTEMDO = $(WINNTDO)
else
ifeq ($(ARCH),win32gcc)
MODULES += core/unix
SYSTEMDH = $(UNIXH)
SYSTEMDEF = -DSYSTEM_TYPE_unix
SYSTEML = $(UNIXL)
SYSTEMO = $(UNIXO)
SYSTEMDO = $(UNIXDO)
else
MODULES += core/unix
SYSTEMDH = $(UNIXH)
SYSTEMDEF = -DSYSTEM_TYPE_unix
SYSTEML = $(UNIXL)
SYSTEMO = $(UNIXO)
SYSTEMDO = $(UNIXDO)
ifeq ($(PLATFORM),macosx)
CORELIBEXTRA += -F /System/Library/PrivateFrameworks -framework CoreSymbolication
endif # macos
endif # not win32gcc
endif # not win32
ifeq ($(BUILDCOCOA),yes)
MODULES += core/macosx
endif
# rootcling_stage1 depends on system; must come after:
MODULES += core/rootcling_stage1
ifeq ($(PLATFORM),ios)
MODULES += graf2d/ios
endif
ifeq ($(BUILDCOCOA),yes)
MODULES += graf2d/quartz
MODULES += graf2d/cocoa
MODULES += rootx
SYSTEMDH += $(MACOSXH1)
SYSTEMDEF := -DSYSTEM_TYPE_macosx
SYSTEML += $(MACOSXL)
SYSTEMO += $(MACOSXO)
SYSTEMDO += $(MACOSXDO)
CORELIBEXTRA += -framework Cocoa
endif
SYSTEMDICTH = $(SYSTEMDEF) $(SYSTEMDH)
ifeq ($(BUILDX11),yes)
MODULES += graf2d/x11 graf2d/x11ttf graf3d/x3d rootx
endif
ifeq ($(BUILDGL),yes)
ifeq ($(BUILDFTGL),yes)
MODULES += graf3d/ftgl
endif
ifeq ($(BUILDGLEW),yes)
MODULES += graf3d/glew
endif
MODULES += graf3d/gl graf3d/eve graf3d/gviz3d
endif
ifeq ($(BUILDMYSQL),yes)
MODULES += sql/mysql
endif
ifeq ($(BUILDORACLE),yes)
MODULES += sql/oracle
endif
ifeq ($(BUILDPGSQL),yes)
MODULES += sql/pgsql
endif
ifeq ($(BUILDSQLITE),yes)
MODULES += sql/sqlite
endif
ifeq ($(BUILDSAPDB),yes)
MODULES += sql/sapdb
endif
ifeq ($(BUILDODBC),yes)
MODULES += sql/odbc
endif
ifeq ($(BUILDRFIO),yes)
MODULES += io/rfio
endif
ifeq ($(BUILDCASTOR),yes)
MODULES += io/castor
endif
ifeq ($(BUILDDCAP),yes)
MODULES += io/dcache
endif
ifeq ($(BUILDDAVIX),yes)
MODULES += net/davix
endif
ifeq ($(BUILDGFAL),yes)
MODULES += io/gfal
endif
ifeq ($(BUILDGLITE),yes)
MODULES += net/glite
endif
ifeq ($(BUILDBONJOUR),yes)
MODULES += net/bonjour
endif
ifeq ($(BUILDCHIRP),yes)
MODULES += io/chirp
endif
ifeq ($(BUILDHDFS),yes)
MODULES += io/hdfs
endif
ifeq ($(BUILDMEMSTAT),yes)
MODULES += misc/memstat
endif
ifeq ($(BUILDASIMAGE),yes)
MODULES += graf2d/asimage
ifeq ($(BUILDFITSIO),yes)
MODULES += graf2d/fitsio
endif
endif
ifeq ($(BUILDFPYTHIA6),yes)
MODULES += montecarlo/pythia6
endif
ifeq ($(BUILDFPYTHIA8),yes)
MODULES += montecarlo/pythia8
endif
ifeq ($(BUILDFFTW3),yes)
MODULES += math/fftw
endif
ifeq ($(BUILDGVIZ),yes)
MODULES += graf2d/gviz
endif
ifeq ($(BUILDPYTHON),yes)
MODULES += bindings/pyroot
MODULES += main/python
endif
ifeq ($(BUILDRUBY),yes)
MODULES += bindings/ruby
endif
ifeq ($(BUILDXML),yes)
MODULES += io/xmlparser
endif
ifeq ($(BUILDQT),yes)
MODULES += graf2d/qt gui/qtroot
endif
ifeq ($(BUILDQTGSI),yes)
MODULES += gui/qtgsi
endif
ifeq ($(BUILDGENVECTOR),yes)
MODULES += math/genvector
endif
ifeq ($(BUILDMATHMORE),yes)
MODULES += math/mathmore
endif
ifeq ($(BUILDMINUIT2),yes)
MODULES += math/minuit2
endif
ifeq ($(BUILDCMAES),yes)
MODULES += math/cmaes
endif
ifeq ($(BUILDCMAES),yes)
MODULES += math/cmaes
endif
ifeq ($(BUILDUNURAN),yes)
MODULES += math/unuran
endif
ifeq ($(BUILDROOFIT),yes)
MODULES += roofit/roofitcore roofit/roofit roofit/roostats
ifeq ($(BUILDXML),yes)
MODULES += roofit/histfactory
endif
endif
ifeq ($(BUILDGEOCAD),yes)
MODULES += geom/geocad
endif
ifeq ($(BUILDGDML),yes)
MODULES += geom/gdml
endif
ifeq ($(BUILDTABLE),yes)
MODULES += misc/table
endif
ifeq ($(BUILDSRPUTIL),yes)
MODULES += net/srputils
endif
ifeq ($(BUILDKRB5),yes)
MODULES += net/krb5auth
endif
ifeq ($(BUILDLDAP),yes)
MODULES += net/ldap
endif
ifeq ($(BUILDMONALISA),yes)
MODULES += net/monalisa
endif
ifeq ($(BUILDGLOBUS),yes)
MODULES += net/globusauth
endif
ifneq ($(F77),)
MODULES += misc/minicern hist/hbook
endif
ifeq ($(HASXRD),yes)
MODULES += net/netx
ifeq ($(BUILDNETXNG),yes)
MODULES += net/netxng
endif
ifeq ($(BUILDALIEN),yes)
MODULES += net/alien
endif
endif
ifneq ($(ARCH),win32)
MODULES += net/rpdutils net/rootd proof/proofd proof/pq2 proof/proofbench
endif
ifeq ($(BUILDTMVA),yes)
MODULES += tmva/tmva tmva/tmvagui math/genetic
endif
ifeq ($(HASXRD),yes)
ifeq ($(BUILDXRDCLT),no)
ifeq ($(ARCH),win32)
MODULES += proof/proofd
endif
MODULES += proof/proofx
endif
endif
ifeq ($(BUILDAFDSMGRD),yes)
MODULES += proof/afdsmgrd
endif
ifeq ($(BUILDHTTP),yes)
MODULES += net/http
endif
ifeq ($(BUILDR),yes)
MODULES += bindings/r
endif
-include MyModules.mk # allow local modules
ifneq ($(findstring $(MAKECMDGOALS),distclean maintainer-clean),)
MODULES += core/unix core/winnt graf2d/x11 graf2d/x11ttf \
graf3d/gl graf3d/ftgl graf3d/glew io/rfio io/castor \
montecarlo/pythia6 montecarlo/pythia8 misc/table \
sql/mysql sql/pgsql sql/sqlite sql/sapdb net/srputils \
rootx net/rootd io/dcache io/chirp hist/hbook graf2d/asimage \
net/ldap net/krb5auth net/rpdutils net/globusauth \
bindings/pyroot bindings/ruby io/gfal misc/minicern \
graf2d/qt gui/qtroot gui/qtgsi net/netx net/netxng net/alien \
proof/proofd proof/proofx proof/pq2 graf3d/x3d net/davix \
sql/oracle io/xmlparser math/mathmore \
tmva/tmva tmva/tmvagui math/genetic io/hdfs graf2d/fitsio \
roofit/roofitcore \
roofit/roofit roofit/roostats roofit/histfactory \
math/minuit2 math/cmaes net/monalisa math/fftw sql/odbc math/unuran \
geom/geocad geom/gdml graf3d/eve net/glite misc/memstat \
math/genvector net/bonjour graf3d/gviz3d graf2d/gviz \
proof/proofbench proof/afdsmgrd graf2d/ios \
graf2d/quartz graf2d/cocoa core/macosx \
net/http bindings/r main/python
MODULES := $(sort $(MODULES)) # removes duplicates
endif
MODULES += main # must be last, $(ALLLIBS) must be fully formed
ifeq ($(BUILDTOOLS),yes)
MODULES = build interpreter/llvm interpreter/cling core/foundation core/dictgen \
core/clib core/base core/meta core/rootcling_stage1
endif
##### ROOT libraries #####
LPATH = lib
ifneq ($(PLATFORM),win32)
RPATH := -L$(LPATH)
NEWLIBS := -lNew
BOOTLIBS := -lCore
ROOTCLINGLIBS:= -lRIO $(BOOTLIBS) -lCling
ROOTLIBS := -lRIO -lHist -lGraf -lGraf3d -lGpad -lTree \
-lMatrix -lNet -lThread -lMathCore $(BOOTLIBS)
RINTLIBS := -lRint
else
NEWLIBS := $(LPATH)/libNew.lib
BOOTLIBS := $(LPATH)/libCore.lib
ROOTCLINGLIBS:= $(LPATH)/libRIO.lib $(BOOTLIBS) $(LPATH)/libCling.lib
ROOTLIBS := $(LPATH)/libRIO.lib $(LPATH)/libHist.lib \
$(LPATH)/libGraf.lib $(LPATH)/libGraf3d.lib \
$(LPATH)/libGpad.lib $(LPATH)/libTree.lib \
$(LPATH)/libMatrix.lib $(LPATH)/libNet.lib \
$(LPATH)/libThread.lib $(LPATH)/libMathCore.lib \
$(BOOTLIBS)
RINTLIBS := $(LPATH)/libRint.lib
endif
ROOTALIB := $(LPATH)/libRoot.a
ROOTA := bin/roota
PROOFSERVA := bin/proofserva
# ROOTLIBSDEP is intended to match the content of ROOTLIBS
BOOTLIBSDEP = $(ORDER_) $(CORELIB)
ROOTCLINGLIBSDEP = $(ORDER_) $(CORELIB) $(IOLIB) $(CLINGLIB)
ROOTLIBSDEP = $(BOOTLIBSDEP) $(MATHCORELIB) $(IOLIB) $(NETLIB) $(HISTLIB) \
$(GRAFLIB) $(G3DLIB) $(GPADLIB) $(TREELIB) $(MATRIXLIB)
# Force linking of not referenced libraries
ifeq ($(FORCELINK),yes)
ifeq ($(PLATFORM),aix5)
ROOTULIBS := -Wl,-u,.G__cpp_setupG__Net \
-Wl,-u,.G__cpp_setupG__IO \
-Wl,-u,.G__cpp_setupG__Hist \
-Wl,-u,.G__cpp_setupG__Graf \
-Wl,-u,.G__cpp_setupG__G3D \
-Wl,-u,.G__cpp_setupG__GPad \
-Wl,-u,.G__cpp_setupG__Tree \
-Wl,-u,.G__cpp_setupG__Thread \
-Wl,-u,.G__cpp_setupG__Matrix
else
ifeq ($(PLATFORM),macosx)
LDSYMPREFIX := _
endif
ROOTULIBS := -Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__Net \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__IO \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__Hist \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__Graf \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__G3D \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__GPad \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__Tree \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__Thread \
-Wl,-u,$(LDSYMPREFIX)G__cpp_setupG__Matrix
endif
endif
ifeq ($(PLATFORM),win32)
ROOTULIBS := -include:_G__cpp_setupG__Net \
-include:_G__cpp_setupG__IO \
-include:_G__cpp_setupG__Hist \
-include:_G__cpp_setupG__Graf \
-include:_G__cpp_setupG__G3D \
-include:_G__cpp_setupG__GPad \
-include:_G__cpp_setupG__Tree \
-include:_G__cpp_setupG__Thread \
-include:_G__cpp_setupG__Matrix
endif
##### Compiler output option #####
CXXOUT ?= -o # keep whitespace after "-o"
##### clang or gcc version #####
ifneq ($(findstring clang,$(CXX)),)
CLANG_MAJOR := $(shell $(CXX) -v 2>&1 | awk '{if (NR==1) print $$3}' | cut -d'.' -f1)
CLANG_MINOR := $(shell $(CXX) -v 2>&1 | awk '{if (NR==1) print $$3}' | cut -d'.' -f2)
ifeq ($(CLANG_MAJOR),version)
# Apple version of clang has different -v layout
CLANG_MAJOR := $(shell $(CXX) -v 2>&1 | awk '{if (NR==1) print $$4}' | cut -d'.' -f1)
CLANG_MINOR := $(shell $(CXX) -v 2>&1 | awk '{if (NR==1) print $$4}' | cut -d'.' -f2)
endif
else
ifneq ($(findstring gnu,$(COMPILER)),)
GCC_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1)
GCC_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2)
GCC_PATCH := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f3)
GCC_VERS := gcc-$(GCC_MAJOR).$(GCC_MINOR)
GCC_VERS_FULL := gcc-$(GCC_MAJOR).$(GCC_MINOR).$(GCC_PATCH)
endif
endif
##### f77 options #####
ifneq ($(F77),)
F77LD := $(F77)
endif
ifeq ($(F77OPT),)
F77OPT := $(OPT)
endif
ifeq ($(F77LDFLAGS),)
F77LDFLAGS := $(LDFLAGS)
endif
ifeq ($(GCC_MAJOR),3)
NOUNDEF := -Wl,--no-undefined
LDFLAGS := $(filter-out $(NOUNDEF),$(LDFLAGS))
ifneq ($(GCC_MINOR),0)
ifeq ($(F77),g77)
LIBFRTBEGIN := $(shell $(F77) -print-file-name=libfrtbegin.a)
F77LIBS := $(LIBFRTBEGIN) $(F77LIBS)
endif
endif
endif
ifeq ($(GCC_MAJOR),4)
ifeq ($(F77),g77)
LIBFRTBEGIN := $(shell $(F77) -print-file-name=libfrtbegin.a)
F77LIBS := $(LIBFRTBEGIN) $(F77LIBS)
endif
endif
##### Store Git SHA1 of this version #####
ifeq ($(findstring $(MAKECMDGOALS),clean distclean maintainer-clean dist distsrc),)
ifeq ($(findstring clean-,$(MAKECMDGOALS)),)
ifeq ($(shell which git 2>&1 | sed -ne "s@.*/git@git@p"),git)
GITREV := $(shell bash $(ROOT_SRCDIR)/build/unix/gitinfo.sh $(ROOT_SRCDIR))
endif
endif
endif
##### Utilities #####
ifneq ($(ROOT_OBJDIR),$(ROOT_SRCDIR))
MAKEDIR = +@[ -d $(dir $@) ] || mkdir -p $(dir $@)
RUNTIMEDIRS := etc macros icons fonts README tutorials test man
POSTBIN += runtimedirs
endif
ifneq ($(HOST),)
BUILDTOOLSDIR := buildtools
endif
ifeq ($(PLATFORM),ios)
POSTBIN += staticlib
endif
ifeq ($(CXXMKDEPFLAGS),)
MAKEDEP = $(RMKDEP)
else
MAKEDEP = @\#
endif
MAKELIB = $(ROOT_SRCDIR)/build/unix/makelib.sh $(MKLIBOPTIONS)
MAKEDIST := $(ROOT_SRCDIR)/build/unix/makedist.sh
MAKEDISTSRC := $(ROOT_SRCDIR)/build/unix/makedistsrc.sh
MAKEVERSION := $(ROOT_SRCDIR)/build/unix/makeversion.sh
MAKECOMPDATA := $(ROOT_SRCDIR)/build/unix/compiledata.sh
MAKECHANGELOG := $(ROOT_SRCDIR)/build/unix/makechangelog.sh
MAKELOGHTML := $(ROOT_SRCDIR)/build/unix/makeloghtml.sh
MAKEPLUGINS := $(ROOT_SRCDIR)/build/unix/makeplugins-ios.sh
MAKERELNOTES := $(ROOT_SRCDIR)/build/unix/makereleasenotes.sh
STATICOBJLIST := $(ROOT_SRCDIR)/build/unix/staticobjectlist.sh
MAKESTATICLIB := $(ROOT_SRCDIR)/build/unix/makestaticlib.sh
MAKESTATIC := $(ROOT_SRCDIR)/build/unix/makestatic.sh
RECONFIGURE := $(ROOT_SRCDIR)/build/unix/reconfigure.sh
MAKEPCHINPUT := $(ROOT_SRCDIR)/build/unix/makepchinput.sh
MAKEPCH := etc/dictpch/makepch.sh
ifeq ($(PLATFORM),win32)
MAKELIB := $(ROOT_SRCDIR)/build/win/makelib.sh
MAKECOMPDATA := $(ROOT_SRCDIR)/build/win/compiledata.sh
endif
##### Compiler directives and run-control file #####
COMPILEDATA = include/compiledata.h
RGITCOMMITH = core/base/src/RGitCommit.h
ROOTRC = etc/system.rootrc
ROOTMAP = etc/system.rootmap
ROOTPCH = etc/allDict.cxx.pch
POSTBIN += $(ROOTPCH)
##### Extra libs needed for "static" target #####
STATICEXTRALIBS = $(CLINGLIBEXTRA) \
$(PCRELDFLAGS) $(PCRELIB) \
$(FREETYPELDFLAGS) $(FREETYPELIB)
ifneq ($(SSLLIB),)
STATICEXTRALIBS += $(SSLLIB)
endif
ifeq ($(XFTLIB),yes)
STATICEXTRALIBS += -lXft
endif
ifeq ($(BUILDCOCOA),yes)
STATICEXTRALIBS += -framework Cocoa -framework OpenGL
endif
ifeq ($(PLATFORM),macosx)
STATICEXTRALIBS += -F /System/Library/PrivateFrameworks -framework CoreSymbolication
endif
##### libCore #####
COREBASEDIRS := $(ROOT_SRCDIR)/core/base/src
COREBASEDIRI := $(ROOT_SRCDIR)/core/base/inc
COREL0 = -I$(ROOT_SRCDIR) $(COREBASEDIRI)/LinkDef.h
COREL = $(BASEL1) $(BASEL2) $(BASEL3) $(CONTL) $(METAL) $(ZIPL) \
$(SYSTEML) $(CLIBL) $(FOUNDATIONL) $(DICTGENL) \
$(METACLINGL) $(TEXTINPUTL)
COREDS := $(call stripsrc,$(COREBASEDIRS)/G__Core.cxx)
COREDO := $(COREDS:.cxx=.o)
COREDH := $(COREDS:.cxx=.h)
COREDICTHDEP = $(BASEDICTH) $(CONTH) $(METAH) $(SYSTEMDH) \
$(ZIPDICTH) $(CLIBHH) $(FOUNDATIONH) $(TEXTINPUTH)
COREDICTH = $(BASEDICTH) $(CONTH) $(METAH) $(SYSTEMDICTH) \
$(ZIPDICTH) $(CLIBHH) $(FOUNDATIONH) $(TEXTINPUTH)
COREO = $(BASEO) $(CONTO) $(FOUNDATIONO) $(METAO) $(SYSTEMO) $(ZIPO) $(LZMAO) \
$(CLIBO) $(TEXTINPUTO)
CORELIB := $(LPATH)/libCore.$(SOEXT)
COREMAP := $(CORELIB:.$(SOEXT)=.rootmap)
ifneq ($(BUILTINZLIB),yes)
CORELIBEXTRA += $(ZLIBLIBDIR) $(ZLIBCLILIB)
STATICEXTRALIBS += $(ZLIBLIBDIR) $(ZLIBCLILIB)
endif
ifneq ($(BUILTINLZMA),yes)
CORELIBEXTRA += $(LZMALIBDIR) $(LZMACLILIB)
STATICEXTRALIBS += $(LZMALIBDIR) $(LZMACLILIB)
else
CORELIBEXTRA += $(LZMALIB)
STATICEXTRALIBS += $(LZMALIB)
endif
##### In case shared libs need to resolve all symbols (e.g.: aix, win32) #####
ifeq ($(EXPLICITLINK),yes)
MAINLIBS := $(CORELIB)
else
MAINLIBS =
endif
##### all #####
ALLHDRS :=
ifeq ($(CXXMODULES),yes)
# Add the ROOT Core module. It is organized differently and we cannot do it in
# a Module.mk
CXXMODULES_HEADERS :=
CXXMODULES_MODULEMAP_CONTENTS :=
# Copy the modulemap in $ROOTSYS/include first.
ALLHDRS := include/module.modulemap
# FIXME: Remove -fno-autolink once the clang's modules autolinking is done on a
#use of a header not unconditionally.
ROOT_CXXMODULES_COMMONFLAGS := -fmodules -fmodules-cache-path=$(ROOT_OBJDIR)/include/pcms/ -fno-autolink -fdiagnostics-show-note-include-stack -Rmodule-build
ifeq ($(PLATFORM),macosx)
# FIXME: OSX doesn't support -fmodules-local-submodule-visibility because its
# Frameworks' modulemaps predate the flag. Here we exclude the system module maps
# and use only the ROOT one. This is suboptimal, because module-aware systems
# should give us better performance.
ROOT_CXXMODULES_COMMONFLAGS += -fno-implicit-module-maps -fmodule-map-file=$(ROOT_OBJDIR)/include/module.modulemap
# FIXME: TGLIncludes and alike depend on glew.h doing special preprocessor
# trickery to override the contents of system's OpenGL.
# On OSX #include TGLIncludes.h will trigger the creation of the system
# OpenGL.pcm. Once it is built, glew cannot use preprocessor trickery to 'fix'
# the translation units which it needs to 'rewrite'. The translation units
# which need glew support are in graf3d. However, depending on the modulemap
# organization we could request it implicitly (eg. one big module for ROOT).
# In these cases we need to 'prepend' this include path to the compiler in order
# for glew.h to it its trick.
#
# Turn on when we remove -fno-implicit-module-maps
#ROOT_CXXMODULES_COMMONFLAGS += -isystem $(ROOT_SRCDIR)/graf3d/glew/isystem/
endif # macosx
ROOT_CXXMODULES_CXXFLAGS := $(ROOT_CXXMODULES_COMMONFLAGS) -fcxx-modules -Xclang -fmodules-local-submodule-visibility
ROOT_CXXMODULES_CFLAGS := $(ROOT_CXXMODULES_COMMONFLAGS)
CXXFLAGS += $(ROOT_CXXMODULES_CXXFLAGS)
CFLAGS += $(ROOT_CXXMODULES_CFLAGS)
endif
ifneq ($(GCCTOOLCHAIN),)
CXXFLAGS += --gcc-toolchain=$(GCCTOOLCHAIN)
CFLAGS += --gcc-toolchain=$(GCCTOOLCHAIN)
LDFLAGS += --gcc-toolchain=$(GCCTOOLCHAIN)
endif
ALLLIBS := $(CORELIB)
ALLMAPS := $(COREMAP)
ALLEXECS :=
INCLUDEFILES :=
##### RULES #####
.SUFFIXES: .cxx .mm .d
.PRECIOUS: include/%.h
print-% : ; @echo $* = $($*)
build/rmkdepend/%.o: $(ROOT_SRCDIR)/build/rmkdepend/%.cxx
$(MAKEDIR)
$(CXX) $(OPT) $(CXXFLAGS) $(CXXOUT)$@ -c $<
build/rmkdepend/%.o: $(ROOT_SRCDIR)/build/rmkdepend/%.c
$(MAKEDIR)
$(CC) $(OPT) $(CFLAGS) $(CXXOUT)$@ -c $<
define SRCTOOBJ_template
$(1)/%_tmp.o: $(1)/%_tmp.cxx
$$(MAKEDEP) -R -f$$(@:.o=.d) -Y -w 1000 -- $$(CXXFLAGS) -D__cplusplus -- $$<
$$(CXX) $$(OPT) $$(CXXFLAGS) $$(CXXMKDEPFLAGS) $$(CXXOUT)$$@ -c $$<
$(1)/src/G__%.o: $(1)/src/G__%.cxx
$$(MAKEDEP) -R -f$$(patsubst %.o,%.d,$$@) -Y -w 1000 -- \
$$(CXXFLAGS) -D__cplusplus -- $$<
$$(CXX) $$(NOOPT) $$(CXXFLAGS) $$(CXXMKDEPFLAGS) -I. $$(CXXOUT)$$@ -c $$<
$(1)/%.o: $(ROOT_SRCDIR)/$(1)/%.cxx
$$(MAKEDIR)
$$(MAKEDEP) -R -f$$(@:.o=.d) -Y -w 1000 -- $$(CXXFLAGS) -D__cplusplus -- $$<
$$(CXX) $$(OPT) $$(CXXFLAGS) $$(CXXMKDEPFLAGS) $$(CXXOUT)$$@ -c $$<
$(1)/%.o: $(ROOT_SRCDIR)/$(1)/%.c
$$(MAKEDIR)
$$(MAKEDEP) -R -f$$(@:.o=.d) -Y -w 1000 -- $$(CFLAGS) -- $$<
$$(CC) $$(OPT) $$(CFLAGS) $$(CXXMKDEPFLAGS) $$(CXXOUT)$$@ -c $$<
$(1)/%.o: $(ROOT_SRCDIR)/$(1)/%.mm
$$(MAKEDIR)
$$(MAKEDEP) -R -f$$(@:.o=.d) -Y -w 1000 -- $$(OBJCXXFLAGS) -D__cplusplus -- $$<
$$(CXX) $$(OPT) $$(OBJCXXFLAGS) $$(CXXMKDEPFLAGS) -ObjC++ $$(CXXOUT)$$@ -c $$<
$(1)/%.o: $(ROOT_SRCDIR)/$(1)/%.f
$$(MAKEDIR)
ifeq ($$(F77),f2c)
f2c -a -A $$<
$$(CC) $$(F77OPT) $$(CFLAGS) $$(CXXOUT)$$@ -c $$(@:.o=.c)
else
ifneq ($(findstring gfortran, $(F77)),)
# Ignore gfortran warnings, our Fortran code is old, won't change and works
$$(F77) $$(F77OPT) $$(F77FLAGS) $$(CXXOUT)$$@ -c $$< 2>&1 | sed -e s/arning:/arn-Ignore:/ >&2
else
$$(F77) $$(F77OPT) $$(F77FLAGS) $$(CXXOUT)$$@ -c $$<
endif
endif
endef
MODULESGENERIC := build $(filter-out build,$(MODULES))
$(foreach module,$(MODULESGENERIC),$(eval $(call SRCTOOBJ_template,$(module))))
%.o: %.cxx
$(MAKEDEP) -R -f$*.d -Y -w 1000 -- $(CXXFLAGS) -D__cplusplus -- $<
$(CXX) $(OPT) $(CXXFLAGS) $(CXXMKDEPFLAGS) $(CXXOUT)$@ -c $<
%.o: %.c
$(MAKEDEP) -R -f$*.d -Y -w 1000 -- $(CFLAGS) -- $<
$(CC) $(OPT) $(CFLAGS) $(CXXMKDEPFLAGS) $(CXXOUT)$@ -c $<
%.o: %.mm
$(MAKEDEP) -R -f$*.d -Y -w 1000 -- $(OBJCXXFLAGS) -D__cplusplus -- $<
$(CXX) $(OPT) $(OBJCXXFLAGS) $(CXXMKDEPFLAGS) -ObjC++ $(CXXOUT)$@ -c $<
%.o: %.f
ifeq ($(F77),f2c)
f2c -a -A $<
$(CC) $(F77OPT) $(CFLAGS) $(CXXMKDEPFLAGS) $(CXXOUT)$@ -c $*.c
else
ifneq ($(findstring gfortran, $(F77)),)
# Ignore gfortran warnings, our Fortran code is old, won't change and works
$(F77) $(F77OPT) $(F77FLAGS) $(CXXOUT)$@ -c $< 2>&1 | sed -e s/arning:/arn-Ignore:/ >&2
else
$(F77) $(F77OPT) $(F77FLAGS) $(CXXOUT)$@ -c $<
endif
endif
##### TARGETS #####
.PHONY: all fast config rootcling rootlibs rootexecs dist distsrc \
clean distclean distclean-xrootd maintainer-clean compiledata \
version html changelog install uninstall showbuild \
releasenotes staticlib static map debian redhat skip postbin \
showit help runtimedirs plugins-ios
ifneq ($(findstring map, $(MAKECMDGOALS)),)
.NOTPARALLEL:
endif
all: tutorials/hsimple.root
tutorials/hsimple.root: rootexecs postbin
@(cd tutorials; ! ROOTIGNOREPREFIX=1 ../bin/root -l -q -b -n -x hsimple.C)
all: rootexecs postbin
@echo " "
@echo " ============================================================"
@echo " === ROOT BUILD SUCCESSFUL. ==="
ifeq ($(USECONFIG),FALSE)
@echo " === Run 'source bin/thisroot.[c]sh' before starting ROOT ==="
else
@echo " === Run 'make install' now. ==="
endif
@echo " ============================================================"
fast: rootexecs
skip:
@true;
-include $(patsubst %,$(ROOT_SRCDIR)/%/ModuleVars.mk,$(MODULES))
include $(patsubst %,$(ROOT_SRCDIR)/%/Module.mk,$(MODULES))
-include MyRules.mk # allow local rules
ifeq ($(findstring $(MAKECMDGOALS),clean distclean maintainer-clean dist \
distsrc version showbuild \
changelog debian redhat),)
ifeq ($(findstring clean-,$(MAKECMDGOALS)),)
ifeq ($(findstring skip,$(MAKECMDGOALS))$(findstring fast,$(MAKECMDGOALS)),)
-include $(INCLUDEFILES)
endif
-include build/dummy.d # must be last include
endif
endif
rootcling: all-cling compiledata
rootlibs: rootcling $(ALLLIBS)
rootexecs: rootlibs $(ALLEXECS)
ifneq ($(HOST),)
.PHONY: buildtools
buildtools:
@if [ ! -f $(BUILDTOOLSDIR)/Makefile ]; then \
echo "*** Building build tools in $(BUILDTOOLSDIR)..."; \
mkdir -p $(BUILDTOOLSDIR); \
cd $(BUILDTOOLSDIR); \
$(ROOT_SRCDIR)/configure $(HOST) --minimal; \
else \
echo "*** Running make in $(BUILDTOOLSDIR)..."; \
cd $(BUILDTOOLSDIR); \
fi; \
($(MAKE) BUILDTOOLS=yes \
TARGETFLAGS=-DR__$(shell echo $(ARCH) | tr 'a-z' 'A-Z') \
rootcling \
) || exit 1;
endif
distclean::
@rm -rf buildtools
postbin: $(POSTBIN)
compiledata: $(COMPILEDATA)
config config/Makefile.:
ifeq ($(BUILDING_WITHIN_IDE),)
@(if [ ! -f config/Makefile.config ] || \
[ ! -f config/Makefile.comp ]; then \
echo ""; echo "Please, run ./configure first"; echo ""; \
exit 1; \
fi)
else
# Building from within an IDE, running configure
@(if [ ! -f config/Makefile.config ] || \
[ ! -f config/Makefile.comp ]; then \
./configure --build=debug `cat config.status 2>/dev/null`; \
fi)
endif
# Target Makefile is synonym for "run (re-)configure"
# Makefile is target as we need to re-parse dependencies after
# configure is run (as RConfigure.h changed etc)
config/Makefile.config config/Makefile.comp include/RConfigure.h \
include/RConfigOptions.h etc/system.rootauthrc etc/system.rootdaemonrc \
etc/root.mimes $(ROOTRC) \
bin/root-config: Makefile
ifneq ($(ROOT_OBJDIR),$(ROOT_SRCDIR))
Makefile: $(ROOT_SRCDIR)/Makefile
endif
Makefile: $(addprefix $(ROOT_SRCDIR)/,configure config/rootrc.in \
config/RConfigure.in config/Makefile.in config/Makefile.$(ARCH) \
config/Makefile-comp.in config/root-config.in config/rootauthrc.in \
config/rootdaemonrc.in config/mimes.unix.in config/mimes.win32.in \
config/proofserv.in config/xproofd.in config/roots.in) config.status
ifneq ($(ROOT_OBJDIR),$(ROOT_SRCDIR))
cp $(ROOT_SRCDIR)/Makefile $@
endif
ifeq ($(findstring $(MAKECMDGOALS),distclean maintainer-clean debian redhat),)
+@( $(RECONFIGURE) "$?" "$(ROOT_SRCDIR)" || ( \
echo ""; echo "Please, run $(ROOT_SRCDIR)/configure again as config option files ($?) have changed."; \
echo ""; exit 1; \
) )
endif
$(COMPILEDATA): $(ROOT_SRCDIR)/config/Makefile.$(ARCH) config/Makefile.comp Makefile \
$(MAKECOMPDATA) $(wildcard MyRules.mk) $(wildcard MyConfig.mk) $(wildcard MyModules.mk)
@$(MAKECOMPDATA) $(COMPILEDATA) "$(CXX)" "$(OPTFLAGS)" "$(DEBUGFLAGS)" \
"$(CXXFLAGS)" "$(SOFLAGS)" "$(LDFLAGS)" "$(SOEXT)" "$(SYSLIBS)" \
"$(LIBDIR)" "$(BOOTLIBS)" "$(RINTLIBS)" "$(INCDIR)" \
"$(MAKESHAREDLIB)" "$(MAKEEXE)" "$(ARCH)" "$(ROOTBUILD)" \
"$(EXPLICITLINK)"
ifeq ($(CXXMODULES),yes)
# We cannot use the usual way of setting CXXMODULES_MODULEMAP_CONTENTS for core,
# because we require information from the core submodules. Thus we have to access
# the information at the target.
#
# We use the relative path of COREDICT.
# FIXME: We probably should be chaning the COREDICTH to use relative paths, too.
# COREDICTH = $(BASEDICTH) $(CONTH) $(METADICTH) $(SYSTEMDICTH) \
# $(ZIPDICTH) $(CLIBHH) $(CLINGUTILSH) $(TEXTINPUTH)
include/module.modulemap:
COREDICTH_REL := $(BASEH_REL) $(CONTH_REL) $(METAH_REL) $(CLINGUTILSH_REL)
COREDICTH_REL := $(patsubst include/%,%, $(COREDICTH_REL))
CXXMODULES_CORE_EXCLUDE := RConfig.h RVersion.h RtypesImp.h \
Rtypes.h RtypesCore.h TClassEdit.h TClingUtils.h \
DllImport.h TGenericClassInfo.h \
TSchemaHelper.h ESTLType.h RStringView.h Varargs.h \
RootMetaSelection.h libcpp_string_view.h \
RWrap_libcpp_string_view.h TAtomicCountGcc.h \
TException.h ROOT/TThreadExecutor.hxx TBranchProxyTemplate.h \
TGLIncludes.h TGLWSIncludes.h snprintf.h strlcpy.h
COREDICTH_REL := $(filter-out $(CXXMODULES_CORE_EXCLUDE),$(COREDICTH_REL))
CXXMODULES_CORE_HEADERS := $(patsubst %,header \"%\"\\n, $(COREDICTH_REL))
CXXMODULES_CORE_MODULEMAP_CONTENTS := module Core { \\n \
requires cplusplus \\n \
$(CXXMODULES_CORE_HEADERS) \
"export * \\n" \
link \"$(CORELIB)\" \\n \
} \\n
CXXMODULES_ROOT_MODULE := "module ROOT {\\n" \
"$(CXXMODULES_CORE_MODULEMAP_CONTENTS)" \
"$(CXXMODULES_MODULEMAP_CONTENTS)" \
"\\n } //module ROOT \\n"
ifneq ($(PLATFORM),macosx)
CXXMODULES_ECHO_ARGS := -e
endif
include/module.modulemap: $(ROOT_SRCDIR)/build/unix/module.modulemap
cp $< $@
@echo $(CXXMODULES_ECHO_ARGS) "$(CXXMODULES_ROOT_MODULE)" | sed -e 's|export \\|export |g' | sed -E 's|(\s*)(.*) header "(.*)"|\1 module "\3" { \2 header "\3" export * }|g' >> $@
endif
# We rebuild GITCOMMITH only when we would re-link libCore anyway.
# Thus it depends on all dependencies of libCore (minus TROOT.o
# - the only #includer of GOREGITH - to avoid circular dependencies).
$(RGITCOMMITH): $(filter-out core/base/src/TROOT.o,$(COREO)) $(COREDO) $(PCREDEP) $(CORELIBDEP)
@echo '#ifndef ROOT_RGITCOMMIT_H' > [email protected]
@echo '#define ROOT_RGITCOMMIT_H' >> [email protected]
@echo '#define ROOT_GIT_BRANCH "'`head -n 1 etc/gitinfo.txt | tail -n1`'"' >> [email protected]
@echo '#define ROOT_GIT_COMMIT "'`head -n 2 etc/gitinfo.txt | tail -n1`'"' >> [email protected]
@echo '#endif' >> [email protected]
@if test -r $@; then \
if ! diff [email protected] $@ > /dev/null 2>&1; then \
mv [email protected] $@; \
else \
rm -f [email protected]; \
fi; \
else \
mv [email protected] $@; \
fi
ifeq ($(HOST),)
build/dummy.d: config Makefile $(ALLHDRS) $(RMKDEP) $(BINDEXP)
else
build/dummy.d: config Makefile buildtools $(ALLHDRS) $(RMKDEP) $(BINDEXP)
endif
@(if [ ! -f $@ ] ; then \
touch $@; \
fi)
$(COREDS): $(COREDICTHDEP) $(COREL) $(ROOTCLINGSTAGE1DEP) $(LLVMDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCLINGSTAGE1) -f $@ -s $(CORELIB) -c $(COREDICTCXXFLAGS) \
$(COREDICTH) $(COREL0) && touch lib/libCore_rdict.pcm
$(call pcmname,$(CORELIB)): $(COREDS)
$(noop)
$(CORELIB): $(COREO) $(COREDO) $(PCREDEP) $(CORELIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libCore.$(SOEXT) $@ \
"$(COREDO) $(COREO)" \
"$(CORELIBEXTRA) $(PCRELDFLAGS) $(PCRELIB) $(CRYPTLIBS)"
$(COREMAP): $(COREDICTHDEP) $(COREL) $(ROOTCLINGSTAGE1DEP) $(LLVMDEP)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCLINGSTAGE1) -r $(COREDS) -s lib/libCore.$(SOEXT) \
$(call rootmapModule, lib/libCore.$(SOEXT)) -c $(COREDICTCXXFLAGS) \
$(COREDICTH) $(COREL0)
map:: $(ALLMAPS)
dist:
@$(MAKEDIST) $(ROOT_SRCDIR) $(GCC_VERS)
distsrc:
@$(MAKEDISTSRC) $(ROOT_SRCDIR)
distmsi: build/package/msi/makemsi$(EXEEXT)
$(MAKEDIST) $(ROOT_SRCDIR) -msi
build/package/msi/makemsi$(EXEEXT): build/package/msi/makemsi.cxx build/version_number
@vers=`sed 's|\(.*\)/\(.*\)|\1.\2|' < build/version_number` && \
$(CXX) -DPRODUCT=\"ROOT\" -DVERSION=\"$$vers\" $(CXXFLAGS) Rpcrt4.lib build/package/msi/makemsi.cxx -Fe$@
rebase: $(ALLLIBS) $(ALLEXECS)
@echo -n "Rebasing binaries... "
@rebase -b 0x71000000 bin/*.exe bin/*.dll
@echo done.
debian:
@if [ ! -x `which dpkg-buildpackage` ] || [ ! -x `which dh_testdir` ]; then \
echo "You must have debhelper installed to make the "; \
echo "Debian GNU/Linux packages"; exit 1; fi
@echo "OK, you're on a Debian GNU/Linux system - cool"