chiark / gitweb /
autotitle builds and installs. Various fixes.
[ian-dotfiles.git] / autotitle / Makefile
1 INSTALLDIR=     $(HOME)/bin
2 INSTALLED=      $(INSTALLDIR)/autotitle
3 X11=            /usr/X11R6
4
5 CPPFLAGS=       $(OPTIONS) -I$(X11)/include
6 CFLAGS=         $(OPTIMISE)
7 OPTIMISE=       -O2
8 OPTIONS=        -DNOXTERM
9 XLIB=           -L$(X11)/lib -lX11
10
11 default:        autotitle
12
13 install:        $(INSTALLED)
14
15 $(INSTALLED):   autotitle
16                 rm -f $@
17                 ln autotitle $@
18
19 autotitle:      autotitle.c Makefile
20                 $(CC) $(CFLAGS) $(CPPFLAGS) autotitle.c -o $@ $(XLIB)
21                 strip autotitle