Changes in / [5c257a5:0799cd1] in git
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r5c257a5 r0799cd1 2419 2419 @mkdir -p $(@D) 2420 2420 @echo ">> Building $@" 2421 ifeq ($(ARCH),aix5) 2422 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 2423 else 2421 2424 ifeq ($(PLATFORM),macosx) 2425 # We need to make both the .dylib and the .so 2422 2426 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 2427 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 2428 ifeq ($(MACOSX_MINOR),4) 2429 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 2430 endif 2431 endif 2423 2432 else 2424 2433 ifeq ($(PLATFORM),win32) … … 2429 2438 else 2430 2439 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 2440 @$(MT_DLL) 2441 endif 2431 2442 endif 2432 2443 endif … … 2435 2446 @mkdir -p $(@D) 2436 2447 @echo ">> Building $@" 2448 ifeq ($(ARCH),aix5) 2449 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 2450 else 2437 2451 ifeq ($(PLATFORM),macosx) 2452 # We need to make both the .dylib and the .so 2438 2453 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 2454 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 2455 ifeq ($(MACOSX_MINOR),4) 2456 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 2457 endif 2458 endif 2439 2459 else 2440 2460 ifeq ($(PLATFORM),win32) … … 2445 2465 else 2446 2466 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 2467 @$(MT_DLL) 2468 endif 2447 2469 endif 2448 2470 endif … … 2451 2473 @mkdir -p $(@D) 2452 2474 @echo ">> Building $@" 2475 ifeq ($(ARCH),aix5) 2476 @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^ 2477 else 2453 2478 ifeq ($(PLATFORM),macosx) 2479 # We need to make both the .dylib and the .so 2454 2480 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 2481 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 2482 ifeq ($(MACOSX_MINOR),4) 2483 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 2484 endif 2485 endif 2455 2486 else 2456 2487 ifeq ($(PLATFORM),win32) … … 2461 2492 else 2462 2493 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 2494 @$(MT_DLL) 2495 endif 2463 2496 endif 2464 2497 endif -
doc/Makefile.arch
r5c257a5 r0799cd1 39 39 OPT2 = -g 40 40 else 41 ifneq ($(findstring debug, $(strip $(shell $(RC) --config))),) 42 OPT = -g 43 OPT2 = -g 44 else 41 45 OPT = -O 42 46 OPT2 = -O2 47 endif 43 48 endif 44 49 … … 47 52 ROOTLIBS := $(shell $(RC) --libs) 48 53 ROOTGLIBS := $(shell $(RC) --glibs) 49 ROOTCLING := rootcling 54 HASTHREAD := $(shell $(RC) --has-thread) 55 ROOTCINT := rootcint 50 56 51 57 ifeq ($(PLATFORM),macosx) 52 ROOTLIBDIR := $(shell $(RC) --libdir) 53 MACOSX_MAJOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 1)) 54 MACOSX_MINOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)) 58 MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2) 55 59 ifeq ($(MACOSX_DEPLOYMENT_TARGET),) 56 MACOSXTARGET := $(MACOSX_MAJOR).$(MACOSX_MINOR)60 MACOSXTARGET := 10.$(MACOSX_MINOR) 57 61 else 58 62 MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET) … … 114 118 SOFLAGS = -shared 115 119 DllSuf = a 116 EXPLLINKLIBS = $(ROOT GLIBS)120 EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) 117 121 endif 118 122 … … 142 146 LDFLAGS = $(OPT) 143 147 SOFLAGS = -G 148 endif 149 150 ifeq ($(ARCH),sgicc) 151 # SGI 152 CXX = CC -n32 -I/usr/include/CC.sgi 153 CXXFLAGS = $(OPT) 154 LD = CC -n32 -LANG:std -I/usr/include/CC.sgi 155 LDFLAGS = $(OPT) 156 SOFLAGS = -shared 157 endif 158 159 ifeq ($(ARCH),sgicc64) 160 # SGI 161 CXX = CC -64 -I/usr/include/CC.sgi 162 CXXFLAGS = $(OPT) 163 LD = CC -64 -LANG:std -I/usr/include/CC.sgi 164 LDFLAGS = $(OPT) 165 SOFLAGS = -shared 166 endif 167 168 ifeq ($(ARCH),sgigcc) 169 # SGI 6.x with gcc 170 CXX = g++ 171 CXXFLAGS = $(OPT) -Wall -fPIC 172 LD = g++ 173 LDFLAGS = $(OPT) -Wl,-u,__builtin_new -Wl,-u,__builtin_delete -Wl,-u,__nw__FUiPv 174 SOFLAGS = -shared 175 endif 176 177 ifeq ($(ARCH),sgin32gcc) 178 # SGI 6.x with gcc for n32 ABI 179 CXX = g++ 180 CXXFLAGS = $(OPT) -Wall -fPIC 181 LD = g++ 182 LDFLAGS = $(OPT) -L/usr/lib32 -Wl,-woff,134 -lgen 183 SOFLAGS = -shared 184 endif 185 186 ifeq ($(ARCH),alphagcc) 187 # Alpha/OSF with gcc 188 CXX = g++ 189 CXXFLAGS = $(OPT2) -Wall -fPIC 190 LD = g++ 191 LDFLAGS = $(OPT2) 192 SOFLAGS = -Wl,-expect_unresolved,* -shared 193 endif 194 195 ifeq ($(ARCH),alphacxx6) 196 # Alpha/OSF with cxx6 197 CXX = cxx 198 CXXFLAGS = $(OPT) 199 LD = cxx 200 LDFLAGS = $(OPT) 201 SOFLAGS = -shared -nocxxstd -Wl,-expect_unresolved,*,-msym 144 202 endif 145 203 … … 224 282 endif 225 283 284 ifeq ($(ARCH),linuxalphagcc) 285 # Alpha Linux with gcc 286 CXX = g++ 287 CXXFLAGS = $(OPT2) -Wall -fPIC 288 LD = g++ 289 LDFLAGS = $(OPT2) 290 SOFLAGS = -shared 291 endif 292 293 ifeq ($(ARCH),linuxmips) 294 # GNU/Linux on mips (BE/LE, O32/N32/N64) with gcc 295 CXX = g++ 296 CXXFLAGS = $(OPT2) -Wall -fPIC 297 LD = g++ 298 LDFLAGS = $(OPT2) 299 SOFLAGS = -shared 300 endif 301 226 302 ifeq ($(ARCH),linuxhppa) 227 303 # GNU/Linux on hppa with gcc … … 242 318 endif 243 319 244 ifeq ($(ARCH),linuxarm64)245 # ARMv8-A (AArch64) Linux with gcc and glibc246 CXX = g++247 CXXFLAGS = $(OPT) -Wall -fPIC248 LD = g++249 LDFLAGS = $(OPT)250 SOFLAGS = -shared251 endif252 253 320 ifeq ($(ARCH),freebsd4) 254 321 # FreeBSD with glibc … … 293 360 LD = g++ 294 361 LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) 295 EXPLLINKLIBS = $(ROOTGLIBS) 362 EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) 363 # The SOFLAGS will be used to create the .dylib, 364 # the .so will be created separately 365 ifeq ($(subst $(MACOSX_MINOR),,1234),1234) 296 366 DllSuf = so 367 else 368 DllSuf = dylib 369 endif 370 ifneq ($(subst $(MACOSX_MINOR),,12),12) 371 LD = g++ 372 endif 297 373 SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ 298 374 endif … … 300 376 ifeq ($(ARCH),macosxicc) 301 377 # MacOS X with Intel icc compiler 378 ifeq ($(MACOSX_MINOR),5) 379 MACOSX_MINOR := 4 380 endif 302 381 CXX = icc 303 382 CXXFLAGS = $(OPT) -fPIC -wd1476 304 383 LD = icpc 305 384 LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) 306 EXPLLINKLIBS = $(ROOTGLIBS) 385 EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) 386 # The SOFLAGS will be used to create the .dylib, 387 # the .so will be created separately 388 ifeq ($(subst $(MACOSX_MINOR),,1234),1234) 307 389 DllSuf = so 390 else 391 DllSuf = dylib 392 endif 308 393 SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ 309 394 endif … … 315 400 CXXFLAGS = $(OPT2) -pipe -Wall -W -Woverloaded-virtual 316 401 LD = g++ 317 LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -Wl,-rpath,$(ROOTLIBDIR) 318 EXPLLINKLIBS = $(ROOTGLIBS) 402 LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) 403 EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) 404 # The SOFLAGS will be used to create the .dylib, 405 # the .so will be created separately 406 ifeq ($(subst $(MACOSX_MINOR),,1234),1234) 319 407 DllSuf = so 320 SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ 321 endif 322 323 ifeq ($(ARCH),macosxarm64) 324 # Apple Silicon running macOS 11.x. 325 CXX = g++ 326 CXXFLAGS = $(OPT2) -pipe -Wall -W -Woverloaded-virtual 327 LD = g++ 328 LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -Wl,-rpath,$(ROOTLIBDIR) 329 EXPLLINKLIBS = $(ROOTGLIBS) 330 DllSuf = so 408 else 409 DllSuf = dylib 410 endif 331 411 SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ 332 412 endif … … 346 426 LDOPT = -debug 347 427 else 428 ifneq ($(findstring debug, $(strip $(shell $(RC) --config))),) 429 CXXOPT = -Z7 430 LDOPT = -debug 431 else 348 432 CXXOPT = -O2 349 433 LDOPT = -opt:ref 434 endif 350 435 endif 351 436 ROOTINCDIR := -I$(shell cygpath -m `$(RC) --incdir`) … … 355 440 SOFLAGS = -DLL 356 441 357 EXPLLINKLIBS = $(ROOT GLIBS)442 EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) 358 443 ifneq (,$(findstring $(VC_MAJOR),14 15)) 359 444 MT_EXE = mt -nologo -manifest $@.manifest -outputresource:$@\;1; rm -f $@.manifest … … 377 462 SOFLAGS = -shared -Wl,--enable-auto-image-base \ 378 463 -Wl,--export-all-symbols 379 EXPLLINKLIBS = $(ROOT GLIBS)464 EXPLLINKLIBS = $(ROOTLIBS) $(ROOTGLIBS) 380 465 endif 381 466 … … 386 471 CXXFLAGS += $(ROOTCFLAGS) 387 472 LDFLAGS += $(ROOTLDFLAGS) 388 LIBS = $(ROOTLIBS) 389 GLIBS = $(ROOTGLIBS) 473 LIBS = $(ROOTLIBS) $(SYSLIBS) 474 GLIBS = $(ROOTGLIBS) $(SYSLIBS) 390 475 391 476 ifneq ($(ALTCC),) -
doc/genMakefile.tcl
r5c257a5 r0799cd1 346 346 @mkdir -p $(@D) 347 347 @echo ">> Building $@" 348 ifeq ($(ARCH),aix5) 349 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 350 else 348 351 ifeq ($(PLATFORM),macosx) 352 # We need to make both the .dylib and the .so 349 353 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 354 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 355 ifeq ($(MACOSX_MINOR),4) 356 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 357 endif 358 endif 350 359 else 351 360 ifeq ($(PLATFORM),win32) … … 356 365 else 357 366 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 367 @$(MT_DLL) 368 endif 358 369 endif 359 370 endif … … 362 373 @mkdir -p $(@D) 363 374 @echo ">> Building $@" 375 ifeq ($(ARCH),aix5) 376 @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^ 377 else 364 378 ifeq ($(PLATFORM),macosx) 379 # We need to make both the .dylib and the .so 365 380 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 381 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 382 ifeq ($(MACOSX_MINOR),4) 383 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 384 endif 385 endif 366 386 else 367 387 ifeq ($(PLATFORM),win32) … … 372 392 else 373 393 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS) 394 @$(MT_DLL) 395 endif 374 396 endif 375 397 endif … … 378 400 @mkdir -p $(@D) 379 401 @echo ">> Building $@" 402 ifeq ($(ARCH),aix5) 403 @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^ 404 else 380 405 ifeq ($(PLATFORM),macosx) 406 # We need to make both the .dylib and the .so 381 407 @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 408 ifneq ($(subst $(MACOSX_MINOR),,1234),1234) 409 ifeq ($(MACOSX_MINOR),4) 410 @ln -sf $@ $(subst .$(DllSuf),.so,$@) 411 endif 412 endif 382 413 else 383 414 ifeq ($(PLATFORM),win32) … … 388 419 else 389 420 @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS) 421 @$(MT_DLL) 422 endif 390 423 endif 391 424 endif
Note:
See TracChangeset
for help on using the changeset viewer.