add header file to avoid implicit declaration warning
This commit is contained in:
parent
dc9899ae55
commit
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
|
||||
|
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
|
Loading…
Reference in New Issue
Block a user