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: makefile.pmk,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 # used for sdk common files
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
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"
79 MY_COPY_RECURSIVE=$(GNUCOPY) -r
83 MY_COPY_RECURSIVE=$(GNUCOPY) -r
86 MY_COPY_RECURSIVE=$(GNUCOPY) -urf
94 MY_DELETE_RECURSIVE=+del /sxyf
101 DLLOUT=$(SOLARBINDIR)
102 DESTDIRCPPEXAMPLES=$(DESTDIR)$/examples$/cpp
109 DESTDIRDLL=$(DESTDIRBIN)
110 DESTDIRCLI=$(DESTDIR)$/cli
113 #--------------------
114 # UNX ONLYDESTDIRCPPEXAMPLES=$(DESTDIR)$/examples$/cpp
116 #--------------------
117 MY_DELETE_RECURSIVE=rm -rf
118 MY_TEXTCOPY= tr -d "\015"
121 .IF "$(OS)"=="MACOSX"
126 MY_DLLOUT=$(OUT)$/lib
127 DLLOUT=$(SOLARLIBDIR)
129 .IF "$(OS)$(CPU)"=="SOLARISS"
133 DESTPLATFROM=solsparc
135 .ELIF "$(OS)$(CPU)"=="SOLARISU"
139 DESTPLATFROM=solsparc64
141 .ELIF "$(OS)$(CPU)"=="SOLARISI"
145 DESTPLATFROM=solintel
147 .ELIF "$(OS)"=="LINUX"
153 .ELIF "$(OS)"=="NETBSD"
159 .ELIF "$(OS)"=="FREEBSD"
165 .ELIF "$(OS)"=="IRIX"
171 .ELIF "$(OS)"=="MACOSX"
178 #DESTDIRBIN=$(DESTDIR)$/$(DESTPLATFROM)$/bin
179 #DESTDIRLIB=$(DESTDIR)$/$(DESTPLATFROM)$/lib
180 #DESTDIRDLL=$(DESTDIRLIB)
184 MY_TEXTCOPY_SOURCEPRE=<
185 MY_TEXTCOPY_TARGETPRE=>
190 $(INCOUT)$/salhelper \
197 $(INCOUT)$/cppuhelper \
199 $(INCOUT)$/registry \
203 INCLUDETOPDIRLIST += $(INCOUT)$/systools
206 INCLUDEDIRLIST:={$(subst,/,$/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type d -print))}
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
231 {$(subst,/,$/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type f ! $(QOB) -name "*~" -o -name "*build.lst" -o -name "*deliver.log" $(QCB) -print))} \
234 SDK_CONTENT_CHECK_FILES= \
235 $(MISC)$/copying_files.txt
238 $(MISC)$/checkbin.txt \
239 $(MISC)$/checkidl.txt \
240 $(MISC)$/checkinc.txt \
241 $(MISC)$/checkinc2.txt