diff src/Makefile.in.in @ 448:3078fd1074e8 r21-2-39

Import from CVS: tag r21-2-39
author cvs
date Mon, 13 Aug 2007 11:38:25 +0200
parents abe6d1db359e
children 223736d75acb
line wrap: on
line diff
--- a/src/Makefile.in.in	Mon Aug 13 11:37:23 2007 +0200
+++ b/src/Makefile.in.in	Mon Aug 13 11:38:25 2007 +0200
@@ -147,7 +147,11 @@
 
 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all)
 cflags   = $(CFLAGS) $(cppflags)
+#if defined (WIN32_NATIVE) || defined (CYGWIN)
+ldflags  = $(LDFLAGS) -mwindows $(ld_switch_all) $(ld_dynamic_link_flags)
+#else
 ldflags  = $(LDFLAGS) $(ld_switch_all) $(ld_dynamic_link_flags)
+#endif
 
 #ifdef SOLARIS2
 %.o : %.c
@@ -741,7 +745,7 @@
 	cd ${srcdir}; hdrdir2=`pwd`; cd $$hdir; \
 	test "$$hdrdir2" != "$$hdir" && hdir="$$hdir $$hdrdir2"; \
 	(for thisdir in $$hdir; do \
-		cd $$hdir && \
+		cd $$thisdir && \
 		(hdrtars=; \
 		for hdrfile in *.h; do \
 			hdrtars="$$hdrtars $$hdrfile"; \