Revision 1018 trunk/scripts/cl/adlink.bat

adlink.bat (revision 1018)
1 1
@echo off
2 2

  
3 3
REM History:  24 May 2009  Arni Magnusson created
4
REM           23 May 2013  Chris Grandin fix DLL creation
4 5

  
5 6
setlocal EnableExtensions EnableDelayedExpansion
6 7
if [%1]==[] goto HELP
......
16 17
    if "!arg!"=="-g" (
17 18
      set DEBUG="/DEBUG"
18 19
    )
20
    if "!arg!"=="-d" (
21
      set DLL="/DLL"
22
      set FN="/OUT:%~n3.dll"
23
    )
19 24
  ) else (
20 25
    if "%%~xa"=="" (
21 26
      set OBJS=!OBJS! !arg!.obj
......
29 34
set LIBPATH_MSSDK=/libpath:"%MSSDK%"\lib
30 35

  
31 36
@echo on
32
cl %OBJS% %LIBS% /link %DEBUG%
37
cl %OBJS% %LIBS% /link %DEBUG% %DLL% %FN%
33 38
@echo off
34 39

  
35 40
goto EOF

Also available in: Unified diff