##################################################### # # arch_spec_Motif.mk # # Architecture/site specific makefile fragment # for inclusion by packages that use Motif. # # MOTIF_LIB and MOTIF_INC are environment variables # containing (or optionally loaded with) the # location of the Motif files on the local machine. # # These are then appended to CPPFLAGS and LDFLAGS as # overrides. # ##################################################### # # Lucas Taylor 30/11/1998 # -- first version # -- move Motif to this file from: arch_spec_X11 # ##################################################### ##################################################### # # Set reasonable defaults # ##################################################### MOTIF_INC = /usr/include/X11 MOTIF_LIB = /usr/lib/X11 ##################################################### # # Platform-dependent locations # ##################################################### ifneq (,$(findstring SunOS5,$(BFARCH))) MOTIF_INC = /usr/dt/include MOTIF_LIB = /usr/dt/lib else ifneq (,$(findstring SunOS4,$(BFARCH))) # guess from SunOS5... MOTIF_INC = /usr/dt/include MOTIF_LIB = /usr/dt/lib else ifneq (,$(findstring Linux2,$(BFARCH))) # use standard else ifneq (,$(findstring HP-UX,$(BFARCH))) MOTIF_INC = /usr/dt/include MOTIF_LIB = /usr/dt/lib else ifneq (,$(findstring AIX,$(BFARCH))) # MOTIF_LIB = /usr/lib else ifneq (,$(findstring IRIX6,$(BFARCH))) MOTIF_INC = /usr/include/X11 MOTIF_LIB = /usr/lib/X11 else ifneq (,$(findstring IRIX5,$(BFARCH))) MOTIF_INC = /usr/include/X11 MOTIF_LIB = /usr/lib/X11 else ifneq (,$(findstring OSF,$(BFARCH))) # use standard else # Nothing found - complain ERROR := $(shell echo Could not match BFARCH: $(BFARCH) for X11 >& 2 ) endif endif endif endif endif endif endif endif ##################################################### # # Add flags for include/link directories # ##################################################### override CPPFLAGS += -I$(MOTIF_INC) override LDFLAGS += -L$(MOTIF_LIB) ##################################################### # # Motif libraries # ##################################################### ifneq (,$(findstring SunOS5,$(BFARCH))) override LOADLIBES += -lXm endif ifneq (,$(findstring SunOS4,$(BFARCH))) override LOADLIBES += -lXm endif ifneq (,$(findstring Linux2,$(BFARCH))) # # we don't have it at CERN (yet) # # override LOADLIBES += -lXm endif ifneq (,$(findstring HP-UX,$(BFARCH))) override LOADLIBES += -lXm endif ifneq (,$(findstring AIX,$(BFARCH))) override LOADLIBES += -lXm endif ifneq (,$(findstring IRIX6,$(BFARCH))) override LOADLIBES += -lXm endif ifneq (,$(findstring IRIX5,$(BFARCH))) override LOADLIBES += -lXm endif ifneq (,$(findstring OSF,$(BFARCH))) override LOADLIBES += -lXm endif