summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da38641)
raw | patch | inline | side by side (parent: da38641)
author | Patrick Mauritz <oxygene@studentenbude.ath.cx> | |
Mon, 19 Sep 2005 14:11:19 +0000 (16:11 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 24 Sep 2005 18:26:22 +0000 (11:26 -0700) |
Support systems that do not install curl headers and libraries
in /usr/{include,lib}.
Signed-off-by: Patrick Mauritz <oxygene@studentenbude.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
in /usr/{include,lib}.
Signed-off-by: Patrick Mauritz <oxygene@studentenbude.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 8a1a06f36aa8756419ea5cf70c8d8701d29bda1e..a0e779ea4990d606fe2e8f41bb1c3c938df68881 100644 (file)
--- a/Makefile
+++ b/Makefile
# Define NO_CURL if you do not have curl installed. git-http-pull is not
# built, and you cannot use http:// and https:// transports.
#
+# Define CURLDIR=/foo/bar if your curl header and library files are in
+# /foo/bar/include and /foo/bar/lib directories.
+#
# Define NO_STRCASESTR if you don't have strcasestr.
#
# Define PPC_SHA1 environment variable when running make to make use of
endif
ifndef NO_CURL
+ ifdef CURLDIR
+ # This is still problematic -- gcc does not want -R.
+ CFLAGS += -I$(CURLDIR)/include
+ CURL_LIBCURL = -L$(CURLDIR)/lib -R$(CURLDIR)/lib -lcurl
+ else
+ CURL_LIBCURL = -lcurl
+ endif
PROGRAMS += git-http-fetch
endif
git-ssh-pull: rsh.o fetch.o
git-ssh-push: rsh.o
-git-http-fetch: LIBS += -lcurl
+git-http-fetch: LIBS += $(CURL_LIBCURL)
git-rev-list: LIBS += $(OPENSSL_LIBSSL)
init-db.o: init-db.c