1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=..$/..$/.. 29*cdf0e10cSrcweirPRJNAME=sal 30*cdf0e10cSrcweirTARGET=uwinapi 31*cdf0e10cSrcweir 32*cdf0e10cSrcweirUSE_DEFFILE=TRUE 33*cdf0e10cSrcweirLIBTARGET=NO 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir# --- Settings ---------------------------------- 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir.INCLUDE : settings.mk 38*cdf0e10cSrcweir 39*cdf0e10cSrcweirCFLAGS+= $(LFS_CFLAGS) 40*cdf0e10cSrcweirCXXFLAGS+= $(LFS_CFLAGS) 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir# --- Targets ---------------------------------- 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 46*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 47*cdf0e10cSrcweirCFLAGSCXX+=-Wno-unused-parameter -Wno-return-type 48*cdf0e10cSrcweir.ENDIF 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir.IF "$(COMEX)"=="9" 51*cdf0e10cSrcweir.IF "$(PSDK_HOME)"!="" 52*cdf0e10cSrcweir# Since the 02/2003 PSDK the "new" linker is needed here. 53*cdf0e10cSrcweirLINK=$(WRAPCMD) "$(PSDK_HOME)$/Bin$/Win64$/LINK.EXE" 54*cdf0e10cSrcweir.ENDIF 55*cdf0e10cSrcweir.ENDIF 56*cdf0e10cSrcweir 57*cdf0e10cSrcweirSLOFILES=\ 58*cdf0e10cSrcweir $(SLO)$/CheckTokenMembership.obj\ 59*cdf0e10cSrcweir $(SLO)$/CommandLineToArgvW.obj\ 60*cdf0e10cSrcweir $(SLO)$/CopyFileExA.obj\ 61*cdf0e10cSrcweir $(SLO)$/CopyFileExW.obj\ 62*cdf0e10cSrcweir $(SLO)$/DrawStateW.obj\ 63*cdf0e10cSrcweir $(SLO)$/EnumProcesses.obj\ 64*cdf0e10cSrcweir $(SLO)$/GetLogicalDriveStringsW.obj\ 65*cdf0e10cSrcweir $(SLO)$/GetLongPathNameA.obj\ 66*cdf0e10cSrcweir $(SLO)$/GetLongPathNameW.obj\ 67*cdf0e10cSrcweir $(SLO)$/GetModuleFileNameExA.obj\ 68*cdf0e10cSrcweir $(SLO)$/GetModuleFileNameExW.obj\ 69*cdf0e10cSrcweir $(SLO)$/GetProcessId.obj\ 70*cdf0e10cSrcweir $(SLO)$/GetUserDefaultUILanguage.obj\ 71*cdf0e10cSrcweir $(SLO)$/GetUserDomainA.obj\ 72*cdf0e10cSrcweir $(SLO)$/GetUserDomainW.obj\ 73*cdf0e10cSrcweir $(SLO)$/GetDiskFreeSpaceExA.obj\ 74*cdf0e10cSrcweir $(SLO)$/GetDiskFreeSpaceExW.obj\ 75*cdf0e10cSrcweir $(SLO)$/MoveFileExA.obj\ 76*cdf0e10cSrcweir $(SLO)$/MoveFileExW.obj\ 77*cdf0e10cSrcweir $(SLO)$/toolhelp.obj\ 78*cdf0e10cSrcweir $(SLO)$/DllGetVersion.obj\ 79*cdf0e10cSrcweir $(SLO)$/DllMain.obj\ 80*cdf0e10cSrcweir $(SLO)$/ResolveThunk.obj\ 81*cdf0e10cSrcweir $(SLO)$/ResolveUnicows.obj\ 82*cdf0e10cSrcweir $(SLO)$/snprintf.obj\ 83*cdf0e10cSrcweir $(SLO)$/snwprintf.obj\ 84*cdf0e10cSrcweir $(SLO)$/FindFirstVolumeA.obj\ 85*cdf0e10cSrcweir $(SLO)$/FindFirstVolumeW.obj\ 86*cdf0e10cSrcweir $(SLO)$/FindNextVolumeA.obj\ 87*cdf0e10cSrcweir $(SLO)$/FindNextVolumeW.obj\ 88*cdf0e10cSrcweir $(SLO)$/FindVolumeClose.obj\ 89*cdf0e10cSrcweir $(SLO)$/FindFirstVolumeMountPointA.obj\ 90*cdf0e10cSrcweir $(SLO)$/FindFirstVolumeMountPointW.obj\ 91*cdf0e10cSrcweir $(SLO)$/FindNextVolumeMountPointA.obj\ 92*cdf0e10cSrcweir $(SLO)$/FindNextVolumeMountPointW.obj\ 93*cdf0e10cSrcweir $(SLO)$/FindVolumeMountPointClose.obj\ 94*cdf0e10cSrcweir $(SLO)$/GetVolumeNameForVolumeMountPointA.obj\ 95*cdf0e10cSrcweir $(SLO)$/GetVolumeNameForVolumeMountPointW.obj\ 96*cdf0e10cSrcweir $(SLO)$/DeleteVolumeMountPointA.obj\ 97*cdf0e10cSrcweir $(SLO)$/DeleteVolumeMountPointW.obj\ 98*cdf0e10cSrcweir $(SLO)$/GetVolumePathNameA.obj\ 99*cdf0e10cSrcweir $(SLO)$/GetVolumePathNameW.obj\ 100*cdf0e10cSrcweir $(SLO)$/SetVolumeMountPointA.obj\ 101*cdf0e10cSrcweir $(SLO)$/SetVolumeMountPointW.obj\ 102*cdf0e10cSrcweir $(SLO)$/PathAddBackslashW.obj\ 103*cdf0e10cSrcweir $(SLO)$/PathCompactPathExW.obj\ 104*cdf0e10cSrcweir $(SLO)$/PathFileExistsW.obj\ 105*cdf0e10cSrcweir $(SLO)$/PathFindExtensionW.obj\ 106*cdf0e10cSrcweir $(SLO)$/PathFindFileNameW.obj\ 107*cdf0e10cSrcweir $(SLO)$/PathIsFileSpecW.obj\ 108*cdf0e10cSrcweir $(SLO)$/PathIsUNCW.obj\ 109*cdf0e10cSrcweir $(SLO)$/PathRemoveExtensionW.obj\ 110*cdf0e10cSrcweir $(SLO)$/PathRemoveFileSpecW.obj\ 111*cdf0e10cSrcweir $(SLO)$/PathSetDlgItemPathW.obj\ 112*cdf0e10cSrcweir $(SLO)$/PathStripToRootW.obj\ 113*cdf0e10cSrcweir $(SLO)$/SHCreateItemFromParsingName.obj 114*cdf0e10cSrcweir 115*cdf0e10cSrcweirSHL1TARGET=$(TARGET) 116*cdf0e10cSrcweirSHL1IMPLIB=$(SHL1TARGET) 117*cdf0e10cSrcweirSHL1DEF=$(MISC)/$(SHL1TARGET).def 118*cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET) 119*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 120*cdf0e10cSrcweirDEF1EXPORTFILE=\ 121*cdf0e10cSrcweir $(SHL1TARGET)_mingw.dxp\ 122*cdf0e10cSrcweir unicows_mingw.dxp 123*cdf0e10cSrcweir.ELSE 124*cdf0e10cSrcweirDEF1EXPORTFILE=\ 125*cdf0e10cSrcweir $(SHL1TARGET).dxp\ 126*cdf0e10cSrcweir unicows.dxp 127*cdf0e10cSrcweir.ENDIF 128*cdf0e10cSrcweirDEF1DEPN=\ 129*cdf0e10cSrcweir $(DEF1EXPORTFILE)\ 130*cdf0e10cSrcweir makefile.mk 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir#SHL1VERINFO=$(SHL1TARGET).rc 133*cdf0e10cSrcweirSHL1OBJS=$(SLOFILES) 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir#No default libraries 136*cdf0e10cSrcweirSTDSHL= 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 139*cdf0e10cSrcweirSHL1STDLIBS=\ 140*cdf0e10cSrcweir -lmingw32 \ 141*cdf0e10cSrcweir $(MINGW_LIBGCC) 142*cdf0e10cSrcweirMINGWSSTDOBJ= 143*cdf0e10cSrcweirMINGWSSTDENDOBJ= 144*cdf0e10cSrcweir.ELSE 145*cdf0e10cSrcweirSHL1STDLIBS=\ 146*cdf0e10cSrcweir unicows.lib 147*cdf0e10cSrcweir.ENDIF 148*cdf0e10cSrcweir 149*cdf0e10cSrcweirSHL1STDLIBS+=\ 150*cdf0e10cSrcweir $(KERNEL32LIB)\ 151*cdf0e10cSrcweir $(USER32LIB)\ 152*cdf0e10cSrcweir $(ADVAPI32LIB)\ 153*cdf0e10cSrcweir $(VERSIONLIB)\ 154*cdf0e10cSrcweir $(LIBCMT)\ 155*cdf0e10cSrcweir $(SHLWAPILIB) 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir.ENDIF 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 161*cdf0e10cSrcweirALL: ALLTAR $(LB)$/libuwinapi.a 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir$(LB)$/libuwinapi.a: $(MISC)$/uwinapi.def 164*cdf0e10cSrcweir dlltool --dllname uwinapi.dll --input-def=$(MISC)$/uwinapi.def --kill-at --output-lib=$(LB)$/libuwinapi.a 165*cdf0e10cSrcweir.ENDIF 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir.INCLUDE : target.mk 168