# # arch_spec_readline.mk # # Architecture/site specific makefile fragment # for inclusion by packages that use readline. # # At FNAL readline is distributed with GDB for # non-Linux platforms # # standard definitions ifneq (,$(findstring SunOS5,$(BFARCH))) # use kits gdb product ifdef GDB_DIR override LDFLAGS += -L$(GDB_DIR)/lib else ERROR := $(shell echo please install the kits gdb for readline >& 2 ) endif else ifneq (,$(findstring Linux,$(BFARCH))) # on Linux these are with the other system libraries else ifneq (,$(findstring OSF,$(BFARCH))) # use kits gdb product ifdef GDB_DIR override LDFLAGS += -L$(GDB_DIR)/lib else ERROR := $(shell echo please install the kits gdb for readline >& 2 ) endif else ifneq (,$(findstring IRIX6,$(BFARCH))) # use kits gdb product ifdef GDB_DIR override LDFLAGS += -L$(GDB_DIR)/lib else ERROR := $(shell echo please install the kits gdb for readline >& 2 ) endif else # Nothing found - complain ERROR := $(shell echo Could not match BFARCH: $(BFARCH) for readline >& 2 ) endif endif endif endif ifneq (,$(findstring Linux,$(BFARCH))) override LOADLIBES += -lreadline -lhistory -lcurses else override LOADLIBES += -lreadline -lcurses endif