aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: b5ddaf2d83a4aeb93c2c4deacf8ad301c06c507f (plain) (tree)
1
2
3
4
5
6
7
8
9
       
                                   
                   

                                               
                 

           
                      
        
                                 
                                 
                                            
                                              

                       
.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)