xref: /aoo41x/main/solenv/inc/unxsogs.mk (revision cdf0e10c)
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 unxsogs
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
62CFLAGSOBJGUIMT=
63CFLAGSOBJCUIMT=
64CFLAGSSLOGUIMT=$(PICSWITCH)
65CFLAGSSLOCUIMT=$(PICSWITCH)
66CFLAGSPROF=
67CFLAGSDEBUG=-g
68CFLAGSDBGUTIL=
69CFLAGSOPT=-O2
70CFLAGSNOOPT=
71CFLAGSOUTOBJ=-o
72
73STATIC		= -Wl,-Bstatic
74DYNAMIC		= -Wl,-Bdynamic
75
76LINK*=$(CXX)
77LINKC*=$(CC)
78
79LINKFLAGS=
80LINKFLAGSAPPGUI=-Wl,-export-dynamic
81LINKFLAGSSHLGUI=-shared
82LINKFLAGSAPPCUI=-Wl,-export-dynamic
83LINKFLAGSSHLCUI=-shared
84LINKFLAGSTACK=
85LINKFLAGSPROF=
86LINKFLAGSDEBUG=-g
87LINKFLAGSOPT=
88
89LINKVERSIONMAPFLAG=-Wl,--version-script
90
91# enable visibility define in "sal/types.h"
92.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
93CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
94.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
95
96# Reihenfolge der libs NICHT egal!
97
98STDLIBCPP=-lstdc++
99
100STDOBJVCL=$(L)/salmain.o
101STDOBJGUI=
102STDSLOGUI=
103STDOBJCUI=
104STDSLOCUI=
105
106STDLIBGUIMT=$(DYNAMIC) -lpthread -lthread -lm
107STDLIBCUIMT=$(DYNAMIC) -lpthread -lthread -lm
108# libraries for linking shared libraries
109STDSHLGUIMT=$(DYNAMIC) -lpthread -lthread -lm
110STDSHLCUIMT=$(DYNAMIC) -lpthread -lthread -lm
111
112STDLIBGUIMT+=-lX11
113
114.IF "$(STLPORT_VER)" >= "500"
115LIBSTLPORT=$(DYNAMIC) -lstlport
116LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC)
117.ELSE
118LIBSTLPORT=$(DYNAMIC) -lstlport_gcc
119LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC)
120.ENDIF
121
122LIBMGR=ar
123LIBFLAGS=-r
124# LIBEXT=.so
125
126IMPLIB=
127IMPLIBFLAGS=
128
129MAPSYM=
130MAPSYMFLAGS=
131
132RC=irc
133RCFLAGS=-fo$@ $(RCFILES)
134RCLINK=
135RCLINKFLAGS=
136RCSETVERSION=
137
138DLLPOSTFIX=sogs
139DLLPRE=lib
140DLLPOST=.so
141