Update ooo320-m1
[ooovba.git] / odk / util / makefile.pmk
blob57604f81b05c73a140586621831a5d30c8970fb5
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.pmk,v $
11 # $Revision: 1.58 $
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 # used for sdk common files
33 PRODUCT_RELEASE=3.2
34 OFFICENAME=OpenOffice.org
35 SDKDIRNAME=openoffice.org$(PRODUCT_RELEASE)_sdk
36 OFFICEPRODUCTNAME=$(OFFICENAME) $(PRODUCT_RELEASE)
37 TITLE=$(OFFICENAME) $(PRODUCT_RELEASE) SDK
38 IDLDOCREFNAME="$(OFFICENAME) $(PRODUCT_RELEASE) API"
41 PRODUCT_NAME=odkcommon
42 PRODUCTZIPFILE=$(PRODUCT_NAME).zip
44 DESTDIR=$(OUT)$/bin$/$(PRODUCT_NAME)
45 DESTDIRBIN=$(DESTDIR)$/bin
46 DESTDIRLIB=$(DESTDIR)$/lib
47 DESTDIRDLL=$(DESTDIRLIB)
48 DESTDIRIDL=$(DESTDIR)$/idl
49 DESTDIRINC=$(DESTDIR)$/include
50 DESTDIRJAR=$(DESTDIR)$/classes
51 DESTDIRXML=$(DESTDIR)$/xml
52 DESTDIRSETTINGS=$(DESTDIR)$/settings
53 DESTDIREXAMPLES=$(DESTDIR)$/examples
54 DESTDIRINC=$(DESTDIR)$/include
55 DESTDIRCLASSES=$(DESTDIR)$/classes
56 DESTDIRDOCU=$(DESTDIR)$/docs
57 DESTDIRCOMMONDOCU=$(DESTDIRDOCU)$/common
58 DESTDIRGENIDLREF=$(DESTDIRCOMMONDOCU)$/ref
59 DESTDIRDOCUIMAGES=$(DESTDIRDOCU)$/images
60 DESTDIRCPPDOCU=$(DESTDIRDOCU)$/cpp
61 DESTDIRGENCPPREF=$(DESTDIRDOCU)$/cpp$/ref
62 DESTDIRJAVADOCU=$(DESTDIRDOCU)$/java
63 DESTDIRGENJAVAREF=$(DESTDIRDOCU)$/java$/ref
65 BINOUT=$(SOLARBINDIR)
66 INCOUT=$(SOLARINCDIR)
67 IDLOUT=$(SOLARIDLDIR)
68 XMLOUT=$(SOLARXMLDIR)
69 LIBOUT=$(SOLARLIBDIR)
71 CONVERTTAGSCRIPT=$(SOLARENV)$/bin$/converttags.pl
72 CONVERTTAGFLAGNAME=converttags_html_files.flag
73 CONVERTTAGFLAG = $(MISC)$/$(CONVERTTAGFLAGNAME)
75 MY_AUTODOC=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)$/autodoc
77 .IF "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD"
78 MY_COPY=$(GNUCOPY)
79 MY_COPY_RECURSIVE=$(GNUCOPY) -r
80 .ELSE
81 .IF "$(OS)"=="MACOSX"
82 MY_COPY=$(GNUCOPY)
83 MY_COPY_RECURSIVE=$(GNUCOPY) -r
84 .ELSE
85 MY_COPY=$(GNUCOPY) -u
86 MY_COPY_RECURSIVE=$(GNUCOPY) -urf
87 .ENDIF
88 .ENDIF
90 .IF "$(GUI)"=="WNT"
91 #--------------------
92 # WNT ONLY
93 #--------------------
94 MY_DELETE_RECURSIVE=+del /sxyf
95 MY_TEXTCOPY=cat
97 MY_DLLPREFIX=
98 MY_DLLPOSTFIX=.dll
99 MY_DLLOUT=$(OUT)$/bin
100 EXEPOSTFIX=.exe
101 DLLOUT=$(SOLARBINDIR)
102 DESTDIRCPPEXAMPLES=$(DESTDIR)$/examples$/cpp
104 .IF "$(COM)"=="GCC"
105 DESTPLATFROM=mingw
106 .ELSE
107 DESTPLATFROM=windows
108 .ENDIF
109 DESTDIRDLL=$(DESTDIRBIN)
110 DESTDIRCLI=$(DESTDIR)$/cli
112 .ELSE
113 #--------------------
114 # UNX ONLYDESTDIRCPPEXAMPLES=$(DESTDIR)$/examples$/cpp
116 #--------------------
117 MY_DELETE_RECURSIVE=rm -rf
118 MY_TEXTCOPY= tr -d "\015"
120 MY_DLLPREFIX=lib
121 .IF "$(OS)"=="MACOSX"
122 MY_DLLPOSTFIX=.dylib
123 .ELSE
124 MY_DLLPOSTFIX=.so
125 .ENDIF
126 MY_DLLOUT=$(OUT)$/lib
127 DLLOUT=$(SOLARLIBDIR)
129 .IF "$(OS)$(CPU)"=="SOLARISS"
130 ##############
131 # SOLARIS SPARC
132 ##############
133 DESTPLATFROM=solsparc
135 .ELIF "$(OS)$(CPU)"=="SOLARISU"
136 ##############
137 # SOLARIS SPARC 64
138 ##############
139 DESTPLATFROM=solsparc64
141 .ELIF "$(OS)$(CPU)"=="SOLARISI"
142 ##########
143 # SOLARIS INTEL
144 ##########
145 DESTPLATFROM=solintel
147 .ELIF "$(OS)"=="LINUX"
148 ###########
149 # LINUX
150 ###########
151 DESTPLATFROM=linux
153 .ELIF "$(OS)"=="NETBSD"
154 ###########
155 # NETBSD
156 ###########
157 DESTPLATFROM=netbsd
159 .ELIF "$(OS)"=="FREEBSD"
160 ###########
161 # FREEBSD
162 ###########
163 DESTPLATFROM=freebsd
165 .ELIF "$(OS)"=="IRIX"
166 ###########
167 # IRIX
168 ###########
169 DESTPLATFROM=irix
171 .ELIF "$(OS)"=="MACOSX"
172 ###########
173 # MACOSX
174 ###########
175 DESTPLATFROM=macosx
176 .ENDIF
178 #DESTDIRBIN=$(DESTDIR)$/$(DESTPLATFROM)$/bin
179 #DESTDIRLIB=$(DESTDIR)$/$(DESTPLATFROM)$/lib
180 #DESTDIRDLL=$(DESTDIRLIB)
182 .ENDIF
184 MY_TEXTCOPY_SOURCEPRE=<
185 MY_TEXTCOPY_TARGETPRE=>
188 INCLUDETOPDIRLIST= \
189     $(INCOUT)$/sal \
190     $(INCOUT)$/salhelper \
191     $(INCOUT)$/rtl \
192     $(INCOUT)$/osl \
193     $(INCOUT)$/store \
194     $(INCOUT)$/typelib \
195     $(INCOUT)$/uno \
196     $(INCOUT)$/cppu \
197     $(INCOUT)$/cppuhelper \
198     $(INCOUT)$/bridges \
199     $(INCOUT)$/registry \
200     $(INCOUT)$/stl
202 .IF "$(GUI)"=="WNT"
203 INCLUDETOPDIRLIST += $(INCOUT)$/systools
204 .ENDIF
206 INCLUDEDIRLIST:={$(subst,/,$/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type d -print))}
208 INCLUDEFILELIST=\
209     $(INCOUT)$/com$/sun$/star$/uno$/Any.h \
210     $(INCOUT)$/com$/sun$/star$/uno$/Any.hxx \
211     $(INCOUT)$/com$/sun$/star$/uno$/genfunc.h \
212     $(INCOUT)$/com$/sun$/star$/uno$/genfunc.hxx \
213     $(INCOUT)$/com$/sun$/star$/uno$/Reference.h \
214     $(INCOUT)$/com$/sun$/star$/uno$/Reference.hxx \
215     $(INCOUT)$/com$/sun$/star$/uno$/Sequence.h \
216     $(INCOUT)$/com$/sun$/star$/uno$/Sequence.hxx \
217     $(INCOUT)$/com$/sun$/star$/uno$/Type.h \
218     $(INCOUT)$/com$/sun$/star$/uno$/Type.hxx
220 .IF "$(USE_SHELL)"=="4nt"
221 # Quoted Open Bracket -QOB
222 # Quoted Close Bracket -QCB
223 QOB=(
224 QCB=)
225 .ELSE
226 QOB=\(
227 QCB=\)
228 .ENDIF
230 INCLUDELIST:=\
231     {$(subst,/,$/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type f ! $(QOB) -name "*~" -o -name "*build.lst" -o -name "*deliver.log" $(QCB) -print))} \
232     $(INCLUDEFILELIST)
234 SDK_CONTENT_CHECK_FILES= \
235     $(MISC)$/copying_files.txt
237 SDK_CHECK_FLAGS= \
238     $(MISC)$/checkbin.txt \
239     $(MISC)$/checkidl.txt \
240     $(MISC)$/checkinc.txt \
241     $(MISC)$/checkinc2.txt