aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b0ccfc2271068dc31f05828c49ad8d52f4093bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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