summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7edc5605a6d380a9aaf0d175881de6d74ba4d0b2 (plain) (blame)
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
CFLAGS=-std=c99 -pedantic -Wall
PREFIX=/usr/local
CC=gcc

all: cuturl matchurl urlunescape urlescape

matchurl: matchurl.c url.h

cuturl: cuturl.c url.h

urlunescape: urlunescape.c url.h

urlescape: urlescape.c url.h

clean:
	rm -f matchurl
	rm -f cuturl
	rm -f *.o

install: all
	install matchurl $(PREFIX)/bin/matchurl
	install cuturl $(PREFIX)/bin/cuturl
	install start $(PREFIX)/bin/start
	install printfurl $(PREFIX)/bin/printfurl
	install urlunescape $(PREFIX)/bin/urlunescape
	install urlescape $(PREFIX)/bin/urlescape