blob: fb960c2817d13be2ab5d5c9a6ee5532e2abc9bf6 [file] [log] [blame]
Martin v. Löwis856bf9a2006-02-14 20:42:55 +00001!IF "$(CPU)" == ""
2# VS environment
3
Martin v. Löwiseb68be42004-12-12 15:29:21 +00004# /OPT: REF and ICF are added by VS.NET by default
5# NOWIN98 saves 7k of executable size, at the expense of some
6# slowdown on Win98
7msisupport.dll: msisupport.obj
8 link.exe /OUT:msisupport.dll /INCREMENTAL:NO /NOLOGO /DLL /MACHINE:X86 /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /OPT:NOWIN98 msisupport.obj msi.lib kernel32.lib
9
10# We request a static CRT, so that there will be no CRT dependencies
11# for the target system. We cannot do without a CRT, since it provides
12# the DLL entry point.
13msisupport.obj: msisupport.c
14 cl /O2 /D WIN32 /D NDEBUG /D _WINDOWS /MT /W3 /c msisupport.c
15
Martin v. Löwis856bf9a2006-02-14 20:42:55 +000016!ELSE
17# SDK environment: assume all options are already correct
18
19msisupport.dll: msisupport.obj
20 link.exe /OUT:msisupport.dll /INCREMENTAL:NO /NOLOGO /DLL msisupport.obj msi.lib kernel32.lib
21
22msisupport.obj: msisupport.c
23 cl /O2 /D WIN32 /D NDEBUG /D _WINDOWS /MD /W3 /GS- /c msisupport.c
24!ENDIF
25