aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7113dc5c2fd2724eeacb531bddd4ea9099f58f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.POSIX:
CC = c99
CFLAGS = -O3 -Wall -pedantic
OBJS = badroff.o buf.o ll.o sb.o
BIN = /usr/local/bin
badroff: $(OBJS)
phrase-circuit.txt: badroff phrase-circuit.src
	./badroff phrase-circuit.src > phrase-circuit.txt
badroff.o: badroff.c buf.h ll.h sb.h
buf.o: buf.c buf.h
ll.o: ll.c ll.h
sb.o: sb.c sb.h
clean:
	rm -f badroff $(OBJS) phrase-circuit.txt
install: $(BIN)/badroff
$(BIN)/badroff: badroff
	cp -f badroff $(BIN)/badroff
uninstall:
	rm -f $(BIN)/badroff