diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-04-22 03:11:53 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-04-22 03:11:53 -0500 |
commit | 7b782cd4082e4d8aae483b5e4b68b62063ec2615 (patch) | |
tree | 19fb46da5676d7d22fdb38de428609d5757da750 /hostname/Makefile | |
parent | dbd74ddb26b5a0494ed2f075e886e3450a7ede7b (diff) | |
download | shimmy-7b782cd4082e4d8aae483b5e4b68b62063ec2615.tar.gz shimmy-7b782cd4082e4d8aae483b5e4b68b62063ec2615.tar.bz2 shimmy-7b782cd4082e4d8aae483b5e4b68b62063ec2615.tar.xz shimmy-7b782cd4082e4d8aae483b5e4b68b62063ec2615.zip |
Add initial hostname(1) implementation
Diffstat (limited to 'hostname/Makefile')
-rw-r--r-- | hostname/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 + |