-
Notifications
You must be signed in to change notification settings - Fork 88
/
Makefile
26 lines (20 loc) · 640 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CC ?= gcc
DESTDIR ?= /
prefix ?= /usr
exec_prefix ?= $(prefix)
bindir ?= $(exec_prefix)/bin
datarootdir ?= $(prefix)/share
datadir ?= $(datarootdir)
mandir ?= $(datarootdir)/man
man1dir ?= $(mandir)/man1
onesixtyone: onesixtyone.c
$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o onesixtyone onesixtyone.c
solaris: onesixtyone.c
cc -o onesixtyone onesixtyone.c -lsocket -lnsl
clean:
rm -rf onesixtyone
install:
install -p -D onesixtyone $(DESTDIR)$(bindir)/onesixtyone
install -p -D -m 0644 dict.txt $(DESTDIR)$(datadir)/onesixtyone/dict.txt
install -p -m 0644 -D onesixtyone.1 $(DESTDIR)$(man1dir)/onesixtyone.1
.PHONY: solaris clean