aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b5ddaf2d83a4aeb93c2c4deacf8ad301c06c507f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.POSIX:
.PHONY: all clean distclean install
PREFIX = /usr/local
#CC = gcc
#CFLAGS = -Wall -Werror -Wextra -ansi -pedantic
LDFLAGS = -lcrypt
ALL = crypt
all: $(ALL)
crypt: crypt.c crypt.h
install:
	mkdir -p -- $(PREFIX)/bin
	cp -- crypt $(PREFIX)/bin
	mkdir -p -- $(PREFIX)/share/man/man1
	cp -- crypt.1 $(PREFIX)/share/man/man1
clean distclean:
	rm -f -- $(ALL)