]> git.uio.no Git - u/mrichter/AliRoot.git/blob - build/Makefile.win32gcc
Relocatable compiler position
[u/mrichter/AliRoot.git] / build / Makefile.win32gcc
1 # -*- mode: makefile -*-
2 # Makefile to build AliRoot for Linux
3
4 # System dependent commands
5
6 XARGS = xargs -r
7
8 # The compilers
9 CXX           = $(shell root-config --cxx)
10 F77           = $(shell root-config --f77)
11 CC            = $(shell root-config --cc)
12 CCMAJORV      = $(shell $(CC) -dumpversion | cut -d. -f1)
13 CCMINORV      = $(shell $(CC) -dumpversion | cut -d. -f2)
14
15 # Global optimisation
16 OPT           = -O -g
17 NOOPT         = -g
18
19 CXXOPT        = $(OPT)
20 CXXNOOPT      = $(NOOPT)
21 COPT          = $(OPT)
22 FOPT          = $(OPT)
23
24 # CERNLIB defines
25 CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
26 CLIBCXXOPTS   =
27 CLIBCOPT      =
28 CLIBFOPT      = $(CLIBDEFS)
29
30 # Compiler flags
31 CXXFLAGS       = $(OPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL
32 CXXFLAGSNO     = $(NOOPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL
33 CFLAGS         = $(OPT) -Wall -D_DLL
34 FFLAGS         = $(CLIBFOPT) $(FOPT) -fno-second-underscore
35 # rmkdepend flags for building dependencies of FORTRAN files
36 DEPENDFFLAGS   = $(FFLAGS)
37
38 # rootcint flags
39 CINTFLAGS     = 
40
41 LD            = $(shell root-config --ld)
42 LDFLAGS       = $(OPT) 
43
44 SHLD          = $(LD)
45 SOFLAGS       = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
46 SHLIB         = $(shell root-config --libs) -lg2c
47 SOEXT         = dll
48
49 ALLD          = ar
50 ALFLAGS       = cr
51 ALLIB         = 
52 AEXT          = a
53
54 # additional ROOT libraries
55
56 #System libraries
57 SYSLIBS      := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11
58
59
60
61
62