]> granicus.if.org Git - postgresql/commitdiff
Generate and include manifest in standalone libpq build on Windows.
authorMagnus Hagander <magnus@hagander.net>
Thu, 10 Jan 2008 16:03:00 +0000 (16:03 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 10 Jan 2008 16:03:00 +0000 (16:03 +0000)
Hiroshi Saito

src/interfaces/libpq/win32.mak

index 6a6df50ae300e330486a36c04e5cb7b4e4fa794b..3dfbbbf203f00265871ee643454e6affa4d2098d 100644 (file)
@@ -111,6 +111,8 @@ CLEAN :
        -@erase "$(OUTDIR)\libpq.res"
        -@erase "$(OUTDIR)\$(OUTFILENAME).dll"
        -@erase "$(OUTDIR)\$(OUTFILENAME)dll.exp"
+       -@erase "$(OUTDIR)\$(OUTFILENAME).dll.manifest"
+       -@erase "$(OUTDIR)\*.idb"
        -@erase pg_config_paths.h"
 
 
@@ -209,6 +211,10 @@ LINK32_OBJS= \
        $(LINK32) @<<
        $(LINK32_FLAGS) $(LINK32_OBJS)
 <<
+# Inclusion of manifest
+!IF "$(_NMAKE_VER)" != "6.00.9782.0"
+        mt -manifest $(OUTDIR)\$(OUTFILENAME).dll.manifest -outputresource:$(OUTDIR)\$(OUTFILENAME).dll;2
+!ENDIF
 
 "$(INTDIR)\getaddrinfo.obj" : ..\..\port\getaddrinfo.c
        $(CPP) @<<