48 lines
2.0 KiB
Makefile
48 lines
2.0 KiB
Makefile
# ******************************************************************************
|
|
# * 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 = SGI
|
|
|
|
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 = CC
|
|
CXXFLAGS = $(CXXEXTRA) $(CXXINCLUDES) $(CDEVINCLUDES) $(OS_VERSION_DEF) $(DEBUGFLAG)
|
|
PIC = -DSHM
|
|
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 = $(CXX) -c $(CXXFLAGS) $(PIC) $^ -o $@
|
|
LINK.cc = rm -rf $@; echo "=> $(CXX) -o $(@F) $(^F)";$(CXX) $(CXXFLAGS) $(CXXEXTRA) $^ -o $@ $(CDEVLIBS) $(OSLIBS)
|