summaryrefslogtreecommitdiff
path: root/Makefile
blob: 64caa520e6934d6f5f02fbfafa54450da5305d3a (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CFLAGS:=-std=c11 -pedantic -Wall
PREFIX:=/usr/local
CC:=gcc

all: urimatch uricut urijoin uricmp uriunescape uriescape shorten urimatchpairs urigetline sqesc

shorten: LDLIBS=-lcrypto
shorten: shorten.c

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 -t $(PREFIX)/bin urimatchpairs
	install -t $(PREFIX)/bin uristart.conf
	install -t $(PREFIX)/bin sqesc
	install -t $(PREFIX)/bin ssh_hack
	install -t $(PREFIX)/bin uriqueryfilter
	install -t $(PREFIX)/bin urimatch
	install -t $(PREFIX)/bin uricut
	install -t $(PREFIX)/bin urijoin
	install -t $(PREFIX)/bin uricmp
	install -t $(PREFIX)/bin uristart
	install -t $(PREFIX)/bin uriprintf
	install -t $(PREFIX)/bin uriunescape
	install -t $(PREFIX)/bin uriescape
	install -t $(PREFIX)/bin urilaunch
	install -t $(PREFIX)/bin uri-aboslution
	install -t $(PREFIX)/bin search
	install -t $(PREFIX)/bin getsrv
	install -t $(PREFIX)/bin urititle
	install -t $(PREFIX)/bin urigetline
	install -t $(PREFIX)/bin copy_start_nevermind.sh
	install -t $(PREFIX)/bin choose
	install -t $(PREFIX)/bin query_param
	install -t $(PREFIX)/bin data_handler
	install -t $(PREFIX)/bin unshorten.sh
	install -t $(PREFIX)/bin shorten
	install -t $(PREFIX)/bin urnresolve
	install -t $(PREFIX)/bin urnstart
	install -t $(PREFIX)/bin rfc-search
	install -t $(PREFIX)/bin urilist
	install -t $(PREFIX)/bin rfc-list
	install -t $(PREFIX)/bin man-list
	chgrp shorten $(PREFIX)/bin/shorten && chmod g+s $(PREFIX)/bin/shorten || true #ignore this error