summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1f480c4480c7cb9e9ec4637937d939e0c77afe93 (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
27
28
29
30
31
32
33
34
35
CFLAGS:=-std=c11 -pedantic -Wall
PREFIX:=/usr/local
CC:=gcc

all: urimatch uricut urijoin uricmp uriunescape uriescape

urimatch: urimatch.c uri.h

uricut: uricut.c uri.h

urijoin: urijoin.c uri.h

uricmp: uricmp.c uri.h

uriunescape: uriunescape.c uri.h

uriescape: uriescape.c uri.h

clean:
	rm -f uricut urimatch uriunescape uriescape uricmp
	rm -f *.o

install: all
	install urimatch $(PREFIX)/bin/urimatch
	install uricut $(PREFIX)/bin/uricut
	install urijoin $(PREFIX)/bin/urijoin
	install uricmp $(PREFIX)/bin/uricmp
	install uristart $(PREFIX)/bin/uristart
	install uriprintf $(PREFIX)/bin/uriprintf
	install uriunescape $(PREFIX)/bin/uriunescape
	install uriescape $(PREFIX)/bin/uriescape
	install urilaunch $(PREFIX)/bin/urilaunch
	install search $(PREFIX)/bin/search
	install getsrv $(PREFIX)/bin/getsrv
	install urititle $(PREFIX)/bin/urititle