1e6b7d829SAndrew Rist#************************************************************** 2*99f4f8deSAriel 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 10*99f4f8deSAriel Constenla-Haile# 11e6b7d829SAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*99f4f8deSAriel 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. 19*99f4f8deSAriel Constenla-Haile# 20e6b7d829SAndrew Rist#************************************************************** 21e6b7d829SAndrew Rist 22e6b7d829SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir# used for sdk common files 25*99f4f8deSAriel Constenla-HailePRODUCT_RELEASE=3.5 26cdf0e10cSrcweirOFFICENAME=OpenOffice.org 27cdf0e10cSrcweirSDKDIRNAME=openoffice.org$(PRODUCT_RELEASE)_sdk 28cdf0e10cSrcweirOFFICEPRODUCTNAME=$(OFFICENAME) $(PRODUCT_RELEASE) 29cdf0e10cSrcweirTITLE=$(OFFICENAME) $(PRODUCT_RELEASE) SDK 30cdf0e10cSrcweirIDLDOCREFNAME="$(OFFICENAME) $(PRODUCT_RELEASE) API" 31cdf0e10cSrcweir 32cdf0e10cSrcweir 33cdf0e10cSrcweirPRODUCT_NAME=odkcommon 34cdf0e10cSrcweirPRODUCTZIPFILE=$(PRODUCT_NAME).zip 35cdf0e10cSrcweir 36cdf0e10cSrcweirDESTDIR=$(OUT)/bin/$(PRODUCT_NAME) 37cdf0e10cSrcweirDESTDIRBIN=$(DESTDIR)/bin 38cdf0e10cSrcweirDESTDIRLIB=$(DESTDIR)/lib 39cdf0e10cSrcweirDESTDIRDLL=$(DESTDIRLIB) 40cdf0e10cSrcweirDESTDIRIDL=$(DESTDIR)/idl 41cdf0e10cSrcweirDESTDIRINC=$(DESTDIR)/include 42cdf0e10cSrcweirDESTDIRJAR=$(DESTDIR)/classes 43cdf0e10cSrcweirDESTDIRXML=$(DESTDIR)/xml 44cdf0e10cSrcweirDESTDIRSETTINGS=$(DESTDIR)/settings 45cdf0e10cSrcweirDESTDIREXAMPLES=$(DESTDIR)/examples 46cdf0e10cSrcweirDESTDIRINC=$(DESTDIR)/include 47cdf0e10cSrcweirDESTDIRCLASSES=$(DESTDIR)/classes 48cdf0e10cSrcweirDESTDIRDOCU=$(DESTDIR)/docs 49cdf0e10cSrcweirDESTDIRCOMMONDOCU=$(DESTDIRDOCU)/common 50cdf0e10cSrcweirDESTDIRGENIDLREF=$(DESTDIRCOMMONDOCU)/ref 51cdf0e10cSrcweirDESTDIRDOCUIMAGES=$(DESTDIRDOCU)/images 52cdf0e10cSrcweirDESTDIRCPPDOCU=$(DESTDIRDOCU)/cpp 53cdf0e10cSrcweirDESTDIRGENCPPREF=$(DESTDIRDOCU)/cpp/ref 54cdf0e10cSrcweirDESTDIRJAVADOCU=$(DESTDIRDOCU)/java 55cdf0e10cSrcweirDESTDIRGENJAVAREF=$(DESTDIRDOCU)/java/ref 56cdf0e10cSrcweir 57cdf0e10cSrcweirBINOUT=$(SOLARBINDIR) 58cdf0e10cSrcweirINCOUT=$(SOLARINCDIR) 59cdf0e10cSrcweirIDLOUT=$(SOLARIDLDIR) 60cdf0e10cSrcweirXMLOUT=$(SOLARXMLDIR) 61cdf0e10cSrcweirLIBOUT=$(SOLARLIBDIR) 62cdf0e10cSrcweir 63cdf0e10cSrcweirCONVERTTAGSCRIPT=$(SOLARENV)/bin/converttags.pl 64cdf0e10cSrcweirCONVERTTAGFLAGNAME=converttags_html_files.flag 65cdf0e10cSrcweirCONVERTTAGFLAG = $(MISC)/$(CONVERTTAGFLAGNAME) 66cdf0e10cSrcweir 67cdf0e10cSrcweirMY_AUTODOC=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/autodoc 68cdf0e10cSrcweir 69cdf0e10cSrcweir.IF "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" 70cdf0e10cSrcweirMY_COPY=$(GNUCOPY) 7162840caaSPedro GiffuniMY_COPY_RECURSIVE=$(GNUCOPY) -R 72cdf0e10cSrcweir.ELSE 73cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 74cdf0e10cSrcweirMY_COPY=$(GNUCOPY) 7562840caaSPedro GiffuniMY_COPY_RECURSIVE=$(GNUCOPY) -R 76cdf0e10cSrcweir.ELSE 77cdf0e10cSrcweirMY_COPY=$(GNUCOPY) -u 78cdf0e10cSrcweirMY_COPY_RECURSIVE=$(GNUCOPY) -urf 79cdf0e10cSrcweir.ENDIF 80cdf0e10cSrcweir.ENDIF 81cdf0e10cSrcweir 82cdf0e10cSrcweirMY_DELETE_RECURSIVE=rm -rf 83cdf0e10cSrcweirMY_TEXTCOPY=@cp 84cdf0e10cSrcweir 85cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 86cdf0e10cSrcweir#-------------------- 87cdf0e10cSrcweir# WNT ONLY 88cdf0e10cSrcweir#-------------------- 89cdf0e10cSrcweir#MY_DELETE_RECURSIVE=+del /sxyf 90cdf0e10cSrcweir#MY_TEXTCOPY=cat 91cdf0e10cSrcweir 92cdf0e10cSrcweirMY_DLLPREFIX= 93cdf0e10cSrcweirMY_DLLPOSTFIX=.dll 94cdf0e10cSrcweirMY_DLLOUT=$(OUT)/bin 95cdf0e10cSrcweirEXEPOSTFIX=.exe 96cdf0e10cSrcweirDLLOUT=$(SOLARBINDIR) 97cdf0e10cSrcweirDESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp 98cdf0e10cSrcweir 99cdf0e10cSrcweir.IF "$(COM)"=="GCC" 100cdf0e10cSrcweirDESTPLATFROM=mingw 101cdf0e10cSrcweir.ELSE 102cdf0e10cSrcweirDESTPLATFROM=windows 103cdf0e10cSrcweir.ENDIF 104cdf0e10cSrcweirDESTDIRDLL=$(DESTDIRBIN) 105cdf0e10cSrcweirDESTDIRCLI=$(DESTDIR)/cli 106cdf0e10cSrcweir 107cdf0e10cSrcweir.ELSE 108cdf0e10cSrcweir#-------------------- 109cdf0e10cSrcweir# UNX ONLYDESTDIRCPPEXAMPLES=$(DESTDIR)/examples/cpp 110cdf0e10cSrcweir 111cdf0e10cSrcweir#-------------------- 112cdf0e10cSrcweir#MY_DELETE_RECURSIVE=rm -rf 113cdf0e10cSrcweir#MY_TEXTCOPY= tr -d "\015" 114cdf0e10cSrcweir 115cdf0e10cSrcweirMY_DLLPREFIX=lib 116cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 117cdf0e10cSrcweirMY_DLLPOSTFIX=.dylib 118cdf0e10cSrcweir.ELSE 119cdf0e10cSrcweirMY_DLLPOSTFIX=.so 120cdf0e10cSrcweir.ENDIF 121cdf0e10cSrcweirMY_DLLOUT=$(OUT)/lib 122cdf0e10cSrcweirDLLOUT=$(SOLARLIBDIR) 123cdf0e10cSrcweir 124cdf0e10cSrcweir.IF "$(OS)$(CPU)"=="SOLARISS" 125cdf0e10cSrcweir############## 126cdf0e10cSrcweir# SOLARIS SPARC 127cdf0e10cSrcweir############## 128cdf0e10cSrcweirDESTPLATFROM=solsparc 129cdf0e10cSrcweir 130cdf0e10cSrcweir.ELIF "$(OS)$(CPU)"=="SOLARISU" 131cdf0e10cSrcweir############## 132cdf0e10cSrcweir# SOLARIS SPARC 64 133cdf0e10cSrcweir############## 134cdf0e10cSrcweirDESTPLATFROM=solsparc64 135cdf0e10cSrcweir 136cdf0e10cSrcweir.ELIF "$(OS)$(CPU)"=="SOLARISI" 137cdf0e10cSrcweir########## 138cdf0e10cSrcweir# SOLARIS INTEL 139cdf0e10cSrcweir########## 140cdf0e10cSrcweirDESTPLATFROM=solintel 141cdf0e10cSrcweir 142cdf0e10cSrcweir.ELIF "$(OS)"=="LINUX" 143cdf0e10cSrcweir########### 144cdf0e10cSrcweir# LINUX 145cdf0e10cSrcweir########### 146cdf0e10cSrcweirDESTPLATFROM=linux 147cdf0e10cSrcweir 148cdf0e10cSrcweir.ELIF "$(OS)"=="NETBSD" 149cdf0e10cSrcweir########### 150cdf0e10cSrcweir# NETBSD 151cdf0e10cSrcweir########### 152cdf0e10cSrcweirDESTPLATFROM=netbsd 153cdf0e10cSrcweir 154cdf0e10cSrcweir.ELIF "$(OS)"=="FREEBSD" 155cdf0e10cSrcweir########### 156cdf0e10cSrcweir# FREEBSD 157cdf0e10cSrcweir########### 158cdf0e10cSrcweirDESTPLATFROM=freebsd 159cdf0e10cSrcweir 160cdf0e10cSrcweir.ELIF "$(OS)"=="MACOSX" 161cdf0e10cSrcweir########### 162cdf0e10cSrcweir# MACOSX 163cdf0e10cSrcweir########### 164cdf0e10cSrcweirDESTPLATFROM=macosx 165cdf0e10cSrcweir.ENDIF 166cdf0e10cSrcweir 167cdf0e10cSrcweir#DESTDIRBIN=$(DESTDIR)/$(DESTPLATFROM)/bin 168cdf0e10cSrcweir#DESTDIRLIB=$(DESTDIR)/$(DESTPLATFROM)/lib 169cdf0e10cSrcweir#DESTDIRDLL=$(DESTDIRLIB) 170cdf0e10cSrcweir 171cdf0e10cSrcweir.ENDIF 172cdf0e10cSrcweir 173cdf0e10cSrcweir#MY_TEXTCOPY_SOURCEPRE=< 174cdf0e10cSrcweir#MY_TEXTCOPY_TARGETPRE=> 175cdf0e10cSrcweir 176cdf0e10cSrcweir 177cdf0e10cSrcweirINCLUDETOPDIRLIST= \ 178cdf0e10cSrcweir $(INCOUT)/sal \ 179cdf0e10cSrcweir $(INCOUT)/salhelper \ 180cdf0e10cSrcweir $(INCOUT)/rtl \ 181cdf0e10cSrcweir $(INCOUT)/osl \ 182cdf0e10cSrcweir $(INCOUT)/store \ 183cdf0e10cSrcweir $(INCOUT)/typelib \ 184cdf0e10cSrcweir $(INCOUT)/uno \ 185cdf0e10cSrcweir $(INCOUT)/cppu \ 186cdf0e10cSrcweir $(INCOUT)/cppuhelper \ 187cdf0e10cSrcweir $(INCOUT)/registry \ 188cdf0e10cSrcweir $(INCOUT)/stl 189cdf0e10cSrcweir 190cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 191cdf0e10cSrcweirINCLUDETOPDIRLIST += $(INCOUT)/systools 192cdf0e10cSrcweir.ENDIF 193cdf0e10cSrcweir 194cdf0e10cSrcweirINCLUDEDIRLIST:={$(subst,/,/ $(shell @$(FIND) $(INCLUDETOPDIRLIST) -type d -print))} 195cdf0e10cSrcweir 196cdf0e10cSrcweirINCLUDEFILELIST=\ 197cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Any.h \ 198cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Any.hxx \ 199cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/genfunc.h \ 200cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/genfunc.hxx \ 201cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Reference.h \ 202cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Reference.hxx \ 203cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Sequence.h \ 204cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Sequence.hxx \ 205cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Type.h \ 206cdf0e10cSrcweir $(INCOUT)/com/sun/star/uno/Type.hxx 207cdf0e10cSrcweir 208cdf0e10cSrcweirINCLUDELIST:=\ 209cdf0e10cSrcweir {$(shell @$(FIND) $(INCLUDETOPDIRLIST) -type f ! \( -name "*~" -o -name "*build.lst" -o -name "*deliver.log" \) -print)} \ 210cdf0e10cSrcweir $(INCLUDEFILELIST) 211cdf0e10cSrcweir 212cdf0e10cSrcweirSDK_CONTENT_CHECK_FILES= \ 213cdf0e10cSrcweir $(MISC)/copying_files.txt 214cdf0e10cSrcweir 215cdf0e10cSrcweirSDK_CHECK_FLAGS= \ 216cdf0e10cSrcweir $(MISC)/checkbin.txt \ 217cdf0e10cSrcweir $(MISC)/checkidl.txt \ 218cdf0e10cSrcweir $(MISC)/checkinc.txt \ 219cdf0e10cSrcweir $(MISC)/checkinc2.txt 220