17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew 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=\
54*e9cec295SDamjan Jovanovic		$(SLO)$/ResolveThunk.obj\
55*e9cec295SDamjan Jovanovic		$(SLO)$/SHCreateItemFromParsingName.obj\
56*e9cec295SDamjan Jovanovic		$(SLO)$/snprintf.obj\
57*e9cec295SDamjan Jovanovic		$(SLO)$/snwprintf.obj
58*e9cec295SDamjan Jovanovic
59*e9cec295SDamjan Jovanovic
60*e9cec295SDamjan Jovanovic.IF "$(CPUNAME)"=="INTEL"
61*e9cec295SDamjan JovanovicSLOFILES+=\
62cdf0e10cSrcweir		$(SLO)$/CheckTokenMembership.obj\
63cdf0e10cSrcweir		$(SLO)$/CommandLineToArgvW.obj\
64cdf0e10cSrcweir		$(SLO)$/CopyFileExA.obj\
65cdf0e10cSrcweir		$(SLO)$/CopyFileExW.obj\
66cdf0e10cSrcweir		$(SLO)$/DrawStateW.obj\
67cdf0e10cSrcweir		$(SLO)$/EnumProcesses.obj\
68cdf0e10cSrcweir		$(SLO)$/GetLogicalDriveStringsW.obj\
69cdf0e10cSrcweir		$(SLO)$/GetLongPathNameA.obj\
70cdf0e10cSrcweir		$(SLO)$/GetLongPathNameW.obj\
71cdf0e10cSrcweir		$(SLO)$/GetModuleFileNameExA.obj\
72cdf0e10cSrcweir		$(SLO)$/GetModuleFileNameExW.obj\
73cdf0e10cSrcweir		$(SLO)$/GetProcessId.obj\
74cdf0e10cSrcweir		$(SLO)$/GetUserDefaultUILanguage.obj\
75cdf0e10cSrcweir		$(SLO)$/GetUserDomainA.obj\
76cdf0e10cSrcweir		$(SLO)$/GetUserDomainW.obj\
77cdf0e10cSrcweir		$(SLO)$/GetDiskFreeSpaceExA.obj\
78cdf0e10cSrcweir		$(SLO)$/GetDiskFreeSpaceExW.obj\
79cdf0e10cSrcweir		$(SLO)$/MoveFileExA.obj\
80cdf0e10cSrcweir		$(SLO)$/MoveFileExW.obj\
81cdf0e10cSrcweir		$(SLO)$/toolhelp.obj\
82cdf0e10cSrcweir		$(SLO)$/ResolveUnicows.obj\
83cdf0e10cSrcweir		$(SLO)$/FindFirstVolumeA.obj\
84cdf0e10cSrcweir		$(SLO)$/FindFirstVolumeW.obj\
85cdf0e10cSrcweir		$(SLO)$/FindNextVolumeA.obj\
86cdf0e10cSrcweir		$(SLO)$/FindNextVolumeW.obj\
87cdf0e10cSrcweir		$(SLO)$/FindVolumeClose.obj\
88cdf0e10cSrcweir		$(SLO)$/FindFirstVolumeMountPointA.obj\
89cdf0e10cSrcweir		$(SLO)$/FindFirstVolumeMountPointW.obj\
90cdf0e10cSrcweir		$(SLO)$/FindNextVolumeMountPointA.obj\
91cdf0e10cSrcweir		$(SLO)$/FindNextVolumeMountPointW.obj\
92cdf0e10cSrcweir		$(SLO)$/FindVolumeMountPointClose.obj\
93cdf0e10cSrcweir		$(SLO)$/GetVolumeNameForVolumeMountPointA.obj\
94cdf0e10cSrcweir		$(SLO)$/GetVolumeNameForVolumeMountPointW.obj\
95cdf0e10cSrcweir		$(SLO)$/DeleteVolumeMountPointA.obj\
96cdf0e10cSrcweir		$(SLO)$/DeleteVolumeMountPointW.obj\
97cdf0e10cSrcweir		$(SLO)$/GetVolumePathNameA.obj\
98cdf0e10cSrcweir		$(SLO)$/GetVolumePathNameW.obj\
99cdf0e10cSrcweir		$(SLO)$/SetVolumeMountPointA.obj\
100cdf0e10cSrcweir		$(SLO)$/SetVolumeMountPointW.obj\
101cdf0e10cSrcweir		$(SLO)$/PathAddBackslashW.obj\
102cdf0e10cSrcweir		$(SLO)$/PathCompactPathExW.obj\
103cdf0e10cSrcweir		$(SLO)$/PathFileExistsW.obj\
104cdf0e10cSrcweir		$(SLO)$/PathFindExtensionW.obj\
105cdf0e10cSrcweir		$(SLO)$/PathFindFileNameW.obj\
106cdf0e10cSrcweir		$(SLO)$/PathIsFileSpecW.obj\
107cdf0e10cSrcweir		$(SLO)$/PathIsUNCW.obj\
108cdf0e10cSrcweir		$(SLO)$/PathRemoveExtensionW.obj\
109cdf0e10cSrcweir		$(SLO)$/PathRemoveFileSpecW.obj\
110cdf0e10cSrcweir		$(SLO)$/PathSetDlgItemPathW.obj\
111*e9cec295SDamjan Jovanovic		$(SLO)$/PathStripToRootW.obj
112*e9cec295SDamjan Jovanovic.ENDIF
113cdf0e10cSrcweir
114cdf0e10cSrcweirSHL1TARGET=$(TARGET)
115cdf0e10cSrcweirSHL1IMPLIB=$(SHL1TARGET)
116cdf0e10cSrcweirSHL1DEF=$(MISC)/$(SHL1TARGET).def
117cdf0e10cSrcweirDEF1NAME=$(SHL1TARGET)
118cdf0e10cSrcweir.IF "$(COM)"=="GCC"
119cdf0e10cSrcweirDEF1EXPORTFILE=\
120cdf0e10cSrcweir	$(SHL1TARGET)_mingw.dxp\
121cdf0e10cSrcweir	unicows_mingw.dxp
122cdf0e10cSrcweir.ELSE
123cdf0e10cSrcweirDEF1EXPORTFILE=\
124*e9cec295SDamjan Jovanovic	$(SHL1TARGET)64.dxp
125*e9cec295SDamjan Jovanovic.IF "$(CPUNAME)"=="INTEL"
126*e9cec295SDamjan JovanovicDEF1EXPORTFILE+=\
127cdf0e10cSrcweir	$(SHL1TARGET).dxp\
128cdf0e10cSrcweir	unicows.dxp
129cdf0e10cSrcweir.ENDIF
130*e9cec295SDamjan Jovanovic.ENDIF
131cdf0e10cSrcweirDEF1DEPN=\
132cdf0e10cSrcweir		$(DEF1EXPORTFILE)\
133cdf0e10cSrcweir		makefile.mk
134cdf0e10cSrcweir
135cdf0e10cSrcweir#SHL1VERINFO=$(SHL1TARGET).rc
136cdf0e10cSrcweirSHL1OBJS=$(SLOFILES)
137cdf0e10cSrcweir
138cdf0e10cSrcweir#No default libraries
139cdf0e10cSrcweirSTDSHL=
140cdf0e10cSrcweir
141cdf0e10cSrcweir.IF "$(COM)"=="GCC"
142cdf0e10cSrcweirSHL1STDLIBS=\
143cdf0e10cSrcweir		-lmingw32 \
144cdf0e10cSrcweir		$(MINGW_LIBGCC)
145cdf0e10cSrcweirMINGWSSTDOBJ=
146cdf0e10cSrcweirMINGWSSTDENDOBJ=
147cdf0e10cSrcweir.ELSE
148cdf0e10cSrcweirSHL1STDLIBS=\
149cdf0e10cSrcweir		unicows.lib
150cdf0e10cSrcweir.ENDIF
151cdf0e10cSrcweir
152cdf0e10cSrcweirSHL1STDLIBS+=\
153cdf0e10cSrcweir		$(KERNEL32LIB)\
154cdf0e10cSrcweir		$(USER32LIB)\
155cdf0e10cSrcweir		$(ADVAPI32LIB)\
156cdf0e10cSrcweir		$(VERSIONLIB)\
157cdf0e10cSrcweir		$(LIBCMT)\
158cdf0e10cSrcweir		$(SHLWAPILIB)
159cdf0e10cSrcweir
160cdf0e10cSrcweir
161cdf0e10cSrcweir.ENDIF
162cdf0e10cSrcweir
163cdf0e10cSrcweir.IF "$(COM)"=="GCC"
164cdf0e10cSrcweirALL: ALLTAR $(LB)$/libuwinapi.a
165cdf0e10cSrcweir
166cdf0e10cSrcweir$(LB)$/libuwinapi.a: $(MISC)$/uwinapi.def
167cdf0e10cSrcweir	dlltool --dllname uwinapi.dll --input-def=$(MISC)$/uwinapi.def --kill-at --output-lib=$(LB)$/libuwinapi.a
168cdf0e10cSrcweir.ENDIF
169cdf0e10cSrcweir
170cdf0e10cSrcweir.INCLUDE : target.mk
171