From 7b782cd4082e4d8aae483b5e4b68b62063ec2615 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 22 Apr 2022 03:11:53 -0500 Subject: Add initial hostname(1) implementation --- hostname/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hostname/Makefile (limited to 'hostname/Makefile') diff --git a/hostname/Makefile b/hostname/Makefile new file mode 100644 index 0000000..bb4dc1b --- /dev/null +++ b/hostname/Makefile @@ -0,0 +1,16 @@ +.POSIX: + +VERSTR=0.7 + +CFLAGS=-D _POSIX_C_SOURCE=200809L -D _XOPEN_SOURCE=700 -D SHIMMY_VERSION=\"$(VERSTR)\" + +hostname: hostname.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< + +clean: + -rm hostname + +install: hostname + cp hostname $(DESTDIR)/usr/bin/hostname + cp hostname.1 $(DESTDIR)/usr/share/man/man1/hostname.1 + -- cgit v1.2.3-70-g09d2