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: unxhpxr.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 #*************************************************************************
32 # mak file fuer unxhpxr
36 CDEFS
+=-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
38 # kann c++ was c braucht??
40 # obernervige Warnungen abschalten
41 # 67 = invalid pragma name
42 # 251 = An object cannot be deleted using a pointer of type 'void *' since the
43 # type of the object allocated is unknown.
44 # 370 = The friend declaration is not in the correct form for either a function or a class.
46 # 600 = Type specifier is omitted; "int" is no longer assumed.
47 DISWARN
=+W67
,251,370,600
49 # architecture dependent flags for the C and C++ compiler that can be changed by
50 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
58 CFLAGSCC
= -Aa
+e
+Z
$(ARCH_FLAGS
)
59 CFLAGSCXX
=$(DISWARN
) +Z
$(ARCH_FLAGS
)
72 THREADLIB
=-L
/opt
/dce
/lib
-ldce
73 # use native aCC to build or link with shared libs, for the sake of
74 # global class-instances
77 LINKFLAGSAPPGUI
=-Wl
,+s
78 LINKFLAGSSHLGUI
=-b
-L
/usr
/solar
/lib
-L
/usr
/contrib
/X11R6
/lib
79 LINKFLAGSAPPCUI
=-Wl
,+s
80 LINKFLAGSSHLCUI
=-b
-L
/usr
/contrib
/X11R6
/lib
86 # reihenfolge der libs NICHT egal!
91 #STDLIBGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r -lm
92 STDLIBGUIMT
= -lX11
-lXext
-lpthread
94 #STDSHLGUIMT= -lX11 -lXext -lcma -lsec -lcxx -ldld -lc_r
96 # -L/opt/dce/lib -ldce -lsec -lcxx
120 .IF
"$(WORK_STAMP)"!="MIX364"
127 .IF
"$(PRJNAME)"=="uno" ||
"$(PRJNAME)"=="vos"
128 #CFLAGS += -D_PTHREADS -U_REENTRANT -U_POSIX_PTHREAD_SEMANTICS
129 #CFLAGSSLO += -instances=extern -template=wholeclass -ptr$(SLO)
130 #CFLAGSOBJ += -instances=global -template=wholeclass -ptr$(SLO)
131 #LINKFLAGS+= -temp=/tmp -PIC -instances=extern -ptr$(SLO)