https://github.com/root-project/root
Tip revision: 432cba63e3322322a4347c28407c55a535f9f9b7 authored by Unknown Author on 11 March 2003, 16:59:48 UTC
This commit was manufactured by cvs2svn to create tag 'v3-05-03'.
This commit was manufactured by cvs2svn to create tag 'v3-05-03'.
Tip revision: 432cba6
Module.mk
# Module.mk for main module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := main
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
MAINDIR := $(MODDIR)
MAINDIRS := $(MAINDIR)/src
MAINDIRI := $(MAINDIR)/inc
MAINDIRW := $(MAINDIR)/win32
##### root.exe #####
ROOTEXES := $(MODDIRS)/rmain.cxx
ROOTEXEO := $(ROOTEXES:.cxx=.o)
ROOTEXEDEP := $(ROOTEXEO:.o=.d)
ROOTEXE := bin/root.exe
ROOTNEXE := bin/rootn.exe
ifeq ($(PLATFORM),win32)
ROOTICON := icons/RootIcon.obj
endif
##### proofserv #####
PROOFSERVS := $(MODDIRS)/pmain.cxx
PROOFSERVO := $(PROOFSERVS:.cxx=.o)
PROOFSERVDEP := $(PROOFSERVO:.o=.d)
PROOFSERV := bin/proofserv$(EXEEXT)
##### hadd #####
HADDS := $(MODDIRS)/hadd.cxx
HADDO := $(HADDS:.cxx=.o)
HADDDEP := $(HADDO:.o=.d)
HADD := bin/hadd$(EXEEXT)
##### h2root #####
H2ROOTS1 := $(MODDIRS)/h2root.cxx
H2ROOTS2 := $(HBOOKS2)
# 2003.01.29
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
#
# Symbols in cfopei.obj is already provided in packmd.lib,
#
#H2ROOTS3 := $(wildcard $(MAINDIRW)/*.c)
H2ROOTS3 := $(filter-out $(MAINDIRW)/cfopei.c, $(wildcard $(MAINDIRW)/*.c))
H2ROOTS4 := $(MAINDIRW)/tzvers.f
H2ROOTO := $(H2ROOTS1:.cxx=.o) $(H2ROOTS2:.f=.o)
ifeq ($(PLATFORM),win32)
H2ROOTO += $(H2ROOTS3:.c=.o) $(H2ROOTS4:.f=.o)
endif
H2ROOTDEP := $(H2ROOTS1:.cxx=.d)
H2ROOT := bin/h2root$(EXEEXT)
##### g2root #####
G2ROOTS := $(MODDIRS)/g2root.f
G2ROOTO := $(G2ROOTS:.f=.o)
ifeq ($(PLATFORM),win32)
G2ROOTO += $(H2ROOTS3:.c=.o) $(H2ROOTS4:.f=.o)
endif
G2ROOT := bin/g2root$(EXEEXT)
##### g2rootold #####
G2ROOTOLDS := $(MODDIRS)/g2rootold.f
G2ROOTOLDO := $(G2ROOTOLDS:.f=.o)
ifeq ($(PLATFORM),win32)
G2ROOTOLDO += $(H2ROOTS3:.c=.o) $(H2ROOTS4:.f=.o)
endif
G2ROOTOLD := bin/g2rootold$(EXEEXT)
# used in the main Makefile
ALLEXECS += $(ROOTEXE) $(ROOTNEXE) $(PROOFSERV) $(HADD)
ifneq ($(CERNLIBS),)
ALLEXECS += $(H2ROOT) $(G2ROOT) $(G2ROOTOLD)
endif
# include all dependency files
INCLUDEFILES += $(ROOTEXEDEP) $(PROOFSERVDEP) $(HADDDEP) $(H2ROOTDEP)
##### local rules #####
$(ROOTEXE): $(ROOTEXEO) $(CORELIB) $(CINTLIB) $(HISTLIB) \
$(GRAFLIB) $(G3DLIB) $(TREELIB) $(MATRIXLIB) $(RINTLIB)
$(LD) $(LDFLAGS) -o $@ $(ROOTEXEO) $(ROOTICON) \
$(RPATH) $(ROOTLIBS) $(RINTLIBS) $(SYSLIBS)
$(ROOTNEXE): $(ROOTEXEO) $(NEWLIB) $(CORELIB) $(CINTLIB) $(HISTLIB) \
$(GRAFLIB) $(G3DLIB) $(TREELIB) $(MATRIXLIB) $(RINTLIB)
$(LD) $(LDFLAGS) -o $@ $(ROOTEXEO) $(ROOTICON) \
$(RPATH) $(NEWLIBS) $(ROOTLIBS) $(RINTLIBS) $(SYSLIBS)
$(PROOFSERV): $(PROOFSERVO) $(CORELIB) $(CINTLIB) $(HISTLIB) \
$(GRAFLIB) $(G3DLIB) $(TREELIB) $(MATRIXLIB) $(PROOFLIB)
$(LD) $(LDFLAGS) -o $@ $(PROOFSERVO) \
$(RPATH) $(ROOTLIBS) $(PROOFLIBS) $(SYSLIBS)
$(HADD): $(HADDO) $(CORELIB) $(CINTLIB) $(HISTLIB) \
$(GRAFLIB) $(G3DLIB) $(TREELIB) $(MATRIXLIB)
$(LD) $(LDFLAGS) -o $@ $(HADDO) $(RPATH) $(ROOTLIBS) $(SYSLIBS)
$(H2ROOT): $(H2ROOTO) $(CORELIB) $(CINTLIB) $(HISTLIB) \
$(GRAFLIB) $(G3DLIB) $(TREELIB) $(MATRIXLIB)
$(LD) $(LDFLAGS) -o $@ $(H2ROOTO) \
$(RPATH) $(ROOTLIBS) \
$(CERNLIBDIR) $(CERNLIBS) $(RFIOLIBEXTRA) $(SHIFTLIBDIR) \
$(SHIFTLIB) $(F77LIBS) $(SYSLIBS)
$(G2ROOT): $(G2ROOTO)
$(F77LD) $(F77LDFLAGS) -o $@ $(G2ROOTO) \
$(CERNLIBDIR) $(CERNLIBS) $(RFIOLIBEXTRA) $(SHIFTLIBDIR) \
$(SHIFTLIB) $(F77LIBS) $(SYSLIBS)
$(G2ROOTOLD): $(G2ROOTOLDO)
$(F77LD) $(F77LDFLAGS) -o $@ $(G2ROOTOLDO) \
$(CERNLIBDIR) $(CERNLIBS) $(RFIOLIBEXTRA) $(SHIFTLIBDIR) \
$(SHIFTLIB) $(F77LIBS) $(SYSLIBS)
ifneq ($(CERNLIBS),)
all-main: $(ROOTEXE) $(ROOTNEXE) $(PROOFSERV) $(HADD) $(H2ROOT) $(G2ROOT) $(G2ROOTOLD)
else
all-main: $(ROOTEXE) $(ROOTNEXE) $(PROOFSERV) $(HADD)
endif
clean-main:
@rm -f $(ROOTEXEO) $(PROOFSERVO) $(HADDO) $(H2ROOTO) $(G2ROOTO) $(G2ROOTOLDO)
clean:: clean-main
distclean-main: clean-main
@rm -f $(ROOTEXEDEP) $(ROOTEXE) $(ROOTNEXE) $(PROOFSERVDEP) \
$(PROOFSERV) $(HADDDEP) $(HADD) $(H2ROOTDEP) $(H2ROOT) \
$(G2ROOT) $(G2ROOTOLD)
distclean:: distclean-main