xref: /aoo41x/main/solenv/inc/unxsogi.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# mk file for unxsogi
29ASM=/usr/ccs/bin/as
30AFLAGS=-P
31
32SOLAR_JAVA=TRUE
33JAVAFLAGSDEBUG=-g
34
35# _PTHREADS is needed for the stl
36CDEFS+=-D_PTHREADS -D_REENTRANT -DSYSV -DSUN -DSUN4 -D_POSIX_PTHREAD_SEMANTICS -DSTLPORT_VERSION=$(STLPORT_VER) -D_USE_NAMESPACE=1
37
38
39.IF "$(SOLAR_JAVA)"!=""
40JAVADEF=-DSOLAR_JAVA
41.IF "$(debug)"==""
42JAVA_RUNTIME=-ljava
43.ELSE
44JAVA_RUNTIME=-ljava_g
45.ENDIF
46.ENDIF
47
48# architecture dependent flags for the C and C++ compiler that can be changed by
49# exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
50ARCH_FLAGS*=
51
52CXX*=g++
53CC*=gcc
54CFLAGS=-c
55CFLAGSCC= -pipe $(ARCH_FLAGS)
56
57CFLAGSEXCEPTIONS=-fexceptions
58CFLAGS_NO_EXCEPTIONS=-fno-exceptions
59
60CFLAGSCXX= -pipe $(ARCH_FLAGS)
61PICSWITCH:=-fPIC
62
63CFLAGSOBJGUIMT=
64CFLAGSOBJCUIMT=
65CFLAGSSLOGUIMT=$(PICSWITCH)
66CFLAGSSLOCUIMT=$(PICSWITCH)
67CFLAGSPROF=
68CFLAGSDEBUG=-g
69CFLAGSDBGUTIL=
70CFLAGSOPT=-O2
71CFLAGSNOOPT=
72CFLAGSOUTOBJ=-o
73
74STATIC		= -Wl,-Bstatic
75DYNAMIC		= -Wl,-Bdynamic
76
77LINK*=$(CXX)
78LINKC*=$(CC)
79
80LINKFLAGS=
81LINKFLAGSAPPGUI=-Wl,-export-dynamic
82LINKFLAGSSHLGUI=-shared
83LINKFLAGSAPPCUI=-Wl,-export-dynamic
84LINKFLAGSSHLCUI=-shared
85LINKFLAGSTACK=
86LINKFLAGSPROF=
87LINKFLAGSDEBUG=-g
88LINKFLAGSOPT=
89
90LINKVERSIONMAPFLAG=-Wl,--version-script
91
92# enable visibility define in "sal/types.h"
93.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
94CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
95.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
96
97# Reihenfolge der libs NICHT egal!
98
99STDLIBCPP=-lstdc++
100
101STDOBJVCL=$(L)/salmain.o
102STDOBJGUI=
103STDSLOGUI=
104STDOBJCUI=
105STDSLOCUI=
106
107STDLIBGUIMT=$(DYNAMIC) -lpthread -lthread -lm
108STDLIBCUIMT=$(DYNAMIC) -lpthread -lthread -lm
109# libraries for linking shared libraries
110STDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm
111STDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm
112
113STDLIBGUIMT+=-lX11
114
115.IF "$(STLPORT_VER)" >= "500"
116LIBSTLPORT=$(DYNAMIC) -lstlport
117LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
118.ELSE
119LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
120LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
121.ENDIF
122
123LIBMGR=ar
124LIBFLAGS=-r
125# LIBEXT=.so
126
127IMPLIB=
128IMPLIBFLAGS=
129
130MAPSYM=
131MAPSYMFLAGS=
132
133RC=irc
134RCFLAGS=-fo$@ $(RCFILES)
135RCLINK=
136RCLINKFLAGS=
137RCSETVERSION=
138
139DLLPOSTFIX=
140DLLPRE=lib
141DLLPOST=.so
142