xref: /aoo42x/main/solenv/inc/unxhpxr.mk (revision 7871dc3e)
1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir# mak file fuer unxhpxr
25cdf0e10cSrcweirASM=
26cdf0e10cSrcweirAFLAGS=
27cdf0e10cSrcweir
28cdf0e10cSrcweirCDEFS+=-D_PTHREADS -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE -DSYSV -D_POSIX_PTHREAD_SEMANTICS  -D_HPUX_SOURCE -DRWSTD_MULTI_THREAD -D_REENTRANT -D__HPACC_NOEH -D__STL_NO_EXCEPTIONS
29cdf0e10cSrcweir
30cdf0e10cSrcweir# kann c++ was c braucht??
31cdf0e10cSrcweir
32cdf0e10cSrcweir# obernervige Warnungen abschalten
33cdf0e10cSrcweir# 67  = invalid pragma name
34cdf0e10cSrcweir# 251 = An object cannot be deleted using a pointer of type 'void *' since the
35cdf0e10cSrcweir#		type of the object allocated is unknown.
36cdf0e10cSrcweir# 370 = The friend declaration is not in the correct form for either a function or a class.
37cdf0e10cSrcweir#       (future error)
38cdf0e10cSrcweir# 600 = Type specifier is omitted; "int" is no longer assumed.
39cdf0e10cSrcweirDISWARN=+W67,251,370,600
40cdf0e10cSrcweir
41cdf0e10cSrcweir# architecture dependent flags for the C and C++ compiler that can be changed by
42cdf0e10cSrcweir# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
43cdf0e10cSrcweirARCH_FLAGS*=
44cdf0e10cSrcweir
45cdf0e10cSrcweir#CXX=/opt/aCC/bin/aCC
46cdf0e10cSrcweir#CC=/opt/ansic/bin/cc
47cdf0e10cSrcweirCXX=aCC
48cdf0e10cSrcweirCC=cc
49cdf0e10cSrcweirCFLAGS= -c
50cdf0e10cSrcweirCFLAGSCC= -Aa +e +Z $(ARCH_FLAGS)
51cdf0e10cSrcweirCFLAGSCXX=$(DISWARN) +Z $(ARCH_FLAGS)
52cdf0e10cSrcweirCFLAGSOBJGUIMT=
53cdf0e10cSrcweirCFLAGSOBJCUIMT=
54cdf0e10cSrcweirCFLAGSSLOGUIMT=
55cdf0e10cSrcweirCFLAGSSLOCUIMT=
56cdf0e10cSrcweirCFLAGSPROF=
57cdf0e10cSrcweirCFLAGSDEBUG=-g
58cdf0e10cSrcweirCFLAGSDBGUTIL=
59cdf0e10cSrcweirCFLAGSOPT=-O
60cdf0e10cSrcweirCFLAGSNOOPT=
61cdf0e10cSrcweirCFLAGSOUTOBJ=-o
62cdf0e10cSrcweir
63cdf0e10cSrcweir
64cdf0e10cSrcweirTHREADLIB=-L/opt/dce/lib -ldce
65cdf0e10cSrcweir# use native aCC to build or link with shared libs, for the sake of
66cdf0e10cSrcweir# global class-instances
67cdf0e10cSrcweirLINK=/opt/aCC/bin/aCC
68cdf0e10cSrcweirLINKFLAGS=
69cdf0e10cSrcweirLINKFLAGSAPPGUI=-Wl,+s
70cdf0e10cSrcweirLINKFLAGSSHLGUI=-b -L/usr/solar/lib -L/usr/contrib/X11R6/lib
71cdf0e10cSrcweirLINKFLAGSAPPCUI=-Wl,+s
72cdf0e10cSrcweirLINKFLAGSSHLCUI=-b -L/usr/contrib/X11R6/lib
73cdf0e10cSrcweirLINKFLAGSTACK=
74cdf0e10cSrcweirLINKFLAGSPROF=
75cdf0e10cSrcweirLINKFLAGSDEBUG=
76cdf0e10cSrcweirLINKFLAGSOPT=
77cdf0e10cSrcweir
78cdf0e10cSrcweir# reihenfolge der libs NICHT egal!
79cdf0e10cSrcweirSTDOBJGUI=
80cdf0e10cSrcweirSTDSLOGUI=
81cdf0e10cSrcweirSTDOBJCUI=
82cdf0e10cSrcweirSTDSLOCUI=
83cdf0e10cSrcweir#STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
84cdf0e10cSrcweirSTDLIBGUIMT= -lX11 -lXext -lpthread
85cdf0e10cSrcweirSTDLIBCUIMT= -lcma
86cdf0e10cSrcweir#STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
87cdf0e10cSrcweirSTDSHLCUIMT=
88cdf0e10cSrcweir# -L/opt/dce/lib -ldce -lsec -lcxx
89cdf0e10cSrcweir
90cdf0e10cSrcweirLIBMGR=ar
91cdf0e10cSrcweirLIBFLAGS=-r
92cdf0e10cSrcweir# LIBEXT=.so
93cdf0e10cSrcweir
94cdf0e10cSrcweirIMPLIB=
95cdf0e10cSrcweirIMPLIBFLAGS=
96cdf0e10cSrcweir
97cdf0e10cSrcweirMAPSYM=
98cdf0e10cSrcweirMAPSYMFLAGS=
99cdf0e10cSrcweir
100cdf0e10cSrcweirRC=
101cdf0e10cSrcweirRCFLAGS=
102cdf0e10cSrcweirRCLINK=
103cdf0e10cSrcweirRCLINKFLAGS=
104cdf0e10cSrcweirRCSETVERSION=
105cdf0e10cSrcweir
106a4f23604SHerbert DürrDLLPOSTFIX=
107cdf0e10cSrcweirDLLPRE=lib
108cdf0e10cSrcweirDLLPOST=.sl
109cdf0e10cSrcweir
110cdf0e10cSrcweirLDUMP=c++filt
111cdf0e10cSrcweir
112cdf0e10cSrcweir.IF "$(PRJNAME)"=="uno" || "$(PRJNAME)"=="vos"
113cdf0e10cSrcweir#CFLAGS += -D_PTHREADS  -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
114cdf0e10cSrcweir#CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
115cdf0e10cSrcweir#CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
116cdf0e10cSrcweir#LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)
117cdf0e10cSrcweir.ENDIF
118cdf0e10cSrcweir
119cdf0e10cSrcweir#SHLLINKARCONLY=yes
120cdf0e10cSrcweir
121