forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.hpuxacc
49 lines (41 loc) · 1.38 KB
/
Makefile.hpuxacc
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
# -*- mode: makefile -*-
#
# Makefile of ROOT for HP-UX with aCC
PLATFORM = hpux
DEBUGFLAGS = -g
OPTFLAGS = -O -DNDEBUG
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
ACC_MAJOR := $(shell aCC -V 2>&1 | awk '{ print $$6 }' | cut -d'.' -f2)
ACC_MINOR := $(shell aCC -V 2>&1 | awk '{ print $$6 }' | cut -d'.' -f3)
HPUX_MAJOR := $(shell uname -r | cut -d'.' -f2)
HPUX_MINOR := $(shell uname -r | cut -d'.' -f3)
# Compiler:
CXX = aCC
CC = cc
CXXFLAGS = +W740,749 -z +Z -D__HPACC_STRICTER_ANSI__ \
-DR__HPUX$(HPUX_MAJOR) $(EXTRA_CXXFLAGS) $(USERCONF_CXXFLAGS)
CFLAGS = -Ae -z +Z -DR__HPUX$(HPUX_MAJOR) $(EXTRA_CFLAGS) $(USERCONF_CFLAGS)
CPPPREP = /opt/langtools/lbin/cpp.ansi -Z -D__STDCPP__ -E -C
# Linker:
LD = aCC
LDFLAGS = $(OPT) -z -Wl,+s -Wl,-E $(EXTRA_LDFLAGS)
SOFLAGS = -b -Wl,+vnocompatwarnings
SOEXT = sl
# System libraries:
SYSLIBS = -lm -ldld $(OSTHREADLIBDIR) $(OSTHREADLIB) \
$(ALLOCLIBDIR) $(ALLOCLIB)
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS = -lm -Wl,-E -ldld -lcurses
# Fortran:
F77 = fort77
F77FLAGS = -K +ppu +Z
F77LDFLAGS = -K +ppu $(OPT)
F77LIBS =
# Extras
GLLIBEXTRA = -L/usr/contrib/X11R6/lib