1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: unxhpgr.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
33 # mak file fuer unxhpxr
37 CDEFS
+=-D_PTHREADS
-D_STD_NO_NAMESPACE
-D_VOS_NO_NAMESPACE
-D_UNO_NO_NAMESPACE
38 CDEFS
+=-DSYSV
-D_POSIX_PTHREAD_SEMANTICS
-D_HPUX_SOURCE
-DRWSTD_MULTI_THREAD
-D_REENTRANT
-D__HPACC_NOEH
-D__STL_NO_EXCEPTIONS
41 # obernervige Warnungen abschalten
42 # 67 = invalid pragma name
43 # 251 = An object cannot be deleted using a pointer of type 'void *' since the
44 # type of the object allocated is unknown.
45 # 370 = The friend declaration is not in the correct form for either a function or a class.
47 # 600 = Type specifier is omitted; "int" is no longer assumed.
48 DISWARN
=+W67
,251,370,600
50 # architecture dependent flags for the C and C++ compiler that can be changed by
51 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
60 CFLAGSCC
=-pipe
-fguiding-decls
$(ARCH_FLAGS
)
61 CFLAGSCXX
=-pipe
-fguiding-decls
$(ARCH_FLAGS
)
65 CFLAGSSLOGUIMT
=$(PICSWITCH
)
66 CFLAGSSLOCUIMT
=$(PICSWITCH
)
75 #THREADLIB=-L/opt/dce/lib -ldce
76 # use native aCC to build or link with shared libs, for the sake of
77 # global class-instances
82 #LINK=$(SOLARENV)/unxhpgr/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.90.29/ld
84 LINKFLAGS
=-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
85 LINKFLAGSAPPGUI
= /usr
/lib
/crt0.o
86 LINKFLAGSSHLGUI
= -b
-noinhibit-exec
-Bsymbolic
-G
$(THREADLIB
)
87 LINKFLAGSAPPCUI
= /usr
/lib
/crt0.o
88 LINKFLAGSSHLCUI
= -b
-noinhibit-exec
-warn-once
-Bsymbolic
-G
90 APPLINKSTATIC
=-Bstatic
91 APPLINKSHARED
=-Bsymbolic
94 # reihenfolge der libs NICHT egal!
99 #STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
100 STDLIBGUIMT
= -lX11
-lXext
-ldce
101 STDLIBCUIMT
= -lc_r
-lgcc
-ldce
102 #STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
103 STDSHLGUIMT
= -lcma
-lsec
-ldld
-lc_r
105 # -L/opt/dce/lib -ldce -lsec -lcxx
129 .IF
"$(PRJNAME)"=="uno" ||
"$(PRJNAME)"=="vos"
130 #CFLAGS += -D_PTHREADS -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
131 #CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
132 #CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
133 #LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)