xref: /aoo41x/main/solenv/inc/unxhpgr.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
25# mak file fuer unxhpxr
26ASM=
27AFLAGS=
28
29CDEFS+=-D_PTHREADS -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE
30CDEFS+=-DSYSV -D_POSIX_PTHREAD_SEMANTICS  -D_HPUX_SOURCE -DRWSTD_MULTI_THREAD -D_REENTRANT -D__HPACC_NOEH -D__STL_NO_EXCEPTIONS
31 #CDEFS+= -D__hppa__
32
33# obernervige Warnungen abschalten
34# 67  = invalid pragma name
35# 251 = An object cannot be deleted using a pointer of type 'void *' since the
36#		type of the object allocated is unknown.
37# 370 = The friend declaration is not in the correct form for either a function or a class.
38#       (future error)
39# 600 = Type specifier is omitted; "int" is no longer assumed.
40DISWARN=+W67,251,370,600
41
42# architecture dependent flags for the C and C++ compiler that can be changed by
43# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
44ARCH_FLAGS*=
45
46#CXX=/opt/aCC/bin/aCC
47#CC=/opt/ansic/bin/cc
48CXX=g++
49CC=gcc
50CFLAGSWALL=-Wall
51CFLAGS=-nostdinc -c
52CFLAGSCC=-pipe -fguiding-decls $(ARCH_FLAGS)
53CFLAGSCXX=-pipe -fguiding-decls $(ARCH_FLAGS)
54PICSWITCH:=-fPIC
55CFLAGSOBJGUIMT=
56CFLAGSOBJCUIMT=
57CFLAGSSLOGUIMT=$(PICSWITCH)
58CFLAGSSLOCUIMT=$(PICSWITCH)
59CFLAGSPROF=
60CFLAGSDEBUG=-g
61CFLAGSDBGUTIL=
62CFLAGSOPT=-O2
63CFLAGSNOOPT=
64CFLAGSOUTOBJ=-o
65
66
67 #THREADLIB=-L/opt/dce/lib -ldce
68# use native aCC to build or link with shared libs, for the sake of
69# global class-instances
70
71STATIC		= -Bstatic
72DYNAMIC		= -Bdynamic
73
74#LINK=$(SOLARENV)/unxhpgr/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.90.29/ld
75LINK=ld
76LINKFLAGS=-L/nw386/dev/s/solenv/unxhpgr/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57/threads -L/nw386/dev/s/solenv/unxhpgr/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57
77LINKFLAGSAPPGUI= /usr/lib/crt0.o
78LINKFLAGSSHLGUI= -b -noinhibit-exec -Bsymbolic -G $(THREADLIB)
79LINKFLAGSAPPCUI= /usr/lib/crt0.o
80LINKFLAGSSHLCUI= -b -noinhibit-exec -warn-once -Bsymbolic -G
81LINKFLAGSTACK=
82APPLINKSTATIC=-Bstatic
83APPLINKSHARED=-Bsymbolic
84APP_LINKTYPE=
85
86# reihenfolge der libs NICHT egal!
87STDOBJGUI=
88STDSLOGUI=
89STDOBJCUI=
90STDSLOCUI=
91#STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
92STDLIBGUIMT= -lX11 -lXext -ldce
93STDLIBCUIMT= -lc_r -lgcc -ldce
94#STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
95STDSHLGUIMT= -lcma -lsec -ldld -lc_r
96STDSHLCUIMT=
97# -L/opt/dce/lib -ldce -lsec -lcxx
98
99LIBMGR=ar
100LIBFLAGS=-r
101# LIBEXT=.so
102
103IMPLIB=
104IMPLIBFLAGS=
105
106MAPSYM=
107MAPSYMFLAGS=
108
109RC=
110RCFLAGS=
111RCLINK=
112RCLINKFLAGS=
113RCSETVERSION=
114
115DLLPOSTFIX=
116DLLPRE=lib
117DLLPOST=.sl
118
119LDUMP=c++filt
120
121.IF "$(PRJNAME)"=="uno" || "$(PRJNAME)"=="vos"
122#CFLAGS += -D_PTHREADS  -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
123#CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
124#CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
125#LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)
126.ENDIF
127
128#SHLLINKARCONLY=yes
129
130