summaryrefslogtreecommitdiff
path: root/hostname/Makefile
blob: bb4dc1b7b96dd081758e729785879ed72cb403f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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