1*7871dc3eSAndrew Rist#************************************************************** 2*7871dc3eSAndrew Rist# 3*7871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 4*7871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 5*7871dc3eSAndrew Rist# distributed with this work for additional information 6*7871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 7*7871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 8*7871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 9*7871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 10*7871dc3eSAndrew Rist# 11*7871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 12*7871dc3eSAndrew Rist# 13*7871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 14*7871dc3eSAndrew Rist# software distributed under the License is distributed on an 15*7871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*7871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 17*7871dc3eSAndrew Rist# specific language governing permissions and limitations 18*7871dc3eSAndrew Rist# under the License. 19*7871dc3eSAndrew Rist# 20*7871dc3eSAndrew Rist#************************************************************** 21*7871dc3eSAndrew Rist 22*7871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=..$/..$/.. 25cdf0e10cSrcweirPRJNAME=sal 26cdf0e10cSrcweirTARGET=uwinapi 27cdf0e10cSrcweir 28cdf0e10cSrcweirUSE_DEFFILE=TRUE 29cdf0e10cSrcweirLIBTARGET=NO 30cdf0e10cSrcweir 31cdf0e10cSrcweir# --- Settings ---------------------------------- 32cdf0e10cSrcweir 33cdf0e10cSrcweir.INCLUDE : settings.mk 34cdf0e10cSrcweir 35cdf0e10cSrcweirCFLAGS+= $(LFS_CFLAGS) 36cdf0e10cSrcweirCXXFLAGS+= $(LFS_CFLAGS) 37cdf0e10cSrcweir 38cdf0e10cSrcweir# --- Targets ---------------------------------- 39cdf0e10cSrcweir 40cdf0e10cSrcweir 41cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 42cdf0e10cSrcweir.IF "$(COM)"=="GCC" 43cdf0e10cSrcweirCFLAGSCXX+=-Wno-unused-parameter -Wno-return-type 44cdf0e10cSrcweir.ENDIF 45cdf0e10cSrcweir 46cdf0e10cSrcweir.IF "$(COMEX)"=="9" 47cdf0e10cSrcweir.IF "$(PSDK_HOME)"!="" 48cdf0e10cSrcweir# Since the 02/2003 PSDK the "new" linker is needed here. 49cdf0e10cSrcweirLINK=$(WRAPCMD) "$(PSDK_HOME)$/Bin$/Win64$/LINK.EXE" 50cdf0e10cSrcweir.ENDIF 51cdf0e10cSrcweir.ENDIF 52cdf0e10cSrcweir 53cdf0e10cSrcweirSLOFILES=\ 54cdf0e10cSrcweir $(SLO)$/CheckTokenMembership.obj\ 55cdf0e10cSrcweir $(SLO)$/CommandLineToArgvW.obj\ 56cdf0e10cSrcweir $(SLO)$/CopyFileExA.obj\ 57cdf0e10cSrcweir $(SLO)$/CopyFileExW.obj\ 58cdf0e10cSrcweir $(SLO)$/DrawStateW.obj\ 59cdf0e10cSrcweir $(SLO)$/EnumProcesses.obj\ 60cdf0e10cSrcweir $(SLO)$/GetLogicalDriveStringsW.obj\ 61cdf0e10cSrcweir $(SLO)$/GetLongPathNameA.obj\ 62cdf0e10cSrcweir $(SLO)$/GetLongPathNameW.obj\ 63cdf0e10cSrcweir $(SLO)$/GetModuleFileNameExA.obj\ 64cdf0e10cSrcweir $(SLO)$/GetModuleFileNameExW.obj\ 65cdf0e10cSrcweir $(SLO)$/GetProcessId.obj\ 66cdf0e10cSrcweir $(SLO)$/GetUserDefaultUILanguage.obj\ 67cdf0e10cSrcweir $(SLO)$/GetUserDomainA.obj\ 68cdf0e10cSrcweir $(SLO)$/GetUserDomainW.obj\ 69cdf0e10cSrcweir $(SLO)$/GetDiskFreeSpaceExA.obj\ 70cdf0e10cSrcweir $(SLO)$/GetDiskFreeSpaceExW.obj\ 71cdf0e10cSrcweir $(SLO)$/MoveFileExA.obj\ 72cdf0e10cSrcweir $(SLO)$/MoveFileExW.obj\ 73cdf0e10cSrcweir $(SLO)$/toolhelp.obj\ 74cdf0e10cSrcweir $(SLO)$/ResolveThunk.obj\ 75cdf0e10cSrcweir $(SLO)$/ResolveUnicows.obj\ 76cdf0e10cSrcweir $(SLO)$/snprintf.obj\ 77cdf0e10cSrcweir $(SLO)$/snwprintf.obj\ 78cdf0e10cSrcweir $(SLO)$/FindFirstVolumeA.obj\ 79cdf0e10cSrcweir $(SLO)$/FindFirstVolumeW.obj\ 80cdf0e10cSrcweir $(SLO)$/FindNextVolumeA.obj\ 81cdf0e10cSrcweir $(SLO)$/FindNextVolumeW.obj\ 82cdf0e10cSrcweir $(SLO)$/FindVolumeClose.obj\ 83cdf0e10cSrcweir $(SLO)$/FindFirstVolumeMountPointA.obj\ 84cdf0e10cSrcweir $(SLO)$/FindFirstVolumeMountPointW.obj\ 85cdf0e10cSrcweir $(SLO)$/FindNextVolumeMountPointA.obj\ 86cdf0e10cSrcweir $(SLO)$/FindNextVolumeMountPointW.obj\ 87cdf0e10cSrcweir $(SLO)$/FindVolumeMountPointClose.obj\ 88cdf0e10cSrcweir $(SLO)$/GetVolumeNameForVolumeMountPointA.obj\ 89cdf0e10cSrcweir $(SLO)$/GetVolumeNameForVolumeMountPointW.obj\ 90cdf0e10cSrcweir $(SLO)$/DeleteVolumeMountPointA.obj\ 91cdf0e10cSrcweir $(SLO)$/DeleteVolumeMountPointW.obj\ 92cdf0e10cSrcweir $(SLO)$/GetVolumePathNameA.obj\ 93cdf0e10cSrcweir $(SLO)$/GetVolumePathNameW.obj\ 94cdf0e10cSrcweir $(SLO)$/SetVolumeMountPointA.obj\ 95cdf0e10cSrcweir $(SLO)$/SetVolumeMountPointW.obj\ 96cdf0e10cSrcweir $(SLO)$/PathAddBackslashW.obj\ 97cdf0e10cSrcweir $(SLO)$/PathCompactPathExW.obj\ 98cdf0e10cSrcweir $(SLO)$/PathFileExistsW.obj\ 99cdf0e10cSrcweir $(SLO)$/PathFindExtensionW.obj\ 100cdf0e10cSrcweir $(SLO)$/PathFindFileNameW.obj\ 101cdf0e10cSrcweir $(SLO)$/PathIsFileSpecW.obj\ 102cdf0e10cSrcweir $(SLO)$/PathIsUNCW.obj\ 103cdf0e10cSrcweir $(SLO)$/PathRemoveExtensionW.obj\ 104cdf0e10cSrcweir $(SLO)$/PathRemoveFileSpecW.obj\ 105cdf0e10cSrcweir $(SLO)$/PathSetDlgItemPathW.obj\ 106cdf0e10cSrcweir $(SLO)$/PathStripToRootW.obj\ 107cdf0e10cSrcweir $(SLO)$/SHCreateItemFromParsingName.obj 108cdf0e10cSrcweir 109cdf0e10cSrcweirSHL1TARGET=$(TARGET) 110cdf0e10cSrcweirSHL1IMPLIB=$(SHL1TARGET) 111cdf0e10cSrcweirSHL1DEF=$(MISC)/$(SHL1TARGET).def 112cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET) 113cdf0e10cSrcweir.IF "$(COM)"=="GCC" 114cdf0e10cSrcweirDEF1EXPORTFILE=\ 115cdf0e10cSrcweir $(SHL1TARGET)_mingw.dxp\ 116cdf0e10cSrcweir unicows_mingw.dxp 117cdf0e10cSrcweir.ELSE 118cdf0e10cSrcweirDEF1EXPORTFILE=\ 119cdf0e10cSrcweir $(SHL1TARGET).dxp\ 120cdf0e10cSrcweir unicows.dxp 121cdf0e10cSrcweir.ENDIF 122cdf0e10cSrcweirDEF1DEPN=\ 123cdf0e10cSrcweir $(DEF1EXPORTFILE)\ 124cdf0e10cSrcweir makefile.mk 125cdf0e10cSrcweir 126cdf0e10cSrcweir#SHL1VERINFO=$(SHL1TARGET).rc 127cdf0e10cSrcweirSHL1OBJS=$(SLOFILES) 128cdf0e10cSrcweir 129cdf0e10cSrcweir#No default libraries 130cdf0e10cSrcweirSTDSHL= 131cdf0e10cSrcweir 132cdf0e10cSrcweir.IF "$(COM)"=="GCC" 133cdf0e10cSrcweirSHL1STDLIBS=\ 134cdf0e10cSrcweir -lmingw32 \ 135cdf0e10cSrcweir $(MINGW_LIBGCC) 136cdf0e10cSrcweirMINGWSSTDOBJ= 137cdf0e10cSrcweirMINGWSSTDENDOBJ= 138cdf0e10cSrcweir.ELSE 139cdf0e10cSrcweirSHL1STDLIBS=\ 140cdf0e10cSrcweir unicows.lib 141cdf0e10cSrcweir.ENDIF 142cdf0e10cSrcweir 143cdf0e10cSrcweirSHL1STDLIBS+=\ 144cdf0e10cSrcweir $(KERNEL32LIB)\ 145cdf0e10cSrcweir $(USER32LIB)\ 146cdf0e10cSrcweir $(ADVAPI32LIB)\ 147cdf0e10cSrcweir $(VERSIONLIB)\ 148cdf0e10cSrcweir $(LIBCMT)\ 149cdf0e10cSrcweir $(SHLWAPILIB) 150cdf0e10cSrcweir 151cdf0e10cSrcweir 152cdf0e10cSrcweir.ENDIF 153cdf0e10cSrcweir 154cdf0e10cSrcweir.IF "$(COM)"=="GCC" 155cdf0e10cSrcweirALL: ALLTAR $(LB)$/libuwinapi.a 156cdf0e10cSrcweir 157cdf0e10cSrcweir$(LB)$/libuwinapi.a: $(MISC)$/uwinapi.def 158cdf0e10cSrcweir dlltool --dllname uwinapi.dll --input-def=$(MISC)$/uwinapi.def --kill-at --output-lib=$(LB)$/libuwinapi.a 159cdf0e10cSrcweir.ENDIF 160cdf0e10cSrcweir 161cdf0e10cSrcweir.INCLUDE : target.mk 162