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