2008-06-24 16:28:00 -04:00
|
|
|
--- Makefile.orig Thu Jun 19 00:49:49 2008
|
|
|
|
+++ Makefile Thu Jun 19 08:59:54 2008
|
2008-04-26 05:24:04 -04:00
|
|
|
@@ -164,15 +164,15 @@ uname_P := $(shell sh -c 'uname -p 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)
|
|
|
|
STRIP ?= strip
|
|
|
|
|
|
|
|
-prefix = $(HOME)
|
|
|
|
+#prefix = $(HOME)
|
|
|
|
bindir = $(prefix)/bin
|
2008-03-28 15:06:20 -04:00
|
|
|
-mandir = $(prefix)/share/man
|
|
|
|
+mandir = $(prefix)/man
|
2008-02-08 12:56:00 -05:00
|
|
|
infodir = $(prefix)/share/info
|
2008-03-28 15:06:20 -04:00
|
|
|
gitexecdir = $(bindir)
|
|
|
|
sharedir = $(prefix)/share
|
2008-04-26 05:24:04 -04:00
|
|
|
@@ -184,7 +184,7 @@ else
|
2007-05-08 05:48:07 -04:00
|
|
|
sysconfdir = $(prefix)/etc
|
|
|
|
endif
|
2007-12-17 15:00:05 -05:00
|
|
|
lib = lib
|
2007-05-08 05:48:07 -04:00
|
|
|
-ETC_GITCONFIG = $(sysconfdir)/gitconfig
|
2007-04-20 04:44:40 -04:00
|
|
|
+ETC_GITCONFIG = $(SYSCONFDIR)/gitconfig
|
|
|
|
# DESTDIR=
|
|
|
|
|
|
|
|
# default configuration for gitweb
|
2008-06-24 16:28:00 -04:00
|
|
|
@@ -207,15 +207,15 @@ GITWEB_SITE_FOOTER =
|
2006-11-12 10:59:05 -05:00
|
|
|
|
2008-02-08 12:56:00 -05:00
|
|
|
export prefix bindir gitexecdir sharedir template_dir htmldir 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
|
2007-12-17 15:00:05 -05:00
|
|
|
+TCL_PATH ?= tclsh
|
2007-06-14 17:44:49 -04:00
|
|
|
+TCLTK_PATH ?= wish
|
|
|
|
|
|
|
|
export TCL_PATH TCLTK_PATH
|
|
|
|
|
2008-06-24 16:28:00 -04:00
|
|
|
@@ -662,11 +662,10 @@ ifeq ($(uname_S),FreeBSD)
|
2008-04-26 05:24:04 -04:00
|
|
|
DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
|
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
|
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
|
|
|
|
+ BASIC_CFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include
|
|
|
|
+ BASIC_LDFLAGS += -L${X11BASE}/lib -L${LOCALBASE}/lib
|
|
|
|
endif
|
|
|
|
ifeq ($(uname_S),NetBSD)
|
|
|
|
ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
|
2008-06-24 16:28:00 -04:00
|
|
|
@@ -774,7 +773,7 @@ endif
|
2007-12-17 15:00:05 -05:00
|
|
|
EXTLIBS += -lz
|
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)
|
2008-06-24 16:28:00 -04:00
|
|
|
@@ -1239,7 +1238,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
|
|
|
|
|
2007-12-17 15:00:05 -05:00
|
|
|
test-date$X: date.o ctype.o
|