File tree 2 files changed +17
-14
lines changed 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # $Header: /cvsroot/pgsql/contrib/pgcrypto/Makefile,v 1.2 2001/01/24 03:46:16 momjian Exp $
2
+ # $Header: /cvsroot/pgsql/contrib/pgcrypto/Makefile,v 1.3 2001/02/20 15:34:14 momjian Exp $
3
3
#
4
4
5
5
subdir = contrib/pgcrypto
@@ -12,34 +12,37 @@ cryptolib = builtin
12
12
# #########################
13
13
14
14
ifeq ($(cryptolib ) , builtin)
15
- SRCS = md5.c sha1.c internal.c
15
+ CRYPTO_CFLAGS =
16
+ CRYPTO_LDFLAGS =
17
+ SRCS = md5.c sha1.c internal.c
16
18
endif
17
19
18
20
ifeq ($(cryptolib ) , openssl)
19
- cryptoinc : = -I/usr/include/openssl
20
- cryptolib : = -lcrypto
21
+ CRYPTO_CFLAGS = -I/usr/include/openssl
22
+ CRYPTO_LDFLAGS = -lcrypto
21
23
SRCS = openssl.c
22
24
endif
23
25
24
26
ifeq ($(cryptolib ) , mhash)
25
- cryptoinc =
26
- cryptolib = -lmhash
27
- SRCS = mhash.c
27
+ CRYPTO_CFLAGS = -I/usr/local/include
28
+ CRYPTO_LDFLAGS = -L/usr/local/lib -lmhash
29
+ SRCS = mhash.c
28
30
endif
29
31
30
32
ifeq ($(cryptolib ) , krb5)
31
- cryptoinc = -I/usr/include
32
- cryptolib = -ldes
33
- SRCS = krb.c
33
+ CRYPTO_CFLAGS = -I/usr/include
34
+ CRYPTO_LDFLAGS = -ldes
35
+ SRCS = krb.c
34
36
endif
35
37
36
38
NAME := pgcrypto
37
39
SRCS += pgcrypto.c encode.c
38
40
OBJS := $(SRCS:.c=.o )
41
+ SHLIB_LINK := $(CRYPTO_LDFLAGS )
39
42
SO_MAJOR_VERSION = 0
40
43
SO_MINOR_VERSION = 1
41
44
42
- override CPPFLAGS += -I $( srcdir ) $( cryptoinc )
45
+ override CPPFLAGS += $( CRYPTO_CFLAGS ) -I $( srcdir )
43
46
44
47
all : all-lib $(NAME ) .sql
45
48
Original file line number Diff line number Diff line change 31
31
* It is possible that this works with other SHA1/MD5
32
32
* implementations too.
33
33
*
34
- * $Id: krb.c,v 1.2 2001/02/10 02:31:25 tgl Exp $
34
+ * $Id: krb.c,v 1.3 2001/02/20 15:34:14 momjian Exp $
35
35
*/
36
36
37
37
#include "postgres.h"
38
38
39
39
#include "pgcrypto.h"
40
40
41
- #include " md5.h"
42
- #include " sha.h"
41
+ #include < md5.h>
42
+ #include < sha.h>
43
43
44
44
#ifndef MD5_DIGEST_LENGTH
45
45
#define MD5_DIGEST_LENGTH 16
You can’t perform that action at this time.
0 commit comments