diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | crypt.c | 10 | ||||
-rw-r--r-- | crypt.h | 9 |
4 files changed, 12 insertions, 15 deletions
@@ -4,13 +4,11 @@ PREFIX = /usr/local #CC = gcc #CFLAGS = -Wall -Werror -Wextra -ansi -pedantic LDFLAGS = -lcrypt -ALL = crypt -all: $(ALL) -crypt: crypt.c crypt.h +all: crypt 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) + rm -f -- crypt @@ -1 +1 @@ -1.2.0 +2.0.0 @@ -1,4 +1,12 @@ -#include "crypt.h" +#define _XOPEN_SOURCE +#include <errno.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> /* strerror(3) */ +#include <unistd.h> /* crypt(3) */ + +void error(char *); +void usage(FILE *, int); int main (int argc, char **argv) { diff --git a/crypt.h b/crypt.h deleted file mode 100644 index 0a25c0d..0000000 --- a/crypt.h +++ /dev/null @@ -1,9 +0,0 @@ -#define _XOPEN_SOURCE -#include <errno.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> /* strerror(3) */ -#include <unistd.h> /* crypt(3) */ - -void error(char *); -void usage(FILE *, int); |