aboutsummaryrefslogtreecommitdiff
path: root/getopt-ul/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-08-20 10:59:40 +0000
committermerakor <cem@ckyln.com>2020-08-20 10:59:40 +0000
commit9624232b837be04bfc9658b3ab82ac3f1aafc704 (patch)
tree0345f1cb3477cd78554187122d790e77f2807858 /getopt-ul/Makefile
parent5287d503590a87e06207457f27059fc941275cf4 (diff)
downloadcpt-9624232b837be04bfc9658b3ab82ac3f1aafc704.tar.gz
cpt: provide getopt from util-linux
FossilOrigin-Name: 625f8a954bc9650126ce37cea8a1b7407c7b893e37d777f57f4a316b1ce17044
Diffstat (limited to 'getopt-ul/Makefile')
-rw-r--r--getopt-ul/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/getopt-ul/Makefile b/getopt-ul/Makefile
new file mode 100644
index 0000000..782240c
--- /dev/null
+++ b/getopt-ul/Makefile
@@ -0,0 +1,15 @@
+include ../config.mk
+
+getopt: getopt.c
+ ${CC} -include config.h ${CFLAGS} ${LDFLAGS} -o getopt getopt.c
+
+clean:
+ rm -f getopt
+
+install:
+ install -Dm755 getopt ${DESTDIR}${BINDIR}/getopt
+
+uninstall:
+ rm -f ${DESTDIR}${BINDIR}/getopt
+
+.PHONY: all install uninstall clean