# -*- mode: makefile -*- # # Makefile of ROOT for FreeBSD 7.* PLATFORM = fbsd DEBUGFLAGS = -g OPTFLAGS = -O ifeq (debug,$(findstring debug,$(ROOTBUILD))) OPT = $(DEBUGFLAGS) NOOPT = else OPT = $(OPTFLAGS) NOOPT = endif # Compiler: CXX = g++ CC = gcc CXXFLAGS = -pipe -W -Wall -fPIC -I/usr/local/include $(EXTRA_CXXFLAGS) CFLAGS = -pipe -W -Wall -fPIC -I/usr/local/include $(EXTRA_CFLAGS) CINTCXXFLAGS = -pipe -W -Wall -fPIC -DG__REGEXP $(EXTRA_CXXFLAGS) \ -DG__UNIX -DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL CINTCFLAGS = -pipe -W -Wall -fPIC -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \ -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL $(EXTRA_CFLAGS) COMPILER = gnu # Linker: LD = g++ LDFLAGS = $(OPT) $(EXTRA_LDFLAGS) SOFLAGS = -shared -Wl,-x -Wl,-soname, SOEXT = so # System libraries: SYSLIBS = -lstdc++ -lm $(OSTHREADLIBDIR) $(OSTHREADLIB) \ $(ALLOCLIBDIR) $(ALLOCLIB) XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11 -lstdc++ CILIBS = -lm -ltermcap -lstdc++ 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) 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 # Override default in Makefile.config INSTALL := cp -pR INSTALLDATA := cp -pR