summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-11-15 19:12:05 -0600
committerepoch <epoch@hacking.allowed.org>2020-11-15 19:12:05 -0600
commit33c881b546d40fe88ee0a8988c654d2563d38582 (patch)
treec81d389feb917efc75c0a1d3662b9a52df8ac20d /Makefile
parent4f9509b7fe0e345f5d8fa7540adba45b1a363f81 (diff)
parent07f78f990a68eda368d3e195edf34d42a196583e (diff)
downloaduritools-33c881b546d40fe88ee0a8988c654d2563d38582.tar.gz
uritools-33c881b546d40fe88ee0a8988c654d2563d38582.zip
merge conflict resolved
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1f3ccd2..1a347ca 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,10 @@ CFLAGS:=-std=c11 -pedantic -Wall
PREFIX:=/usr/local
CC:=gcc
-all: urimatch uricut urijoin uricmp uriunescape uriescape
+all: urimatch uricut urijoin uricmp uriunescape uriescape shorten
+
+shorten: LDFLAGS=-lcrypto
+shorten: shorten.c
urimatch: urimatch.c uri.h
@@ -39,3 +42,6 @@ install: all
install -t $(PREFIX)/bin query_param
install -t $(PREFIX)/bin data_handler
install -t $(PREFIX)/bin unshorten.sh
+ install -t $(PREFIX)/bin shorten
+ chgrp shorten $(PREFIX)/bin/shorten
+ chmod g+s $(PREFIX)/bin/shorten