summaryrefslogtreecommitdiff
path: root/Makefile
blob: b67a2d64bf0396322b2952d69d25d990aa3ce99a (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
CFLAGS:=-std=c11 -pedantic -Wall
PREFIX:=/usr/local
CC:=gcc

all: uricut urimatch uriunescape uriescape uricmp

urimatch: urimatch.c uri.h

uricut: uricut.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 uricmp $(PREFIX)/bin/uricmp
	install uristart $(PREFIX)/bin/uristart
	install uriprintf $(PREFIX)/bin/uriprintf
	install uriunescape $(PREFIX)/bin/uriunescape
	install uriescape $(PREFIX)/bin/uriescape