Unidiff1 files changed, 12 insertions, 3 deletions
|
diff --git a/Makefile b/Makefile index 60d8c58..4e101d3 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -12,4 +12,7 @@ INSTALL = install |
12 | # Define NO_STRCASESTR if you don't have strcasestr. |
12 | # Define NO_STRCASESTR if you don't have strcasestr. |
13 | # |
13 | # |
| |
14 | # Define NO_OPENSSL to disable linking with OpenSSL and use bundled SHA1 |
| |
15 | # implementation (slower). |
| |
16 | # |
14 | # Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin). |
17 | # Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin). |
15 | # |
18 | # |
@@ -69,5 +72,5 @@ endif |
69 | |
72 | |
70 | |
73 | |
71 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
74 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz |
72 | OBJECTS = |
75 | OBJECTS = |
73 | OBJECTS += cache.o |
76 | OBJECTS += cache.o |
@@ -124,4 +127,10 @@ ifdef NO_STRCASESTR |
124 | CFLAGS += -DNO_STRCASESTR |
127 | CFLAGS += -DNO_STRCASESTR |
125 | endif |
128 | endif |
| |
129 | ifdef NO_OPENSSL |
| |
130 | CFLAGS += -DNO_OPENSSL |
| |
131 | GIT_OPTIONS += NO_OPENSSL=1 |
| |
132 | else |
| |
133 | EXTLIBS += -lcrypto |
| |
134 | endif |
126 | |
135 | |
127 | cgit: $(OBJECTS) libgit |
136 | cgit: $(OBJECTS) libgit |
@@ -133,6 +142,6 @@ cgit.o: VERSION |
133 | |
142 | |
134 | libgit: |
143 | libgit: |
135 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 libgit.a |
144 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) libgit.a |
136 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 xdiff/lib.a |
145 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 $(GIT_OPTIONS) xdiff/lib.a |
137 | |
146 | |
138 | test: all |
147 | test: all |
|