summaryrefslogtreecommitdiff
path: root/getconf/Makefile
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-04-09 13:02:16 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-04-09 13:02:16 -0500
commit4a2c467b9ddef475eb26a849958fd7c7e0e281d4 (patch)
treed72b278bcc31ef865183a186f54aef37afdbcec4 /getconf/Makefile
parentba7201c3c30bf9d74db3b54f666ec541661760bf (diff)
downloadshimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.tar.gz
shimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.tar.bz2
shimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.tar.xz
shimmy-4a2c467b9ddef475eb26a849958fd7c7e0e281d4.zip
Presenting the world's third-worst build system
Diffstat (limited to 'getconf/Makefile')
-rw-r--r--getconf/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/getconf/Makefile b/getconf/Makefile
new file mode 100644
index 0000000..9abdd88
--- /dev/null
+++ b/getconf/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+
+CFLAGS=-D _POSIX_C_SOURCE=200809L -D _XOPEN_SOURCE=700
+
+getconf: getconf.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+clean:
+ -rm getconf
+
+install: getconf
+ cp getconf $(DESTDIR)/usr/bin/getconf
+ cp getconf.1 $(DESTDIR)/usr/share/man/man1/getconf.1
+