# # arch_spec_fortmain.mk # # Architecture/site specific makefile fragment # for inclusion by packages that use a fortran main program with # g++ for linking. # # include this to get LOADLIBES extended as needed. FLOADLIBES is used in # front of LOADLIBES in the link file for a mixed fortran/C++ link. This # file must be followed by an include of # arch_spec_f77.mk # # Bob Jacobsen, Oct 95 # # ifneq (,$(findstring SunOS5,$(BFARCH))) # Also known as Solaris else ifneq (,$(findstring SunOS4,$(BFARCH))) # Nothing needed; link will pick up proper main # else ifneq (,$(findstring AIX,$(BFARCH))) # g++ may or may not provide these, esp. crt0.o override FLOADLIBES += /lib/crt0.o /usr/lib/glink.o else ifneq (,$(findstring HP-UX,$(BFARCH))) # nothing needed; link wil lpick up the proper main else ifneq (,$(findstring OSF,$(BFARCH))) override FLOADLIBES += /usr/lib/cmplrs/fort/for_main.o # because it uses the f90 compiler, LBNL uses the following line # override FLOADLIBES += /usr/lib/cmplrs/fort90/for_main.o else ifneq (,$(findstring IRIX5,$(BFARCH))) # it is not known if anything is needed for this platform else ifneq (,$(findstring IRIX6,$(BFARCH))) # it is not known if anything is needed for this platform else # Nothing found - complain ERROR := $(shell echo Could not match BFARCH: $(BFARCH) for f77 libs >& 2 ) endif endif endif endif endif endif endif