#************************************************************************* # # OpenOffice.org - a multi-platform office productivity suite # # $RCSfile: makefile.mk,v $ # # $Revision: 1.3 $ # # last change: $Author: kz $ $Date: 2007-05-10 13:19:03 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. # # # GNU Lesser General Public License Version 2.1 # ============================================= # Copyright 2005 by Sun Microsystems, Inc. # 901 San Antonio Road, Palo Alto, CA 94303, USA # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License version 2.1, as published by the Free Software Foundation. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # #************************************************************************* PRJ=.. PRJNAME=external TARGET=mingwheaders .INCLUDE : settings.mk .IF "$(OS)$(COM)" == "WNTGCC" # Cygwin and MinGW use different directories for the W32API headers .IF "$(USE_MINGW)" == "cygwin" MINGW_INCLUDE_DIR=$(COMPATH)$/include/mingw/include/ MINGW_W32API_INCLUDE_DIR=$(COMPATH)$/include/w32api/ MINGW_W32API_LIB_DIR=$(COMPATH)$/include/w32api/ .ELSE MINGW_INCLUDE_DIR=$(COMPATH)$/include/ MINGW_W32API_INCLUDE_DIR=$(COMPATH)$/include/ MINGW_W32API_LIB_DIR=$(COMPATH)$/lib/ .ENDIF PSDK_INCLUDE_DIR=$(PSDK_HOME)$/include$/ ATL_INCLUDE_DIR=$(PSDK_HOME)$/include$/atl$/ FILES_TO_COPY_FROM_MINGW=excpt.h \ tchar.h FILES_TO_COPY_FROM_W32API=basetyps.h \ objfwd.h \ rpcndr.h \ winbase.h \ wininet.h \ winnt.h \ winver.h \ wtypes.h FILES_TO_COPY_FROM_PSDK=adoint.h \ commctrl.h \ exdispid.h \ gdiplusenums.h \ gdiplusheaders.h \ gdiplusimaging.h \ imagehlp.h \ mapiwin.h \ oaidl.h \ objidl.h \ ocidl.h \ oleauto.h \ olectl.h \ oledb.h \ propidl.h \ qedit.h \ shlobj.h \ shtypes.h \ specstrings.h \ strmif.h \ wincrypt.h \ winerror.h \ wingdi.h \ winsock2.h \ ws2tcpip.h \ wspiapi.h \ amstream.h \ austream.h \ ddstream.h \ dispex.h \ filter.h \ gdiplus.h \ mmstream.h \ msdasc.h \ msxml.h \ oleidl.h \ qos.h \ shobjidl.h \ shlguid.h \ transact.h \ urlmon.h FILES_TO_COPY_FROM_ATL=atlbase.h \ atlcom.h \ atlconv.h \ atlctl.h \ atlwin.h \ statreg.h $(MISC)$/mingwheader_patch_all : $(MISC)$/mingwheader_patch $(LB)$/libmsvcrt.a $(MISC)$/mingwheader_patch : $(MISC)$/mingwheader_copy -patch -bd $(MISC)$/mingw -p0 -N -f -Z $(MISC)$/msvcrt.nm .ELSE $(WRAPCMD) nm -g --defined-only $(COMPATH)$/lib/libmsvcrt.a > $(MISC)$/msvcrt.nm .ENDIF echo EXPORTS > $(MISC)$/msvcrt.def sed -ne 's/.* T _//p' $(MISC)$/msvcrt.nm | sort >> $(MISC)$/msvcrt.def -sed -ne 's/.* I __imp__//p' $(MISC)$/msvcrt.nm | sort | diff - $(MISC)$/msvcrt.def | \ sed -ne 's/^< \(.*\)$/\1 DATA/p' > $(MISC)$/msvcrtdata.def cat $(MISC)$/msvcrtdata.def >> $(MISC)$/msvcrt.def dlltool --dllname msvcrt.dll --input-def=$(MISC)$/msvcrt.def --kill-at --output-lib=$(LB)$/libmsvcrt.a clean: -$(RM) $(MISC)$/mingw$/include$/*.h -$(RM) $(MISC)$/mingwheader_copy -$(RM) $(MISC)$/mingwheader_patch .ENDIF .INCLUDE : target.mk