Compare commits
2 Commits
dc9899ae55
...
6b1297b685
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b1297b685 | |||
| f6a2387845 |
14
Makefile
14
Makefile
@@ -1,15 +1,9 @@
|
||||
include config.mk
|
||||
|
||||
static: src/libecrypt.c
|
||||
all: src/libecrypt.c
|
||||
$(CC) -c src/libecrypt.c -o src/libecrypt.o
|
||||
ar -rc src/libecrypt.a src/libecrypt.o
|
||||
|
||||
shared: src/libecrypt.c
|
||||
$(CC) -c -fpic src/libecrypt.c
|
||||
$(CC) -shared src/libecrypt.o libecrypt.so
|
||||
|
||||
install-static: src/libecrypt.a
|
||||
install --mode=0755 src/libecrypt.a $(PREFIX)/lib
|
||||
|
||||
install-shared: src/libecrypt.so
|
||||
install --mode=0755 src/libecrypt.so $(PREFIX)/lib
|
||||
install: src/libecrypt.a include/libecrypt.h
|
||||
install src/libecrypt.a $(PREFIX)/lib
|
||||
install include/libecrypt.h $(PREFIX)/include
|
||||
|
||||
2
README
2
README
@@ -4,6 +4,8 @@ A library which provides a random string generation function.
|
||||
|
||||
+ Usage
|
||||
|
||||
#include <libecrypt.h>
|
||||
|
||||
int main() {
|
||||
ecrypt(PASSWD_LENGTH);
|
||||
}
|
||||
|
||||
6
include/libecrypt.h
Normal file
6
include/libecrypt.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef LIBECRYPT_H_
|
||||
#define LIBECRYPT_H_
|
||||
|
||||
int ecrypt(PASSWD_LENGTH);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user