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