chiark / gitweb /
Merge old CVS `ian-dotfiles' repo, as a subtree where we can pick bits
[ian-dotfiles.git] / from-cvs / misc / Makefile
diff --git a/from-cvs/misc/Makefile b/from-cvs/misc/Makefile
new file mode 100644 (file)
index 0000000..64249b7
--- /dev/null
@@ -0,0 +1,17 @@
+INSTALLDIR=    $(HOME)/bin
+
+TARGETS=       with-lock-ex close3onwards
+
+CC=            gcc
+CPPFLAGS=      $(OPTIONS)
+CFLAGS=                $(OPTIMISE)
+OPTIMISE=      -O2
+OPTIONS=
+
+default:       $(TARGETS)
+
+install:
+               set -e; for f in $(TARGETS); do \
+                       rm -f $(INSTALLDIR)/$$f; \
+                       ln $$f $(INSTALLDIR)/$$f; \
+               done