xref: /aoo42x/main/odk/util/makefile.pmk (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# used for sdk common files
29PRODUCT_RELEASE=3.4
30OFFICENAME=OpenOffice.org
31SDKDIRNAME=openoffice.org$(PRODUCT_RELEASE)_sdk
32OFFICEPRODUCTNAME=$(OFFICENAME) $(PRODUCT_RELEASE)
33TITLE=$(OFFICENAME) $(PRODUCT_RELEASE) SDK
34IDLDOCREFNAME="$(OFFICENAME) $(PRODUCT_RELEASE) API"
35
36
37PRODUCT_NAME=odkcommon
38PRODUCTZIPFILE=$(PRODUCT_NAME).zip
39
40DESTDIR=$(OUT)/bin/$(PRODUCT_NAME)
41DESTDIRBIN=$(DESTDIR)/bin
42DESTDIRLIB=$(DESTDIR)/lib
43DESTDIRDLL=$(DESTDIRLIB)
44DESTDIRIDL=$(DESTDIR)/idl
45DESTDIRINC=$(DESTDIR)/include
46DESTDIRJAR=$(DESTDIR)/classes
47DESTDIRXML=$(DESTDIR)/xml
48DESTDIRSETTINGS=$(DESTDIR)/settings
49DESTDIREXAMPLES=$(DESTDIR)/examples
50DESTDIRINC=$(DESTDIR)/include
51DESTDIRCLASSES=$(DESTDIR)/classes
52DESTDIRDOCU=$(DESTDIR)/docs
53DESTDIRCOMMONDOCU=$(DESTDIRDOCU)/common
54DESTDIRGENIDLREF=$(DESTDIRCOMMONDOCU)/ref
55DESTDIRDOCUIMAGES=$(DESTDIRDOCU)/images
56DESTDIRCPPDOCU=$(DESTDIRDOCU)/cpp
57DESTDIRGENCPPREF=$(DESTDIRDOCU)/cpp/ref
58DESTDIRJAVADOCU=$(DESTDIRDOCU)/java
59DESTDIRGENJAVAREF=$(DESTDIRDOCU)/java/ref
60
61BINOUT=$(SOLARBINDIR)
62INCOUT=$(SOLARINCDIR)
63IDLOUT=$(SOLARIDLDIR)
64XMLOUT=$(SOLARXMLDIR)
65LIBOUT=$(SOLARLIBDIR)
66
67CONVERTTAGSCRIPT=$(SOLARENV)/bin/converttags.pl
68CONVERTTAGFLAGNAME=converttags_html_files.flag
69CONVERTTAGFLAG = $(MISC)/$(CONVERTTAGFLAGNAME)
70
71MY_AUTODOC=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/autodoc
72
73.IF "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD"
74MY_COPY=$(GNUCOPY)
75MY_COPY_RECURSIVE=$(GNUCOPY) -r
76.ELSE
77.IF "$(OS)"=="MACOSX"
78MY_COPY=$(GNUCOPY)
79MY_COPY_RECURSIVE=$(GNUCOPY) -r
80.ELSE
81MY_COPY=$(GNUCOPY) -u
82MY_COPY_RECURSIVE=$(GNUCOPY) -urf
83.ENDIF
84.ENDIF
85
86MY_DELETE_RECURSIVE=rm -rf
87MY_TEXTCOPY=@cp
88
89.IF "$(GUI)"=="WNT"
90#--------------------
91# WNT ONLY
92#--------------------
93#MY_DELETE_RECURSIVE=+del /sxyf
94#MY_TEXTCOPY=cat
95
96MY_DLLPREFIX=
97MY_DLLPOSTFIX=.dll
98MY_DLLOUT=$(OUT)/bin
99EXEPOSTFIX=.exe
100DLLOUT=$(SOLARBINDIR)
101DESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp
102
103.IF "$(COM)"=="GCC"
104DESTPLATFROM=mingw
105.ELSE
106DESTPLATFROM=windows
107.ENDIF
108DESTDIRDLL=$(DESTDIRBIN)
109DESTDIRCLI=$(DESTDIR)/cli
110
111.ELSE
112#--------------------
113# UNX ONLYDESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp
114
115#--------------------
116#MY_DELETE_RECURSIVE=rm -rf
117#MY_TEXTCOPY= tr -d "\015"
118
119MY_DLLPREFIX=lib
120.IF "$(OS)"=="MACOSX"
121MY_DLLPOSTFIX=.dylib
122.ELSE
123MY_DLLPOSTFIX=.so
124.ENDIF
125MY_DLLOUT=$(OUT)/lib
126DLLOUT=$(SOLARLIBDIR)
127
128.IF "$(OS)$(CPU)"=="SOLARISS"
129##############
130# SOLARIS SPARC
131##############
132DESTPLATFROM=solsparc
133
134.ELIF "$(OS)$(CPU)"=="SOLARISU"
135##############
136# SOLARIS SPARC 64
137##############
138DESTPLATFROM=solsparc64
139
140.ELIF "$(OS)$(CPU)"=="SOLARISI"
141##########
142# SOLARIS INTEL
143##########
144DESTPLATFROM=solintel
145
146.ELIF "$(OS)"=="LINUX"
147###########
148# LINUX
149###########
150DESTPLATFROM=linux
151
152.ELIF "$(OS)"=="NETBSD"
153###########
154# NETBSD
155###########
156DESTPLATFROM=netbsd
157
158.ELIF "$(OS)"=="FREEBSD"
159###########
160# FREEBSD
161###########
162DESTPLATFROM=freebsd
163
164.ELIF "$(OS)"=="MACOSX"
165###########
166# MACOSX
167###########
168DESTPLATFROM=macosx
169.ENDIF
170
171#DESTDIRBIN=$(DESTDIR)/$(DESTPLATFROM)/bin
172#DESTDIRLIB=$(DESTDIR)/$(DESTPLATFROM)/lib
173#DESTDIRDLL=$(DESTDIRLIB)
174
175.ENDIF
176
177#MY_TEXTCOPY_SOURCEPRE=<
178#MY_TEXTCOPY_TARGETPRE=>
179
180
181INCLUDETOPDIRLIST= \
182	$(INCOUT)/sal \
183	$(INCOUT)/salhelper \
184	$(INCOUT)/rtl \
185	$(INCOUT)/osl \
186	$(INCOUT)/store \
187	$(INCOUT)/typelib \
188	$(INCOUT)/uno \
189	$(INCOUT)/cppu \
190	$(INCOUT)/cppuhelper \
191	$(INCOUT)/registry \
192	$(INCOUT)/stl
193
194.IF "$(GUI)"=="WNT"
195INCLUDETOPDIRLIST += $(INCOUT)/systools
196.ENDIF
197
198INCLUDEDIRLIST:={$(subst,/,/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type d -print))}
199
200INCLUDEFILELIST=\
201    $(INCOUT)/com/sun/star/uno/Any.h \
202    $(INCOUT)/com/sun/star/uno/Any.hxx \
203    $(INCOUT)/com/sun/star/uno/genfunc.h \
204    $(INCOUT)/com/sun/star/uno/genfunc.hxx \
205    $(INCOUT)/com/sun/star/uno/Reference.h \
206    $(INCOUT)/com/sun/star/uno/Reference.hxx \
207    $(INCOUT)/com/sun/star/uno/Sequence.h \
208    $(INCOUT)/com/sun/star/uno/Sequence.hxx \
209    $(INCOUT)/com/sun/star/uno/Type.h \
210    $(INCOUT)/com/sun/star/uno/Type.hxx
211
212INCLUDELIST:=\
213	{$(shell @$(FIND) $(INCLUDETOPDIRLIST) -type f ! \( -name "*~" -o -name "*build.lst" -o -name "*deliver.log" \) -print)} \
214	$(INCLUDEFILELIST)
215
216SDK_CONTENT_CHECK_FILES= \
217	$(MISC)/copying_files.txt
218
219SDK_CHECK_FLAGS= \
220	$(MISC)/checkbin.txt \
221	$(MISC)/checkidl.txt \
222	$(MISC)/checkinc.txt \
223	$(MISC)/checkinc2.txt
224