# # hppa_hpux_10.20.mk - make variables and rules specific to HPUX 10.20 # HPUX = 1 HppaProcessor = 1 # # Python set-up # # You must set a path to a Python 1.5.2 interpreter. #PYTHON = /usr/local/bin/python # # Include general unix things # include $(THIS_IMPORT_TREE)/mk/unix.mk # # Replacements for implicit rules # %.o: %.c $(CC) -c $(CFLAGS) -o $@ $< %.o: %.cc $(CXX) -c $(CXXFLAGS) -ldir $< -o $@ # -ldir is for compiling templates # # # C preprocessor macro definitions for this architecture # IMPORT_CPPFLAGS += -D__hppa__ -D__hpux__ -D__OSVERSION__=10 # # Standard programs # AR = ar cq RANLIB = ranlib MKDIRHIER = mkdir -p INSTALL = $(BASE_OMNI_TREE)/bin/scripts/install-sh -c INSTLIBFLAGS = -m 0755 # shared library must have executable flag set. CPP = /lib/cpp ############################################################################# # To use aCC uncomment the following lines: # ############################################################################# # Tested on: # HP aC++ B3910B A.01.04 # HP aC++ B3910B A.01.01 Support Library # CXX = aCC CXXMAKEDEPEND += -D__cplusplus CXXDEBUGFLAGS = -O2 CXXOPTIONS += +inst_v +DAportable -D_CMA_NOWRAPPERS_ CXXLINK = $(CXX) CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) -Wl,+s CC = cc CDEBUGFLAGS = -O2 COPTIONS = -Aa -D_HPUX_SOURCE +DAportable CLINKOPTIONS = -Wl,+s CLINK = $(CC) # In order to compile Templates # Override the default StaticLinkLibrary in unix.mk # define StaticLinkLibrary (set -x; \ $(RM) $@; \ $(CXX) -c +inst_close $^; \ $(AR) $@ $^; \ $(RANLIB) $@; \ ) endef ############################################################################ # To use gcc uncomment the following lines: # ############################################################################ #CXX = g++ #CXXMAKEDEPEND += -D__cplusplus -D__GNUG__ -D__GNUC__ #CXXDEBUGFLAGS = # -D_CMA_NOWRAPPERS_ is needed otherwise linking omniNames results in # /opt/aCC/lbin/ld: Unsatisfied symbols: # fstreambase::cma_close(void)(code) #CXXOPTIONS = -fhandle-exceptions -Wall -Wno-unused \ # -D_CMA_NOWRAPPERS_ #CXXLINK = $(CXX) # # Is GCCEXTRALINKOPTIONS necessary in a normal gcc setup? - SLL # #GCCEXTRALINKOPTIONS = -L/opt/gcc/lib/gcc -lg++ #CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(GCCEXTRALINKOPTIONS) # #PURIFY = purify -g++ -collector=/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.7.2.1/ld \ # -ignore-unknown-subspaces=yes -chain-length=18 \ # -show-directory=yes -show-pc=yes -show-pc-offset=yes # #CC = gcc #CMAKEDEPEND += __GNUC__ #CDEBUGFLAGS = -O #COPTIONS = $(CDEBUGFLAGS) $(COPTIONS) \ # $(patsubst %,-Wl$(comma)-rpath$(comma)%,$(IMPORT_LIBRARY_DIRS)) #CLINKOPTIONS = #CLINK = $(CC) # # Socket library # SOCKET_LIB = THREAD_LIB = # # CORBA stuff # CorbaImplementation = OMNIORB # # OMNI thread stuff # ThreadSystem = Posix OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=4 OMNITHREAD_CPPFLAGS = -D_REENTRANT OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread) -ldce -lcma HPTHREADLIBS = -ldce -lcma lib_depend := $(patsubst %,$(LibPattern),omnithread) OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND) # Default location of the omniORB configuration file [falls back to this if # the environment variable OMNIORB_CONFIG is not set] : OMNIORB_CONFIG_DEFAULT_LOCATION = /etc/omniORB.cfg # Default directory for the omniNames log files. OMNINAMES_LOG_DEFAULT_LOCATION = /var/omninames # # Shared Library support. # # Platform specific customerisation. # everything else is default from unix.mk # SHAREDLIB_SUFFIX = sl ifeq ($(notdir $(CXX)),aCC) BuildSharedLibrary = 1 SHAREDLIB_CPPFLAGS += +Z SharedLibraryPlatformLinkFlagsTemplate = -b -Wl,+h$$soname # May need $(patsubst %,-L %,$(IMPORT_LIBRARY_DIRS)) ifeq ($(notdir $(CC)),gcc) SHAREDLIB_CFLAGS = -fPIC endif endif