-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakepaw.inc
More file actions
44 lines (40 loc) · 1010 Bytes
/
makepaw.inc
File metadata and controls
44 lines (40 loc) · 1010 Bytes
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
#!/bin/make
# Set some variables if they are not defined in the environment
ifneq ($(CERNLIB_ROOT),)
ifeq ($(CERNLIB_LIB),)
CERNLIB_LIB = $(CERNLIB_ROOT)/lib
endif
ifeq ($(CERNLIB_INC),)
CERNLIB_INC = $(CERNLIB_ROOT)/include
endif
else
ifeq ($(CERNLIB_LIB),)
# default to the "trurl" location
CERNLIB_LIB = /cernlib/2006b/x86_64-slc5-gcc34-opt/lib
endif
ifeq ($(CERNLIB_INC),)
# default to the "trurl" location
CERNLIB_INC = /cernlib/2006b/include
endif
endif
ifneq ($(CERNLIB_NOSHIFT),)
CERNLDLIBS = -lpacklib_noshift -lkernlib_noshift
else
CERNLDLIBS = -lpacklib -lkernlib
endif
LIBDIRS += -L$(CERNLIB_LIB)
LDLIBS += -Wl,-static $(CERNLDLIBS) -Wl,-dy
ifneq ($(CERNLIB_GFORTRAN),)
LDLIBS += -lgfortran
# Necessary for some versions of "cfortran.h"
# CFLAGS += -Dgfortran
# CXXFLAGS += -Dgfortran
CFLAGS += -Df2cFortran
CXXFLAGS += -Df2cFortran
else
LDLIBS += -lg2c
CFLAGS += -Df2cFortran
CXXFLAGS += -Df2cFortran
endif
INCLUDEDIRS += -I$(CERNLIB_INC)
LINK.o = $(CXX) $(LDFLAGS) $(TARGET_ARCH)