aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 81bcdc54ef654290a664d18280c8d577b3bdc692 (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 -g
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