From d20d7a88902659b28369b56ab5d1447b775fb7a1 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 31 Jan 2024 01:07:09 -0500 Subject: Initial commit. --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3