(file) Return to platform_HPUX_GNU.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

  1 nagaraj.gr 1.1 #//%LICENSE////////////////////////////////////////////////////////////////
  2                #//
  3                #// Licensed to The Open Group (TOG) under one or more contributor license
  4                #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5                #// this work for additional information regarding copyright ownership.
  6                #// Each contributor licenses this file to you under the OpenPegasus Open
  7                #// Source License; you may not use this file except in compliance with the
  8                #// License.
  9                #//
 10                #// Permission is hereby granted, free of charge, to any person obtaining a
 11                #// copy of this software and associated documentation files (the "Software"),
 12                #// to deal in the Software without restriction, including without limitation
 13                #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14                #// and/or sell copies of the Software, and to permit persons to whom the
 15                #// Software is furnished to do so, subject to the following conditions:
 16                #//
 17                #// The above copyright notice and this permission notice shall be included
 18                #// in all copies or substantial portions of the Software.
 19                #//
 20                #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21                #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 nagaraj.gr 1.1 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23                #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24                #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25                #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26                #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27                #//
 28                #//////////////////////////////////////////////////////////////////////////
 29                MAJOR_VERSION_NUMBER = 1
 30                
 31                OS = HPUX
 32                
 33                CC = gcc
 34                
 35                CXX = g++
 36                
 37                COMPILER = gnu
 38                
 39                PLATFORM_VERSION_SUPPORTED = yes
 40                
 41                ifdef PEGASUS_CCOVER
 42                 SYS_INCLUDES += -I/opt/ccover11/include
 43 nagaraj.gr 1.1 endif
 44                
 45                #########################################################################
 46                ##
 47                ## Platform specific compile options controlled by environment variables
 48                ## are set here.
 49                ##
 50                #########################################################################
 51                
 52                # Enable OOP by default if preference not already set in the environment
 53                #
 54                ifndef PEGASUS_DEFAULT_ENABLE_OOP
 55                PEGASUS_DEFAULT_ENABLE_OOP = true
 56                endif
 57                
 58                
 59                
 60                #########################################################################
 61                
 62                DEFINES = -DPEGASUS_PLATFORM_$(PEGASUS_PLATFORM) -DPEGASUS_PLATFORM_HPUX_GNU
 63                
 64 nagaraj.gr 1.1 DEFINES += -DPEGASUS_USE_SYSLOGS
 65                
 66 rahul.kumar.singh 1.2 ifeq ($(PEGASUS_USE_EMANATE), true)
 67 nagaraj.gr        1.1  DEFINES += -DHPUX_EMANATE
 68                       endif
 69                       
 70                       ifdef PEGASUS_CCOVER
 71                        DEFINES += -DPEGASUS_CCOVER
 72                       endif
 73                       
 74                       DEPEND_INCLUDES =
 75                       
 76                       ## Flags:
 77                       ##     +Z - produces position independent code (PIC).
 78                       ##     +DAportable generates code for any HP9000 architecture
 79                       ##     -Wl, passes the following option to the linker
 80                       ##       +s causes the linked image or shared lib to be able to
 81                       ##          search for any referenced shared libs dynamically in
 82                       ##          SHLIB_PATH (LD_LIBRARY_PATH on 64-bit HP9000)
 83                       ##       +b enables dynamic search in the specified directory(ies)
 84                       ##
 85                       
 86                       FLAGS = 
 87                       
 88 nagaraj.gr        1.1 PEGASUS_SUPPORTS_DYNLIB = yes
 89                       
 90                       ifeq ($(HAS_ICU_DEPENDENCY),true)
 91                           ifdef ICU_INSTALL
 92                               P1 = $(ICU_INSTALL)/lib:
 93                            endif
 94                       endif
 95                       
 96                       GNU_LINK_SEARCH_PATH = -Wl,+b$(P1)$(P2)/usr/lib
 97                       
 98                       ifdef PEGASUS_USE_RELEASE_DIRS
 99                           ifeq ($(PEGASUS_PLATFORM), HPUX_PARISC_GNU)
100                               GNU_LINK_SEARCH_PATH += \
101                                   -Wl,+cdp,$(PEGASUS_PLATFORM_SDKROOT)/usr/lib:/usr/lib
102                               GNU_LINK_SEARCH_PATH += \
103                                   -Wl,+cdp,$(PEGASUS_HOME)/lib:$(PEGASUS_DEST_LIB_DIR)
104                               ifdef OPENSSL_HOME
105                                 GNU_LINK_SEARCH_PATH += -Wl,+cdp,$(OPENSSL_HOME)/lib:/usr/lib
106                               endif
107                               ifdef ICU_INSTALL
108                                 GNU_LINK_SEARCH_PATH += \
109 nagaraj.gr        1.1               -Wl,+cdp,$(ICU_INSTALL)/lib:$(PEGASUS_DEST_LIB_DIR)
110                               endif
111                           endif
112                           PEGASUS_DEST_LIB_DIR=/opt/wbem/lib
113                           P2 = $(PEGASUS_DEST_LIB_DIR):
114                       else
115                       	P2 = $(LIB_DIR):
116                       endif
117                       
118                       GNU_LINK_SEARCH_PATH += -Wl,+s
119                       
120                       FLAGS += $(GNU_LINK_SEARCH_PATH)
121                       
122                       ifdef PEGASUS_USE_DEBUG_BUILD_OPTIONS
123                         FLAGS += -g
124                       else
125                         FLAGS += -O2 -s
126                       endif
127                       
128                       SYS_LIBS = -lpthread -lrt
129                       
130 nagaraj.gr        1.1 SH = sh
131                       
132                       YACC = bison
133                       
134                       RM = rm -f
135                       
136                       DIFF = diff
137                       
138                       SORT = sort
139                       
140                       COPY = cp
141                       
142                       MOVE = mv
143                       
144                       LIB_SUFFIX = .$(MAJOR_VERSION_NUMBER)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2