chiark / gitweb /
Merge old CVS `ian-dotfiles' repo, as a subtree where we can pick bits
[ian-dotfiles.git] / from-cvs / autotitle / Makefile
diff --git a/from-cvs/autotitle/Makefile b/from-cvs/autotitle/Makefile
new file mode 100644 (file)
index 0000000..6a82f13
--- /dev/null
@@ -0,0 +1,22 @@
+INSTALLDIR=    $(HOME)/bin
+INSTALLED=     $(INSTALLDIR)/autotitle
+X11=           /usr/X11R6
+
+CC=            gcc
+CPPFLAGS=      $(OPTIONS) -I$(X11)/include
+CFLAGS=                $(OPTIMISE)
+OPTIMISE=      -O2
+OPTIONS=       -DNOXTERM
+XLIB=          -L$(X11)/lib -lX11
+
+default:       autotitle
+
+install:       $(INSTALLED)
+
+$(INSTALLED):  autotitle
+               rm -f $@
+               ln autotitle $@
+
+autotitle:     autotitle.c Makefile
+               $(CC) $(CFLAGS) $(CPPFLAGS) autotitle.c -o $@ $(XLIB)
+               strip autotitle