xref: /aoo41x/main/solenv/inc/unxhpgr.mk (revision a4f23604)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28
29# mak file fuer unxhpxr
30ASM=
31AFLAGS=
32
33CDEFS+=-D_PTHREADS -D_STD_NO_NAMESPACE -D_VOS_NO_NAMESPACE -D_UNO_NO_NAMESPACE
34CDEFS+=-DSYSV -D_POSIX_PTHREAD_SEMANTICS  -D_HPUX_SOURCE -DRWSTD_MULTI_THREAD -D_REENTRANT -D__HPACC_NOEH -D__STL_NO_EXCEPTIONS
35 #CDEFS+= -D__hppa__
36
37# obernervige Warnungen abschalten
38# 67  = invalid pragma name
39# 251 = An object cannot be deleted using a pointer of type 'void *' since the
40#		type of the object allocated is unknown.
41# 370 = The friend declaration is not in the correct form for either a function or a class.
42#       (future error)
43# 600 = Type specifier is omitted; "int" is no longer assumed.
44DISWARN=+W67,251,370,600
45
46# architecture dependent flags for the C and C++ compiler that can be changed by
47# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
48ARCH_FLAGS*=
49
50#CXX=/opt/aCC/bin/aCC
51#CC=/opt/ansic/bin/cc
52CXX=g++
53CC=gcc
54CFLAGSWALL=-Wall
55CFLAGS=-nostdinc -c
56CFLAGSCC=-pipe -fguiding-decls $(ARCH_FLAGS)
57CFLAGSCXX=-pipe -fguiding-decls $(ARCH_FLAGS)
58PICSWITCH:=-fPIC
59CFLAGSOBJGUIMT=
60CFLAGSOBJCUIMT=
61CFLAGSSLOGUIMT=$(PICSWITCH)
62CFLAGSSLOCUIMT=$(PICSWITCH)
63CFLAGSPROF=
64CFLAGSDEBUG=-g
65CFLAGSDBGUTIL=
66CFLAGSOPT=-O2
67CFLAGSNOOPT=
68CFLAGSOUTOBJ=-o
69
70
71 #THREADLIB=-L/opt/dce/lib -ldce
72# use native aCC to build or link with shared libs, for the sake of
73# global class-instances
74
75STATIC		= -Bstatic
76DYNAMIC		= -Bdynamic
77
78#LINK=$(SOLARENV)/unxhpgr/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.90.29/ld
79LINK=ld
80LINKFLAGS=-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
81LINKFLAGSAPPGUI= /usr/lib/crt0.o
82LINKFLAGSSHLGUI= -b -noinhibit-exec -Bsymbolic -G $(THREADLIB)
83LINKFLAGSAPPCUI= /usr/lib/crt0.o
84LINKFLAGSSHLCUI= -b -noinhibit-exec -warn-once -Bsymbolic -G
85LINKFLAGSTACK=
86APPLINKSTATIC=-Bstatic
87APPLINKSHARED=-Bsymbolic
88APP_LINKTYPE=
89
90# reihenfolge der libs NICHT egal!
91STDOBJGUI=
92STDSLOGUI=
93STDOBJCUI=
94STDSLOCUI=
95#STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
96STDLIBGUIMT= -lX11 -lXext -ldce
97STDLIBCUIMT= -lc_r -lgcc -ldce
98#STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
99STDSHLGUIMT= -lcma -lsec -ldld -lc_r
100STDSHLCUIMT=
101# -L/opt/dce/lib -ldce -lsec -lcxx
102
103LIBMGR=ar
104LIBFLAGS=-r
105# LIBEXT=.so
106
107IMPLIB=
108IMPLIBFLAGS=
109
110MAPSYM=
111MAPSYMFLAGS=
112
113RC=
114RCFLAGS=
115RCLINK=
116RCLINKFLAGS=
117RCSETVERSION=
118
119DLLPOSTFIX=
120DLLPRE=lib
121DLLPOST=.sl
122
123LDUMP=c++filt
124
125.IF "$(PRJNAME)"=="uno" || "$(PRJNAME)"=="vos"
126#CFLAGS += -D_PTHREADS  -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
127#CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
128#CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
129#LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)
130.ENDIF
131
132#SHLLINKARCONLY=yes
133
134