2009-12-06 05:03:15 -05:00
|
|
|
--- Makefile.orig Sun Dec 6 04:51:25 2009
|
|
|
|
+++ Makefile Sun Dec 6 10:39:37 2009
|
2009-11-17 11:29:42 -05:00
|
|
|
@@ -218,7 +218,7 @@ uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo
|
2006-11-12 10:59:05 -05:00
|
|
|
|
|
|
|
# CFLAGS and LDFLAGS are for the users to override from the command line.
|
|
|
|
|
|
|
|
-CFLAGS = -g -O2 -Wall
|
|
|
|
+CFLAGS ?= -g -O2 -Wall
|
|
|
|
LDFLAGS =
|
|
|
|
ALL_CFLAGS = $(CFLAGS)
|
|
|
|
ALL_LDFLAGS = $(LDFLAGS)
|
2009-11-17 11:29:42 -05:00
|
|
|
@@ -236,22 +236,16 @@ STRIP ?= strip
|
2008-09-27 17:47:20 -04:00
|
|
|
# runtime figures out where they are based on the path to the executable.
|
|
|
|
# This can help installing the suite in a relocatable way.
|
2006-11-12 10:59:05 -05:00
|
|
|
|
|
|
|
-prefix = $(HOME)
|
|
|
|
+#prefix = $(HOME)
|
2009-04-05 06:05:35 -04:00
|
|
|
bindir_relative = bin
|
|
|
|
bindir = $(prefix)/$(bindir_relative)
|
|
|
|
-mandir = share/man
|
|
|
|
+mandir = man
|
|
|
|
infodir = share/info
|
|
|
|
-gitexecdir = libexec/git-core
|
|
|
|
+gitexecdir = libexec/git
|
2008-03-28 15:06:20 -04:00
|
|
|
sharedir = $(prefix)/share
|
2009-04-05 06:05:35 -04:00
|
|
|
template_dir = share/git-core/templates
|
|
|
|
htmldir = share/doc/git-doc
|
|
|
|
-ifeq ($(prefix),/usr)
|
|
|
|
-sysconfdir = /etc
|
2007-05-08 05:48:07 -04:00
|
|
|
-ETC_GITCONFIG = $(sysconfdir)/gitconfig
|
2009-04-05 06:05:35 -04:00
|
|
|
-else
|
|
|
|
-sysconfdir = $(prefix)/etc
|
|
|
|
-ETC_GITCONFIG = etc/gitconfig
|
|
|
|
-endif
|
2007-04-20 04:44:40 -04:00
|
|
|
+ETC_GITCONFIG = $(SYSCONFDIR)/gitconfig
|
2009-04-05 06:05:35 -04:00
|
|
|
lib = lib
|
2007-04-20 04:44:40 -04:00
|
|
|
# DESTDIR=
|
2009-08-17 10:47:54 -04:00
|
|
|
pathsep = :
|
2009-11-17 11:29:42 -05:00
|
|
|
@@ -276,16 +270,16 @@ GITWEB_SITE_FOOTER =
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2009-04-05 06:05:35 -04:00
|
|
|
export prefix bindir sharedir sysconfdir
|
2006-11-12 10:59:05 -05:00
|
|
|
|
|
|
|
-CC = gcc
|
|
|
|
+CC ?= gcc
|
|
|
|
AR = ar
|
2007-12-17 15:00:05 -05:00
|
|
|
RM = rm -f
|
2006-11-12 10:59:05 -05:00
|
|
|
TAR = tar
|
2007-12-17 15:00:05 -05:00
|
|
|
FIND = find
|
2006-11-12 10:59:05 -05:00
|
|
|
INSTALL = install
|
2007-06-14 17:44:49 -04:00
|
|
|
RPMBUILD = rpmbuild
|
2007-12-17 15:00:05 -05:00
|
|
|
-TCL_PATH = tclsh
|
2007-06-14 17:44:49 -04:00
|
|
|
-TCLTK_PATH = wish
|
2009-01-24 09:31:28 -05:00
|
|
|
-PTHREAD_LIBS = -lpthread
|
2007-12-17 15:00:05 -05:00
|
|
|
+TCL_PATH ?= tclsh
|
2007-06-14 17:44:49 -04:00
|
|
|
+TCLTK_PATH ?= wish
|
2009-01-24 09:31:28 -05:00
|
|
|
+PTHREAD_LIBS = -pthread
|
2007-06-14 17:44:49 -04:00
|
|
|
|
|
|
|
export TCL_PATH TCLTK_PATH
|
|
|
|
|
2009-12-06 05:03:15 -05:00
|
|
|
@@ -806,13 +800,12 @@ ifeq ($(uname_S),FreeBSD)
|
2009-01-24 09:31:28 -05:00
|
|
|
endif
|
2006-11-12 10:59:05 -05:00
|
|
|
endif
|
|
|
|
ifeq ($(uname_S),OpenBSD)
|
|
|
|
- NO_STRCASESTR = YesPlease
|
2008-02-08 12:56:00 -05:00
|
|
|
NO_MEMMEM = YesPlease
|
2009-06-04 14:01:56 -04:00
|
|
|
USE_ST_TIMESPEC = YesPlease
|
2006-11-12 10:59:05 -05:00
|
|
|
NEEDS_LIBICONV = YesPlease
|
2007-04-28 05:18:51 -04:00
|
|
|
- BASIC_CFLAGS += -I/usr/local/include
|
|
|
|
- BASIC_LDFLAGS += -L/usr/local/lib
|
2009-01-26 03:58:43 -05:00
|
|
|
- THREADED_DELTA_SEARCH = YesPlease
|
2007-04-28 05:18:51 -04:00
|
|
|
+ BASIC_CFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include
|
|
|
|
+ BASIC_LDFLAGS += -L${X11BASE}/lib -L${LOCALBASE}/lib
|
2009-01-26 03:58:43 -05:00
|
|
|
+ NO_PTHREADS = YesPlease
|
2007-04-28 05:18:51 -04:00
|
|
|
endif
|
|
|
|
ifeq ($(uname_S),NetBSD)
|
2009-01-26 03:58:43 -05:00
|
|
|
ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
|
2009-12-06 05:03:15 -05:00
|
|
|
@@ -1082,7 +1075,7 @@ ifndef NO_POSIX_ONLY_PROGRAMS
|
2009-01-24 09:31:28 -05:00
|
|
|
PROGRAMS += git-imap-send$X
|
2008-09-27 17:47:20 -04:00
|
|
|
endif
|
2006-11-12 10:59:05 -05:00
|
|
|
ifndef NO_OPENSSL
|
|
|
|
- OPENSSL_LIBSSL = -lssl
|
|
|
|
+ OPENSSL_LIBSSL = -lssl -lcrypto
|
|
|
|
ifdef OPENSSLDIR
|
|
|
|
BASIC_CFLAGS += -I$(OPENSSLDIR)/include
|
2007-12-17 15:00:05 -05:00
|
|
|
OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
|
2009-11-17 11:29:42 -05:00
|
|
|
@@ -1671,7 +1664,7 @@ all:: $(TEST_PROGRAMS)
|
2007-04-20 04:44:40 -04:00
|
|
|
|
|
|
|
export NO_SVN_TESTS
|
|
|
|
|
2007-06-14 17:44:49 -04:00
|
|
|
-test: all
|
|
|
|
+test:
|
2007-04-20 04:44:40 -04:00
|
|
|
$(MAKE) -C t/ all
|
|
|
|
|
2009-04-05 06:05:35 -04:00
|
|
|
test-ctype$X: ctype.o
|