xref: /aoo41x/main/solenv/inc/unxhpxr.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# mak file fuer unxhpxr
25ASM=
26AFLAGS=
27
28CDEFS+=-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
29
30# kann c++ was c braucht??
31
32# obernervige Warnungen abschalten
33# 67  = invalid pragma name
34# 251 = An object cannot be deleted using a pointer of type 'void *' since the
35#		type of the object allocated is unknown.
36# 370 = The friend declaration is not in the correct form for either a function or a class.
37#       (future error)
38# 600 = Type specifier is omitted; "int" is no longer assumed.
39DISWARN=+W67,251,370,600
40
41# architecture dependent flags for the C and C++ compiler that can be changed by
42# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
43ARCH_FLAGS*=
44
45#CXX=/opt/aCC/bin/aCC
46#CC=/opt/ansic/bin/cc
47CXX=aCC
48CC=cc
49CFLAGS= -c
50CFLAGSCC= -Aa +e +Z $(ARCH_FLAGS)
51CFLAGSCXX=$(DISWARN) +Z $(ARCH_FLAGS)
52CFLAGSOBJGUIMT=
53CFLAGSOBJCUIMT=
54CFLAGSSLOGUIMT=
55CFLAGSSLOCUIMT=
56CFLAGSPROF=
57CFLAGSDEBUG=-g
58CFLAGSDBGUTIL=
59CFLAGSOPT=-O
60CFLAGSNOOPT=
61CFLAGSOUTOBJ=-o
62
63
64THREADLIB=-L/opt/dce/lib -ldce
65# use native aCC to build or link with shared libs, for the sake of
66# global class-instances
67LINK=/opt/aCC/bin/aCC
68LINKFLAGS=
69LINKFLAGSAPPGUI=-Wl,+s
70LINKFLAGSSHLGUI=-b -L/usr/solar/lib -L/usr/contrib/X11R6/lib
71LINKFLAGSAPPCUI=-Wl,+s
72LINKFLAGSSHLCUI=-b -L/usr/contrib/X11R6/lib
73LINKFLAGSTACK=
74LINKFLAGSPROF=
75LINKFLAGSDEBUG=
76LINKFLAGSOPT=
77
78# reihenfolge der libs NICHT egal!
79STDOBJGUI=
80STDSLOGUI=
81STDOBJCUI=
82STDSLOCUI=
83#STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
84STDLIBGUIMT= -lX11 -lXext -lpthread
85STDLIBCUIMT= -lcma
86#STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
87STDSHLCUIMT=
88# -L/opt/dce/lib -ldce -lsec -lcxx
89
90LIBMGR=ar
91LIBFLAGS=-r
92# LIBEXT=.so
93
94IMPLIB=
95IMPLIBFLAGS=
96
97MAPSYM=
98MAPSYMFLAGS=
99
100RC=
101RCFLAGS=
102RCLINK=
103RCLINKFLAGS=
104RCSETVERSION=
105
106DLLPOSTFIX=
107DLLPRE=lib
108DLLPOST=.sl
109
110LDUMP=c++filt
111
112.IF "$(PRJNAME)"=="uno" || "$(PRJNAME)"=="vos"
113#CFLAGS += -D_PTHREADS  -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
114#CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
115#CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
116#LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)
117.ENDIF
118
119#SHLLINKARCONLY=yes
120
121