X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=from-cvs%2Fautotitle%2FMakefile;fp=from-cvs%2Fautotitle%2FMakefile;h=6a82f1377678ce5bda244b36053db7c8512c17e2;hb=4ed6df107b1db703ad86565447aa20b6385d3116;hp=0000000000000000000000000000000000000000;hpb=5f7cd9911c34368127da9819a3afc878976c02e5;p=ian-dotfiles.git diff --git a/from-cvs/autotitle/Makefile b/from-cvs/autotitle/Makefile new file mode 100644 index 0000000..6a82f13 --- /dev/null +++ b/from-cvs/autotitle/Makefile @@ -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