xref: /aoo41x/main/solenv/inc/unxhpgr.mk (revision cdf0e10c)
1*cdf0e10cSrcweir#*************************************************************************
2*cdf0e10cSrcweir#
3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir#
5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir#
7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir#
9*cdf0e10cSrcweir# This file is part of OpenOffice.org.
10*cdf0e10cSrcweir#
11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir# only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir#
15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir#
21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir# version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir# for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir#
26*cdf0e10cSrcweir#*************************************************************************
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir
29*cdf0e10cSrcweir# mak file fuer unxhpxr
30*cdf0e10cSrcweirASM=
31*cdf0e10cSrcweirAFLAGS=
32*cdf0e10cSrcweir
33*cdf0e10cSrcweirCDEFS+=-D_PTHREADS -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE
34*cdf0e10cSrcweirCDEFS+=-DSYSV -D_POSIX_PTHREAD_SEMANTICS  -D_HPUX_SOURCE -DRWSTD_MULTI_THREAD -D_REENTRANT -D__HPACC_NOEH -D__STL_NO_EXCEPTIONS
35*cdf0e10cSrcweir #CDEFS+= -D__hppa__
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir# obernervige Warnungen abschalten
38*cdf0e10cSrcweir# 67  = invalid pragma name
39*cdf0e10cSrcweir# 251 = An object cannot be deleted using a pointer of type 'void *' since the
40*cdf0e10cSrcweir#		type of the object allocated is unknown.
41*cdf0e10cSrcweir# 370 = The friend declaration is not in the correct form for either a function or a class.
42*cdf0e10cSrcweir#       (future error)
43*cdf0e10cSrcweir# 600 = Type specifier is omitted; "int" is no longer assumed.
44*cdf0e10cSrcweirDISWARN=+W67,251,370,600
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir# architecture dependent flags for the C and C++ compiler that can be changed by
47*cdf0e10cSrcweir# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
48*cdf0e10cSrcweirARCH_FLAGS*=
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir#CXX=/opt/aCC/bin/aCC
51*cdf0e10cSrcweir#CC=/opt/ansic/bin/cc
52*cdf0e10cSrcweirCXX=g++
53*cdf0e10cSrcweirCC=gcc
54*cdf0e10cSrcweirCFLAGSWALL=-Wall
55*cdf0e10cSrcweirCFLAGS=-nostdinc -c
56*cdf0e10cSrcweirCFLAGSCC=-pipe -fguiding-decls $(ARCH_FLAGS)
57*cdf0e10cSrcweirCFLAGSCXX=-pipe -fguiding-decls $(ARCH_FLAGS)
58*cdf0e10cSrcweirPICSWITCH:=-fPIC
59*cdf0e10cSrcweirCFLAGSOBJGUIMT=
60*cdf0e10cSrcweirCFLAGSOBJCUIMT=
61*cdf0e10cSrcweirCFLAGSSLOGUIMT=$(PICSWITCH)
62*cdf0e10cSrcweirCFLAGSSLOCUIMT=$(PICSWITCH)
63*cdf0e10cSrcweirCFLAGSPROF=
64*cdf0e10cSrcweirCFLAGSDEBUG=-g
65*cdf0e10cSrcweirCFLAGSDBGUTIL=
66*cdf0e10cSrcweirCFLAGSOPT=-O2
67*cdf0e10cSrcweirCFLAGSNOOPT=
68*cdf0e10cSrcweirCFLAGSOUTOBJ=-o
69*cdf0e10cSrcweir
70*cdf0e10cSrcweir
71*cdf0e10cSrcweir #THREADLIB=-L/opt/dce/lib -ldce
72*cdf0e10cSrcweir# use native aCC to build or link with shared libs, for the sake of
73*cdf0e10cSrcweir# global class-instances
74*cdf0e10cSrcweir
75*cdf0e10cSrcweirSTATIC		= -Bstatic
76*cdf0e10cSrcweirDYNAMIC		= -Bdynamic
77*cdf0e10cSrcweir
78*cdf0e10cSrcweir#LINK=$(SOLARENV)/unxhpgr/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.90.29/ld
79*cdf0e10cSrcweirLINK=ld
80*cdf0e10cSrcweirLINKFLAGS=-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
81*cdf0e10cSrcweirLINKFLAGSAPPGUI= /usr/lib/crt0.o
82*cdf0e10cSrcweirLINKFLAGSSHLGUI= -b -noinhibit-exec -Bsymbolic -G $(THREADLIB)
83*cdf0e10cSrcweirLINKFLAGSAPPCUI= /usr/lib/crt0.o
84*cdf0e10cSrcweirLINKFLAGSSHLCUI= -b -noinhibit-exec -warn-once -Bsymbolic -G
85*cdf0e10cSrcweirLINKFLAGSTACK=
86*cdf0e10cSrcweirAPPLINKSTATIC=-Bstatic
87*cdf0e10cSrcweirAPPLINKSHARED=-Bsymbolic
88*cdf0e10cSrcweirAPP_LINKTYPE=
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir# reihenfolge der libs NICHT egal!
91*cdf0e10cSrcweirSTDOBJGUI=
92*cdf0e10cSrcweirSTDSLOGUI=
93*cdf0e10cSrcweirSTDOBJCUI=
94*cdf0e10cSrcweirSTDSLOCUI=
95*cdf0e10cSrcweir#STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
96*cdf0e10cSrcweirSTDLIBGUIMT= -lX11 -lXext -ldce
97*cdf0e10cSrcweirSTDLIBCUIMT= -lc_r -lgcc -ldce
98*cdf0e10cSrcweir#STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
99*cdf0e10cSrcweirSTDSHLGUIMT= -lcma -lsec -ldld -lc_r
100*cdf0e10cSrcweirSTDSHLCUIMT=
101*cdf0e10cSrcweir# -L/opt/dce/lib -ldce -lsec -lcxx
102*cdf0e10cSrcweir
103*cdf0e10cSrcweirLIBMGR=ar
104*cdf0e10cSrcweirLIBFLAGS=-r
105*cdf0e10cSrcweir# LIBEXT=.so
106*cdf0e10cSrcweir
107*cdf0e10cSrcweirIMPLIB=
108*cdf0e10cSrcweirIMPLIBFLAGS=
109*cdf0e10cSrcweir
110*cdf0e10cSrcweirMAPSYM=
111*cdf0e10cSrcweirMAPSYMFLAGS=
112*cdf0e10cSrcweir
113*cdf0e10cSrcweirRC=
114*cdf0e10cSrcweirRCFLAGS=
115*cdf0e10cSrcweirRCLINK=
116*cdf0e10cSrcweirRCLINKFLAGS=
117*cdf0e10cSrcweirRCSETVERSION=
118*cdf0e10cSrcweir
119*cdf0e10cSrcweirDLLPOSTFIX=hg
120*cdf0e10cSrcweirDLLPRE=lib
121*cdf0e10cSrcweirDLLPOST=.sl
122*cdf0e10cSrcweir
123*cdf0e10cSrcweirLDUMP=c++filt
124*cdf0e10cSrcweir
125*cdf0e10cSrcweir.IF "$(PRJNAME)"=="uno" || "$(PRJNAME)"=="vos"
126*cdf0e10cSrcweir#CFLAGS += -D_PTHREADS  -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
127*cdf0e10cSrcweir#CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
128*cdf0e10cSrcweir#CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
129*cdf0e10cSrcweir#LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)
130*cdf0e10cSrcweir.ENDIF
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir#SHLLINKARCONLY=yes
133*cdf0e10cSrcweir
134