From 2dba45f4aab6206025bb2f09c6e6a68d20386628 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 2 Aug 2006 09:48:18 +0000 Subject: * Makefile.in (cygpath.exe): Add rule to link cygpath against ntdll.dll. * cygpath.cc: Include DDK headers. (RtlAllocateUnicodeString): New static inline function. (get_device_name): New static function to evaluate DOS path from native NT path. (get_device_paths): New function to do the same for path lists. (doit): Call get_device_paths/get_device_name where appropriate. --- winsup/utils/Makefile.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'winsup/utils/Makefile.in') diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in index daa8e5fd1..a14a18f67 100644 --- a/winsup/utils/Makefile.in +++ b/winsup/utils/Makefile.in @@ -208,6 +208,14 @@ else $(CXX) -o $@ ${wordlist 1,3,$^} -B$(cygwin_build)/ $(DUMPER_LDFLAGS) endif +cygpath.exe: cygpath.o $(ALL_DEP_LDLIBS) +ifdef VERBOSE + $(CXX) -o $@ ${firstword $^} -B$(cygwin_build)/ $(ALL_LDFLAGS) -lntdll +else + @echo $(CXX) -o $@ ${firstword $^} ${filter-out -B%, $(ALL_LDFLAGS) -ntdll};\ + $(CXX) -o $@ ${firstword $^} -B$(cygwin_build)/ $(ALL_LDFLAGS) -ntdll +endif + %.exe: %.o $(ALL_DEP_LDLIBS) ifdef VERBOSE $(CXX) -o $@ ${firstword $^} -B$(cygwin_build)/ $(ALL_LDFLAGS) -- cgit v1.2.3