# # arch_spec_cern.mk # # Architecture/site specific makefile fragment # for inclusion by packages that use cern. # # CERN_INC and CERN_LIB are environment variables # containing (or optionally loaded with) the # location of the cern files on the local machine. # # These are then appended to CPPFLAGS and LDFLAGS as overrides. # # The list of cern libraries to link to is appended to LOADLIBES. # # Robert Harris, Jan 9 97, point cern at upgrade disk # Robert Harris, Jun 8 97, point cern at official area # ifndef CERN_DIR CERN_INC = /usr/local/include CERN_LIB = /usr/local/lib else ifndef CERN_INC CERN_INC = $(CERN_DIR)/inc endif ifndef CERN_LIB CERN_LIB = $(CERN_DIR)/lib endif endif #if using PACKAGELIST be more picky so we don't get lots of 84,85 warnings ifdef PACKAGELIST CERNPAK := ifneq ($(LINK_pawlib),) override CERNPAK += -lpawlib endif ifneq ($(LINK_graflib),) override CERNPAK += -lgraflib endif ifneq ($(LINK_grafX11lib),) override CERNPAK += -lgrafX11 override LINK_X11 += grafX11lib endif ifneq ($(LINK_pdflib),) override CERNPAK += -lpdflib endif ifneq ($(LINK_packlib),) override CERNPAK += -lpacklib ifneq (,$(findstring CYGWIN,$(BFARCH))) override CERNPAK += -lnt_dummy override LDFLAGS += -NTLinclude:__matherr endif endif ifneq ($(LINK_mathlib),) override CERNPAK += -lmathlib endif ifneq ($(LINK_kernlib),) override CERNPAK += -lkernlib endif else CERNPAK := -lpawlib -lgraflib -lgrafX11 -lpdflib -lpacklib -lmathlib -lkernlib ifneq (,$(findstring CYGWIN,$(BFARCH))) override CERNPAK += -lnt_dummy override LDFLAGS += -NTLinclude:__matherr endif endif override CPPFLAGS += -I$(CERN_INC) -DCERNLIB_TYPE override LDFLAGS += -L$(CERN_LIB) override LOADLIBES += $(CERNPAK) ifneq (,$(findstring Linux,$(BFARCH))) override LOADLIBES += -lcrypt endif