# GNU Makefile for xdeadzone(1). May also work with BSD make, since I # don't use any GNU-specific features. # Optimization flags for $(CC) OPTFLAGS=-O2 -fPIC # Add any extra libraries you need here. LIBS= # Shouldn't need to override these. VERSION=0.1 CFLAGS=-Wall -DVERSION="\"$(VERSION)"\" $(OPTFLAGS) LDFLAGS=-lX11 $(LIBS) all: xdeadzone xdeadzone.1 xdeadzone: xdeadzone.c xdeadzone.1: xdeadzone.rst echo ".. |version| replace:: $(VERSION)" > version.rst rst2man xdeadzone.rst > xdeadzone.1 clean: rm -f xdeadzone *.o core realclean: clean rm -f xdeadzone.1 version.rst .PHONY: all clean realclean