xref: /aoo42x/main/odk/util/makefile.pmk (revision 0a26ed81)
1e6b7d829SAndrew Rist#**************************************************************
299f4f8deSAriel Constenla-Haile#
3e6b7d829SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4e6b7d829SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5e6b7d829SAndrew Rist#  distributed with this work for additional information
6e6b7d829SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7e6b7d829SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8e6b7d829SAndrew Rist#  "License"); you may not use this file except in compliance
9e6b7d829SAndrew Rist#  with the License.  You may obtain a copy of the License at
1099f4f8deSAriel Constenla-Haile#
11e6b7d829SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
1299f4f8deSAriel Constenla-Haile#
13e6b7d829SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14e6b7d829SAndrew Rist#  software distributed under the License is distributed on an
15e6b7d829SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16e6b7d829SAndrew Rist#  KIND, either express or implied.  See the License for the
17e6b7d829SAndrew Rist#  specific language governing permissions and limitations
18e6b7d829SAndrew Rist#  under the License.
1999f4f8deSAriel Constenla-Haile#
20e6b7d829SAndrew Rist#**************************************************************
21e6b7d829SAndrew Rist
22e6b7d829SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir# used for sdk common files
25*0a26ed81SMatthias SeidelPRODUCT_RELEASE=4.2.0
26599cc5b4SOliver-Rainer WittmannOFFICENAME=OpenOffice
2775b2d2d7SJürgen Schmidt.IF "$(GUI)"=="WNT"
2875b2d2d7SJürgen SchmidtSDKDIRNAME=OpenOffice_$(PRODUCT_RELEASE)_SDK
2975b2d2d7SJürgen Schmidt.ELSE
30599cc5b4SOliver-Rainer WittmannSDKDIRNAME=openoffice$(PRODUCT_RELEASE)_sdk
3175b2d2d7SJürgen Schmidt.ENDIF
32cdf0e10cSrcweirOFFICEPRODUCTNAME=$(OFFICENAME) $(PRODUCT_RELEASE)
33cdf0e10cSrcweirTITLE=$(OFFICENAME) $(PRODUCT_RELEASE) SDK
34cdf0e10cSrcweirIDLDOCREFNAME="$(OFFICENAME) $(PRODUCT_RELEASE) API"
35cdf0e10cSrcweir
36cdf0e10cSrcweir
37cdf0e10cSrcweirPRODUCT_NAME=odkcommon
38cdf0e10cSrcweirPRODUCTZIPFILE=$(PRODUCT_NAME).zip
39cdf0e10cSrcweir
40cdf0e10cSrcweirDESTDIR=$(OUT)/bin/$(PRODUCT_NAME)
41cdf0e10cSrcweirDESTDIRBIN=$(DESTDIR)/bin
42cdf0e10cSrcweirDESTDIRLIB=$(DESTDIR)/lib
43cdf0e10cSrcweirDESTDIRDLL=$(DESTDIRLIB)
44cdf0e10cSrcweirDESTDIRIDL=$(DESTDIR)/idl
45cdf0e10cSrcweirDESTDIRINC=$(DESTDIR)/include
46cdf0e10cSrcweirDESTDIRJAR=$(DESTDIR)/classes
47cdf0e10cSrcweirDESTDIRXML=$(DESTDIR)/xml
48cdf0e10cSrcweirDESTDIRSETTINGS=$(DESTDIR)/settings
49cdf0e10cSrcweirDESTDIREXAMPLES=$(DESTDIR)/examples
50cdf0e10cSrcweirDESTDIRINC=$(DESTDIR)/include
51cdf0e10cSrcweirDESTDIRCLASSES=$(DESTDIR)/classes
52cdf0e10cSrcweirDESTDIRDOCU=$(DESTDIR)/docs
53cdf0e10cSrcweirDESTDIRCOMMONDOCU=$(DESTDIRDOCU)/common
54cdf0e10cSrcweirDESTDIRGENIDLREF=$(DESTDIRCOMMONDOCU)/ref
55cdf0e10cSrcweirDESTDIRDOCUIMAGES=$(DESTDIRDOCU)/images
56cdf0e10cSrcweirDESTDIRCPPDOCU=$(DESTDIRDOCU)/cpp
57cdf0e10cSrcweirDESTDIRGENCPPREF=$(DESTDIRDOCU)/cpp/ref
58cdf0e10cSrcweirDESTDIRJAVADOCU=$(DESTDIRDOCU)/java
59cdf0e10cSrcweirDESTDIRGENJAVAREF=$(DESTDIRDOCU)/java/ref
60cdf0e10cSrcweir
61cdf0e10cSrcweirBINOUT=$(SOLARBINDIR)
62cdf0e10cSrcweirINCOUT=$(SOLARINCDIR)
63cdf0e10cSrcweirIDLOUT=$(SOLARIDLDIR)
64cdf0e10cSrcweirXMLOUT=$(SOLARXMLDIR)
65cdf0e10cSrcweirLIBOUT=$(SOLARLIBDIR)
66cdf0e10cSrcweir
67cdf0e10cSrcweirCONVERTTAGSCRIPT=$(SOLARENV)/bin/converttags.pl
68cdf0e10cSrcweirCONVERTTAGFLAGNAME=converttags_html_files.flag
69cdf0e10cSrcweirCONVERTTAGFLAG = $(MISC)/$(CONVERTTAGFLAGNAME)
70cdf0e10cSrcweir
71cdf0e10cSrcweirMY_AUTODOC=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/autodoc
72cdf0e10cSrcweir
73cdf0e10cSrcweir.IF "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD"
74cdf0e10cSrcweirMY_COPY=$(GNUCOPY)
7562840caaSPedro GiffuniMY_COPY_RECURSIVE=$(GNUCOPY) -R
76cdf0e10cSrcweir.ELSE
77cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
78cdf0e10cSrcweirMY_COPY=$(GNUCOPY)
7962840caaSPedro GiffuniMY_COPY_RECURSIVE=$(GNUCOPY) -R
80cdf0e10cSrcweir.ELSE
81cdf0e10cSrcweirMY_COPY=$(GNUCOPY) -u
82cdf0e10cSrcweirMY_COPY_RECURSIVE=$(GNUCOPY) -urf
83cdf0e10cSrcweir.ENDIF
84cdf0e10cSrcweir.ENDIF
85cdf0e10cSrcweir
86cdf0e10cSrcweirMY_DELETE_RECURSIVE=rm -rf
87cdf0e10cSrcweirMY_TEXTCOPY=@cp
88cdf0e10cSrcweir
89cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
90cdf0e10cSrcweir#--------------------
91cdf0e10cSrcweir# WNT ONLY
92cdf0e10cSrcweir#--------------------
93cdf0e10cSrcweir#MY_DELETE_RECURSIVE=+del /sxyf
94cdf0e10cSrcweir#MY_TEXTCOPY=cat
95cdf0e10cSrcweir
96cdf0e10cSrcweirMY_DLLPREFIX=
97cdf0e10cSrcweirMY_DLLPOSTFIX=.dll
98cdf0e10cSrcweirMY_DLLOUT=$(OUT)/bin
99cdf0e10cSrcweirEXEPOSTFIX=.exe
100cdf0e10cSrcweirDLLOUT=$(SOLARBINDIR)
101cdf0e10cSrcweirDESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp
102cdf0e10cSrcweir
103cdf0e10cSrcweir.IF "$(COM)"=="GCC"
104cdf0e10cSrcweirDESTPLATFROM=mingw
105cdf0e10cSrcweir.ELSE
106cdf0e10cSrcweirDESTPLATFROM=windows
107cdf0e10cSrcweir.ENDIF
108cdf0e10cSrcweirDESTDIRDLL=$(DESTDIRBIN)
109cdf0e10cSrcweirDESTDIRCLI=$(DESTDIR)/cli
110cdf0e10cSrcweir
111cdf0e10cSrcweir.ELSE
112cdf0e10cSrcweir#--------------------
113cdf0e10cSrcweir# UNX ONLYDESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp
114cdf0e10cSrcweir
115cdf0e10cSrcweir#--------------------
116cdf0e10cSrcweir#MY_DELETE_RECURSIVE=rm -rf
117cdf0e10cSrcweir#MY_TEXTCOPY= tr -d "\015"
118cdf0e10cSrcweir
119cdf0e10cSrcweirMY_DLLPREFIX=lib
120cdf0e10cSrcweir.IF "$(OS)"=="MACOSX"
121cdf0e10cSrcweirMY_DLLPOSTFIX=.dylib
122cdf0e10cSrcweir.ELSE
123cdf0e10cSrcweirMY_DLLPOSTFIX=.so
124cdf0e10cSrcweir.ENDIF
125cdf0e10cSrcweirMY_DLLOUT=$(OUT)/lib
126cdf0e10cSrcweirDLLOUT=$(SOLARLIBDIR)
127cdf0e10cSrcweir
128cdf0e10cSrcweir.IF "$(OS)$(CPU)"=="SOLARISS"
129cdf0e10cSrcweir##############
130cdf0e10cSrcweir# SOLARIS SPARC
131cdf0e10cSrcweir##############
132cdf0e10cSrcweirDESTPLATFROM=solsparc
133cdf0e10cSrcweir
134cdf0e10cSrcweir.ELIF "$(OS)$(CPU)"=="SOLARISU"
135cdf0e10cSrcweir##############
136cdf0e10cSrcweir# SOLARIS SPARC 64
137cdf0e10cSrcweir##############
138cdf0e10cSrcweirDESTPLATFROM=solsparc64
139cdf0e10cSrcweir
140cdf0e10cSrcweir.ELIF "$(OS)$(CPU)"=="SOLARISI"
141cdf0e10cSrcweir##########
142cdf0e10cSrcweir# SOLARIS INTEL
143cdf0e10cSrcweir##########
144cdf0e10cSrcweirDESTPLATFROM=solintel
145cdf0e10cSrcweir
146cdf0e10cSrcweir.ELIF "$(OS)"=="LINUX"
147cdf0e10cSrcweir###########
148cdf0e10cSrcweir# LINUX
149cdf0e10cSrcweir###########
150cdf0e10cSrcweirDESTPLATFROM=linux
151cdf0e10cSrcweir
152cdf0e10cSrcweir.ELIF "$(OS)"=="NETBSD"
153cdf0e10cSrcweir###########
154cdf0e10cSrcweir# NETBSD
155cdf0e10cSrcweir###########
156cdf0e10cSrcweirDESTPLATFROM=netbsd
157cdf0e10cSrcweir
158cdf0e10cSrcweir.ELIF "$(OS)"=="FREEBSD"
159cdf0e10cSrcweir###########
160cdf0e10cSrcweir# FREEBSD
161cdf0e10cSrcweir###########
162cdf0e10cSrcweirDESTPLATFROM=freebsd
163cdf0e10cSrcweir
164cdf0e10cSrcweir.ELIF "$(OS)"=="MACOSX"
165cdf0e10cSrcweir###########
166cdf0e10cSrcweir# MACOSX
167cdf0e10cSrcweir###########
168cdf0e10cSrcweirDESTPLATFROM=macosx
169cdf0e10cSrcweir.ENDIF
170cdf0e10cSrcweir
171cdf0e10cSrcweir#DESTDIRBIN=$(DESTDIR)/$(DESTPLATFROM)/bin
172cdf0e10cSrcweir#DESTDIRLIB=$(DESTDIR)/$(DESTPLATFROM)/lib
173cdf0e10cSrcweir#DESTDIRDLL=$(DESTDIRLIB)
174cdf0e10cSrcweir
175cdf0e10cSrcweir.ENDIF
176cdf0e10cSrcweir
177cdf0e10cSrcweir#MY_TEXTCOPY_SOURCEPRE=<
178cdf0e10cSrcweir#MY_TEXTCOPY_TARGETPRE=>
179cdf0e10cSrcweir
180cdf0e10cSrcweir
181cdf0e10cSrcweirINCLUDETOPDIRLIST= \
182cdf0e10cSrcweir	$(INCOUT)/sal \
183cdf0e10cSrcweir	$(INCOUT)/salhelper \
184cdf0e10cSrcweir	$(INCOUT)/rtl \
185cdf0e10cSrcweir	$(INCOUT)/osl \
186cdf0e10cSrcweir	$(INCOUT)/store \
187cdf0e10cSrcweir	$(INCOUT)/typelib \
188cdf0e10cSrcweir	$(INCOUT)/uno \
189cdf0e10cSrcweir	$(INCOUT)/cppu \
190cdf0e10cSrcweir	$(INCOUT)/cppuhelper \
191cdf0e10cSrcweir	$(INCOUT)/registry \
192cdf0e10cSrcweir	$(INCOUT)/stl
193cdf0e10cSrcweir
194cdf0e10cSrcweir.IF "$(GUI)"=="WNT"
195cdf0e10cSrcweirINCLUDETOPDIRLIST += $(INCOUT)/systools
196cdf0e10cSrcweir.ENDIF
197cdf0e10cSrcweir
198cdf0e10cSrcweirINCLUDEDIRLIST:={$(subst,/,/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type d -print))}
199cdf0e10cSrcweir
200cdf0e10cSrcweirINCLUDEFILELIST=\
201cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Any.h \
202cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Any.hxx \
203cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/genfunc.h \
204cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/genfunc.hxx \
205cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Reference.h \
206cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Reference.hxx \
207cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Sequence.h \
208cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Sequence.hxx \
209cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Type.h \
210cdf0e10cSrcweir    $(INCOUT)/com/sun/star/uno/Type.hxx
211cdf0e10cSrcweir
212cdf0e10cSrcweirINCLUDELIST:=\
213cdf0e10cSrcweir	{$(shell @$(FIND) $(INCLUDETOPDIRLIST) -type f ! \( -name "*~" -o -name "*build.lst" -o -name "*deliver.log" \) -print)} \
214cdf0e10cSrcweir	$(INCLUDEFILELIST)
215cdf0e10cSrcweir
216cdf0e10cSrcweirSDK_CONTENT_CHECK_FILES= \
217cdf0e10cSrcweir	$(MISC)/copying_files.txt
218cdf0e10cSrcweir
219cdf0e10cSrcweirSDK_CHECK_FLAGS= \
220cdf0e10cSrcweir	$(MISC)/checkbin.txt \
221cdf0e10cSrcweir	$(MISC)/checkidl.txt \
222cdf0e10cSrcweir	$(MISC)/checkinc.txt \
223cdf0e10cSrcweir	$(MISC)/checkinc2.txt
224