# ****************************************************************************** # * Makefile.hpux : This is the platform specific Makefile for HPUX. # * # * Externals : This Makefile relies on the developer defining the # * following external definitions... # * # * CDEV : The base directory of the CDEV distribution # ****************************************************************************** TARGET = ULTRIX include $(CDEV)/include/makeinclude/Makefile.common include $(CDEV)/include/makeinclude/Makefile.archive # ****************************************************************************** # * Platform specific compile and link options. # ****************************************************************************** # ****************************************************************************** # * Only define the DEBUGFLAG if DEBUG has been specified by the caller. # ****************************************************************************** ifdef DEBUG DEBUGFLAG = -g endif CXX = g++ CXXFLAGS = $(CXXEXTRA) $(CXXINCLUDES) $(CDEVINCLUDES) $(OS_VERSION_DEF) $(DEBUGFLAG) PIC = OSLIBS = -lm # ****************************************************************************** # * These definitions define the names and locations of libraries that are # * required by CDEV for a shared and archive applications. # ****************************************************************************** ifeq ($(SHOBJ), NO) CDEVLIBS = $(CDEVLIB)/libcdev.a $(ARCHIVELIBS) else CDEVLIBS = -L$(CDEVLIB) -lcdev endif # ****************************************************************************** # * Platform specific compile and link macros. # ****************************************************************************** COMPILE.cc = $(CXX) -c $(CXXFLAGS) $^ -o $@ COMPILE.cc.so = @echo "Shared Object Compilation is NOT Supported on ULTRIX" LINK.cc = rm -rf $@; echo "=> $(CXX) -o $(@F) $(^F)";$(CXX) $(CXXFLAGS) $(CXXEXTRA) $^ -o $@ $(CDEVLIBS) $(OSLIBS)