crypt-portable

Portable version of the classic crypt(1) utility
git clone git://git.sgregoratto.me/crypt-portable
Log | Files | Refs

Makefile (455B)


      1 include Makefile.configure
      2 
      3 OBJS = des.o crypt.o compats.o
      4 
      5 crypt: $(OBJS)
      6 	$(CC) $(LDFLAGS) $(OBJS) -o $@
      7 
      8 des.o: des.h config.h
      9 crypt.o: des.h config.h
     10 
     11 install: all
     12 	mkdir -p $(DESTDIR)$(BINDIR)
     13 	mkdir -p $(DESTDIR)$(MANDIR)/man1
     14 	$(INSTALL_PROGRAM) crypt $(DESTDIR)$(BINDIR)/crypt
     15 	$(INSTALL_MAN) crypt.1 $(DESTDIR)$(MANDIR)/man1/crypt.1
     16 
     17 uninstall:
     18 	rm -f $(DESTDIR)$(BINDIR)/crypt
     19 	rm -f $(DESTDIR)$(MANDIR)/man1/crypt.1
     20 clean:
     21 	rm -f $(OBJS) crypt