forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.hurddeb
62 lines (54 loc) · 1.59 KB
/
Makefile.hurddeb
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
# -*- mode: makefile -*-
#
# Makefile of ROOT for Debian GNU/Hurd
PLATFORM = hurd
DEBUGFLAGS = -g
OPTFLAGS = -O2 -DNDEBUG
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
# Compiler:
CXX = g++
CC = gcc
CXXFLAGS = -pipe -Wall -fPIC $(EXTRA_CXXFLAGS) $(USERCONF_CXXFLAGS)
CFLAGS = -pipe -Wall -fPIC $(EXTRA_CFLAGS) $(USERCONF_CFLAGS)
COMPILER = gnu
# Linker:
LD = g++
LDFLAGS = $(OPT) $(EXTRA_LDFLAGS)
SOFLAGS = -shared -Wl,-soname,
SOEXT = so
# System libraries:
SYSLIBS = -lm -ldl $(OSTHREADLIBDIR) $(OSTHREADLIB) \
$(ALLOCLIBDIR) $(ALLOCLIB) -rdynamic
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS = -lm -lncurses -ldl -rdynamic
CRYPTLIBS = -lcrypt
# Fortran:
ifneq ($(findstring gfortran, $(F77)),)
ifeq ($(F77),)
# only needed to get default compiler in ./configure
F77 = gfortran
endif
F77FLAGS = -fPIC -std=legacy
F77LIBS := $(shell $(F77) -print-file-name=libgfortran.$(SOEXT))
F77LIBS += $(shell $(F77) -print-file-name=libgfortranbegin.a) -lnsl
endif
ifneq ($(findstring g77, $(F77)),)
ifeq ($(F77),)
# only needed to get default compiler in ./configure
F77 = g77
endif
F77FLAGS = -fPIC
ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so)
F77LIBS := $(shell $(F77) -print-file-name=libg2c.so) -lnsl
else
F77LIBS := $(shell $(F77) -print-file-name=libg2c.a) -lnsl
endif
endif
# Extras
EXTRA_AUTHFLAGS += -DR__SRP_1_1