aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 63715a3c6a827f92ab7b99c829779c4dbaf1a5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:
OBJS = strbst.o ll.o nodelink.o read.o main.o
CFLAGS = -Wall -pedantic -O2
CC = c99
BIN = /usr/local/bin
OUT = tmplt
$(OUT): $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@
	strip $@
clean:
	rm -f $(OBJS) $(OUT)
install:
	cp -f $(OUT) $(BIN)/$(OUT)
uninstall:
	rm -f $(BIN)/$(OUT)
strbst.o: strbst.c strbst.h
ll.o: ll.c ll.h
nodelink.o: nodelink.c nodelink.h strbst.h
read.o: read.c read.h strbst.h nodelink.h
main.o: main.c