<?xml version="1.0" ?>
<!-- 
    Adds 'win32-sys-lib' tag to dll and module targets:
    
    Sample usage:
        <exe|dll|... ...>
            ...
            <win32-sys-lib>wsock32</win32-sys-lib>
        </exe>
    Useful when you don't want to clutter old code with __declspec(dllexport).
    
    Works with:
        autoconf, msvs2003prj
        
    Should work with:
        borland, mingw, msvc6prj,msvs2005prj,msvs2008prj
        
    Author Zbigniew Zagorski <z.zagorski@gmail.com>
-->
<makefile>
    <define-tag name="win32-sys-lib" rules="exe,dll,module">
        <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
            <sys-lib>$(value)</sys-lib>
        </if>
        <if cond="FORMAT=='autoconf'">
            <set var="__ldflags" append="1">
                <if cond="PLATFORM_WIN32=='1'">-l$(value)</if>
            </set>            
        </if>
    </define-tag>
</makefile>


