#************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # Copyright 2000, 2010 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite # # This file is part of OpenOffice.org. # # OpenOffice.org is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 # only, as published by the Free Software Foundation. # # OpenOffice.org 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 version 3 for more details # (a copy is included in the LICENSE file that accompanied this code). # # You should have received a copy of the GNU Lesser General Public License # version 3 along with OpenOffice.org. If not, see # # for a copy of the LGPLv3 License. # #************************************************************************* PRJ=.. PRJNAME=external TARGET=mingwheaders .INCLUDE : settings.mk .IF "$(OS)$(COM)" == "WNTGCC" .IF "$(CROSS_COMPILING)" != "YES" # Don't do any of this for now. We support WNTGCC (MinGW) only as # cross-compiler. It is dubious whether it would be legal to copy # stuff from the Windows SDK to a cross-compilation build host # anyway. Some headers and/or import libraries missing in MinGW (or # mingw-w64 actually) we have copied from Wine in ../wine. MINGW_INCLUDE_DIR=$(COMPATH)$/include/ MINGW_W32API_INCLUDE_DIR=$(COMPATH)$/include/ MINGW_W32API_LIB_DIR=$(COMPATH)$/lib/ SYS_INCLUDE_DIR=$(MINGW_INCLUDE_DIR)$/sys/ PSDK_INCLUDE_DIR=$(PSDK_HOME)$/include$/ ATL_INCLUDE_DIR=$(PSDK_HOME)$/include$/atl$/ DIRECTXSDK_INCLUDE_DIR=$(DIRECTXSDK_HOME)$/include$/ FILES_TO_COPY_FROM_MINGW= \ excpt.h \ tchar.h FILES_TO_COPY_FROM_W32API= \ amvideo.h \ basetyps.h \ objidl.h \ specstrings.h \ uxtheme.h \ winbase.h \ windef.h \ wininet.h \ winver.h \ wtypes.h FILES_TO_COPY_FROM_SYS= \ stat.h FILES_TO_COPY_FROM_PSDK= \ adoctint.h \ adodef.h \ adoguids.h \ adoint.h \ bcrypt.h \ commctrl.h \ control.h \ dispex.h \ filter.h \ gdiplusbitmap.h \ gdiplusbrush.h \ gdiplusenums.h \ gdiplusfont.h \ gdiplusheaders.h \ gdiplusimageattributes.h \ gdiplusimaging.h \ gdiplusmatrix.h \ gdipluspath.h \ gdipluspen.h \ gdiplusregion.h \ gdiplusstringformat.h \ imm.h \ imagehlp.h \ mapiwin.h \ msdasc.h \ msi.h \ msiquery.h \ multimon.h \ ntquery.h \ oaidl.h \ ocidl.h \ oleauto.h \ olectl.h \ oledb.h \ oleidl.h \ propidl.h \ propkeydef.h \ propsys.h \ propvarutil.h \ shlobj.h \ shobjidl.h \ shtypes.h \ sspi.h \ strmif.h \ strsafe.h \ structuredquery.h \ urlmon.h \ wincrypt.h \ winerror.h \ wingdi.h \ wintrust.h \ winuser.h \ wspiapi.h \ exdispid.h \ dshow.h \ gdiplus.h \ msxml.h \ ncrypt.h \ shlguid.h \ transact.h .IF "$(DISABLE_ATL)"=="" MINGWHEADER_ATL_PATCH_TARGET=$(MISC)$/mingwheader_atl_patch MINGWHEADER_ATL_COPY_TARGET=$(MISC)$/mingwheader_atl_copy FILES_TO_COPY_FROM_ATL= \ atlbase.h \ atlcom.h \ atlconv.h \ atlctl.h \ atlwin.h \ statreg.h .ENDIF FILES_TO_COPY_FROM_DIRECTXSDK= \ d3dtypes.h \ d3dx9core.h \ d3dx9math.h \ d3dx9math.inl \ dxtrans.h \ d3dx9.h $(MISC)$/mingwheader_patch_all : $(MISC)$/mingwheader_patch $(MINGWHEADER_ATL_PATCH_TARGET) $(LB)$/libmsvcrt.a $(MISC)$/mingwheader_patch : $(MISC)$/mingwheader_copy patch -bd $(MISC)$/mingw -p0 -N -f -Z $(MISC)$/msvcrt.nm 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 cd $(LB) && ar -rs libmsvcrt.a ofmt_stub.o clean: -$(RM) $(MISC)$/mingw$/include$/*.h -$(RM) $(MISC)$/mingwheader_copy -$(RM) $(MISC)$/mingwheader_patch .ENDIF .ENDIF .INCLUDE : target.mk