xref: /aoo41x/main/odk/util/makefile.pmk (revision 63190fb3)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# used for sdk common files
25PRODUCT_RELEASE=4.1.1
26OFFICENAME=OpenOffice
27.IF "$(GUI)"=="WNT"
28SDKDIRNAME=OpenOffice_$(PRODUCT_RELEASE)_SDK
29.ELSE
30SDKDIRNAME=openoffice$(PRODUCT_RELEASE)_sdk
31.ENDIF
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