blob: 32bf493bd1a89da9834cebf1f86a178ec825acd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
.POSIX:
CC = c99
CFLAGS = -O3 -Wall -pedantic
OBJS = badroff.o buf.o ll.o sb.o
BIN = /usr/local/bin
badroff: $(OBJS)
cc $(OBJS) -o badroff
strip badroff
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
|