summaryrefslogtreecommitdiff
path: root/Makefile
blob: f327ba128c32443729f09d7877f8717d4157b3bb (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
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