[project @ 2003-05-30 10:13:05 by simonmar]
[ghc-hetmet.git] / glafp-utils / lndir / Makefile
index 3e31171..d85f92c 100644 (file)
@@ -1,8 +1,15 @@
-TOP=../..
-include $(TOP)/mk/gen.mk
+TOP=..
+include $(TOP)/mk/boilerplate.mk
 
-SRCS=lndir.c
-PROG=lndir
+C_SRCS=lndir.c
+C_PROG=lndir
+
+CLEAN_FILES += $(C_PROG)$(exeext) $(C_OBJS)
 DESTDIR=$(INSTBINDIR)
 
-include $(TOP)/mk/Cprog.mk
+include $(TOP)/mk/target.mk
+
+# Win32: cygwin supports symlinks, so make sure we
+#        don't feed in the mingw flags here. In other
+#        words, lndir.exe is a cygwin-based app.
+CC_OPTS := $(filter-out -mno-cygwin,$(CC_OPTS))