--- /dev/null
+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