diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b0ccfc2 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +# 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 |