forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
1529 lines (1390 loc) · 53.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 =
##### 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/metautils \
core/pcre core/clib \
core/textinput core/base core/cont core/meta core/thread \
io/io math/mathcore net/net core/zip core/lzma math/matrix \
core/newdelete hist/hist tree/tree graf2d/freetype \
graf2d/mathtext graf2d/graf graf2d/gpad graf3d/g3d \
gui/gui math/minuit 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)
SYSTEMDICTH = -DSYSTEM_TYPE_winnt $(SYSTEMDH)
SYSTEML = $(WINNTL)
SYSTEMO = $(WINNTO)
SYSTEMDO = $(WINNTDO)
else
ifeq ($(ARCH),win32gcc)
MODULES += core/unix
SYSTEMDH = $(UNIXH)
SYSTEMDICTH = -DSYSTEM_TYPE_unix $(SYSTEMDH)
SYSTEML = $(UNIXL)
SYSTEMO = $(UNIXO)
SYSTEMDO = $(UNIXDO)
else
MODULES += core/unix
SYSTEMDH = $(UNIXH)
SYSTEMDICTH = -DSYSTEM_TYPE_unix $(SYSTEMDH)
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
# utils/rootcling depends on system; must come after:
MODULES += core/utils
ifeq ($(PLATFORM),ios)
MODULES += graf2d/ios
endif
ifeq ($(BUILDVDT),yes)
MODULES += math/vdt
endif
ifeq ($(BUILDCOCOA),yes)
MODULES += graf2d/quartz
MODULES += graf2d/cocoa
MODULES += rootx
SYSTEMDH += $(MACOSXH1)
SYSTEMDICTH = -DSYSTEM_TYPE_macosx $(SYSTEMDH)
SYSTEML += $(MACOSXL)
SYSTEMO += $(MACOSXO)
SYSTEMDO += $(MACOSXDO)
CORELIBEXTRA += -framework Cocoa
endif
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 ($(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 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 math/vdt \
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/metautils \
core/clib core/base core/meta core/utils
endif
##### ROOT libraries #####
LPATH = lib
ifneq ($(PLATFORM),win32)
RPATH := -L$(LPATH)
NEWLIBS := -lNew
BOOTLIBS := -lCore
ROOTLIBS := -lRIO -lHist -lGraf -lGraf3d -lGpad -lTree \
-lMatrix -lNet -lThread -lMathCore $(BOOTLIBS)
RINTLIBS := -lRint
else
NEWLIBS := $(LPATH)/libNew.lib
BOOTLIBS := $(LPATH)/libCore.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)
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) $(METAUTILSL) $(TEXTINPUTL)
COREDS := $(call stripsrc,$(COREBASEDIRS)/G__Core.cxx)
COREDO := $(COREDS:.cxx=.o)
COREDH := $(COREDS:.cxx=.h)
COREDICTHDEP = $(BASEDICTH) $(CONTH) $(METAH) $(SYSTEMH) $(ZIPDICTH) \
$(CLIBHH) $(METAUTILSH) $(TEXTINPUTH)
COREDICTH = $(BASEDICTH) $(CONTH) $(METADICTH) $(SYSTEMDICTH) \
$(ZIPDICTH) $(CLIBHH) $(METAUTILSH) $(TEXTINPUTH)
COREO = $(BASEO) $(CONTO) $(METAO) $(SYSTEMO) $(ZIPO) $(LZMAO) \
$(CLIBO) $(METAUTILSO) $(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)
# Copy the modulemap in $ROOTSYS/include first.
ALLHDRS := include/module.modulemap
ROOT_CXXMODULES_CXXFLAGS = -fmodules -fcxx-modules -fmodules-cache-path=$(ROOT_OBJDIR)/include/pcms/
ROOT_CXXMODULES_CFLAGS = -fmodules -fmodules-cache-path=$(ROOT_OBJDIR)/include/pcms/
# FIXME: OSX doesn't support -fmodules-local-submodule-visibility because its
# Frameworks' modulemaps predate the flag.
ifneq ($(PLATFORM),macosx)
ROOT_CXXMODULES_CXXFLAGS += -Xclang -fmodules-local-submodule-visibility
endif # not macos
CXXFLAGS += $(ROOT_CXXMODULES_CXXFLAGS)
CFLAGS += $(ROOT_CXXMODULES_CFLAGS)
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 -- $$(CXXFLAGS) -D__cplusplus -- $$<
$$(CXX) $$(OPT) $$(CXXFLAGS) $$(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 -- $(CXXFLAGS) -D__cplusplus -- $<
$(CXX) $(OPT) $(CXXFLAGS) $(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
ifeq ($(USECONFIG),FALSE)
all: tutorials/hsimple.root
tutorials/hsimple.root: rootexecs postbin
@(cd tutorials; ! ../bin/root -l -q -b -n -x hsimple.C)
endif
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 all-utils 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/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)
include/module.modulemap: $(ROOT_SRCDIR)/build/unix/module.modulemap
cp $< $@
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 lib/libCore.$(SOEXT) -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"
@vers=`sed 's|\(.*\)/\(.*\)|\1.\2|' < build/version_number` ; \
dirvers=`basename $$PWD | sed 's|root-\(.*\)|\1|'` ; \
if [ "$$vers" != "$$dirvers" ] ; then \
echo "Must have ROOT source tree in root-$$vers" ; \
echo "Please rename this directory to `basename $$PWD` to"; \
echo "root-$$vers and try again"; exit 1 ; fi
rm -rf debian
$(ROOT_SRCDIR)/build/package/lib/makedebdir.sh
fakeroot debian/rules debian/control
dpkg-buildpackage -rfakeroot -us -uc -i"G__|^debian|root-bin.png|\.d$$"
@echo "Debian GNU/Linux packages done. They are put in '../'"
redhat:
@if [ ! -x `which rpm` ]; then \
echo "You must have rpm installed to make the Redhat package"; \
exit 1; fi
@echo "OK, you have RPM on your system - good"
$(ROOT_SRCDIR)/build/package/lib/makerpmspec.sh
@echo "To build the packages, make a gzipped tar ball of the sources"
@vers=`sed 's|\(.*\)/\(.*\)|\1.\2|' < build/version_number` ; \
echo "called root_v$$vers.source.tar.gz and put it in you RPM "
@echo "source directory (default /usr/src/rpm/SOURCES) and the "
@echo "spec-file root.spec in your RPM spec directory"
@echo "(default /usr/src/RPM/SPECS). If you want to build outside"
@echo "the regular tree, please refer to the RPM documentation."
@echo "After that, do"
@echo " rpm -ba root.spec "
@echo "to actually build the packages. More details are given in"
@echo "README/INSTALL"
# rpm -bb --rcfile rpm/rpmrc --buildroot `pwd`/rpm/tmp rpm/root.spec
# @echo "Redhat Linux packages done. They are put in '../<arch>'"
redhat-tar:
@if [ ! -x `which rpm` ]; then \
echo "You must have rpm installed to make the Redhat package"; \
exit 1; fi
@echo "OK, you have RPM on your system - good"
$(ROOT_SRCDIR)/build/package/lib/makerpmspec.sh
-@$(MAKE) distclean
-@$(MAKE) maintainer-clean
@vers=`sed 's|\(.*\)/\(.*\)|\1.\2|' < build/version_number` && \
rm -f root_v$$vers.source.tar.gz && \
(cd ../ && tar \
--exclude=\\.git \
--exclude=root/debian \
--exclude=root/bin \
--exclude=root/lib \
--exclude=root/include \
-czf root_v$$vers.source.tar.gz root) && \
mv ../root_v$$vers.source.tar.gz .
@echo "To build the packages, run "
@echo ""
@vers=`sed 's|\(.*\)/\(.*\)|\1.\2|' < build/version_number` ; \
echo " rpmbuild -ta root_v$$vers.source.tar.gz"
@echo ""
@echo "as user root (or similar). If you want to build outside"
@echo "the regular tree (as a normal user), please refer to the"
@echo "RPM documentation."
redhat-rpm: redhat-tar
@rm -rf rpm
@mkdir -p rpm/SOURCES rpm/SPECS rpm/BUILD rpm/RPMS rpm/SRPMS
@vers=`sed 's|\(.*\)/\(.*\)|\1.\2|' < build/version_number` && \
rpmbuild --define "_topdir `pwd`/rpm" -ta root_v$$vers.source.tar.gz
@rm -rf rpm/SOURCES rpm/SPECS
@echo "Packages build in rpm/RPMS and rpm/SPRMS"
rootdrpm:
@if [ ! -x `which rpm` ]; then \
echo "You must have rpm installed to make the root-rootd package"; \
exit 1; fi
@echo "OK, you have RPM on your system - good"
@if [ "x$(ARCOMP)" != "x" ]; then \
rm -f rootd-$(ARCOMP)-*-$(ROOTDRPMREL).spec ; \
else \
rm -f rootd-*-$(ROOTDRPMREL).spec ; \
fi
$(ROOT_SRCDIR)/build/package/lib/makerpmspecs.sh rpm \
$(ROOT_SRCDIR)/build/package/common \
$(ROOT_SRCDIR)/build/package/rpm root-rootd >> \
root-rootd.spec.tmp
@if [ "x$(ARCOMP)" != "x" ]; then \
echo "Architecture+compiler flag: $(ARCOMP)" ; \
fi
@if [ "x$(ROOTDRPMREL)" != "x" ]; then \
echo "RPM release set to: $(ROOTDRPMREL)" ; \
fi
@if [ ! -d "/tmp/rootdrpm" ]; then \
echo "Creating build directory /tmp/rootdrpm ..."; \
mkdir -p /tmp/rootdrpm; \