ROOT 2.21/08 Linux egcs

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Tue Mar 23 1999 - 15:36:36 MET


Hi,
Please find attached a modified version of the Makefile.linuxegcs. It
solves some [ known :-) ] problems :
	1. make dies trying to link the "rootd" - the definition of
	   CRYPTLIBS was missing
	2. solves buid problems for "h2root" and "g2root" - g77 related
	   variables were missing, note that in order to get these two
	   utilities linked, one needs to get two libraries ( if one
	   doesn't have the full CERNLIB installed ) - libpacklib.a and
	   libkernlib.a - place them in  $(ROOTSYS)/lib - I took the
	   CERNLIB release 99. Note also - one needs to rebuild these
	   utilities "manually" doing "make $ROOTSYS/bin/h2root" and
	   "make $ROOTSYS/bin/g2root"
	3. all executables know where to get shared libraries from ( no
	   need to set LD_LIBRARY_PATH )
Unsolved problems :
	1. make dies trying to create "proofd" - no wonder, no sources for
	   "proofd" included in ROOT 2.21/08 source distribution :-)
Jacek.


# Makefile of ROOT for Linux with glibc and egcs ( RH5.2 and egcs-1.1.2 )
EGCS          = /opt/egcs/pro
# CERNLIB release 99 ( only libpacklib.a and libkernlib.a are needed )
CERNLIB       = $(ROOTSYS)/lib

PLATFORM      = linux

CXX           = g++
CC            = egcs
CXXFLAGS      = -Wall -fPIC -DR__GLIBC -fno-rtti -fno-exceptions
CFLAGS        = -Wall -fPIC -DR__GLIBC
CINTCXXFLAGS  = -Wall -fPIC -fno-rtti -fno-exceptions -DG__REGEXP \
                -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO
CINTCFLAGS    = -Wall -fPIC -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
                -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO
OPT           = -g -O2
NOOPT         = $(OPT)
LD            = g++
LDFLAGS       = $(OPT) -Wl,-rpath,$(EGCS)/lib:$(ROOTSYS)/lib
SOFLAGS       = -shared -Wl,-soname,
SOEXT         = so
SYSLIBS       = -lm -ldl -rdynamic
SYSXLIBS      = -L/usr/X11R6/lib -lX11 -lm -ldl -rdynamic
XLIBS         = $(ROOTSYS)/lib/libXpm.a -L/usr/X11R6/lib -lX11
CILIBS        = -lm -ltermcap -lbsd -ldl -rdynamic
CRYPTLIBS     = -lcrypt
F77           = g77
F77FLAGS      = $(OPT) -fno-automatic -fno-second-underscore -fugly-complex
F77LIBS       = -lg2c


##### MACROS and TARGETS #####

include Make-macros


##### DEPENDENCIES #####

include Make-depend



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:30 MET