5050
5151# DEFINES += -DUSE_STDEV
5252
53- GIT_VERSION = 0.99.7 .GIT
53+ GIT_VERSION = 0.99.8 .GIT
5454
5555CFLAGS = -g -O2 -Wall
5656ALL_CFLAGS = $(CFLAGS ) $(PLATFORM_DEFINES ) $(DEFINES )
@@ -103,25 +103,29 @@ SIMPLE_PROGRAMS = \
103103
104104# ... and all the rest
105105PROGRAMS = \
106- git-apply$X git-cat-file$X git-checkout-index$X \
107- git-clone-pack$X git-commit-tree$X git-convert-objects$X \
108- git-diff-files$X git-diff-index$X git-diff-stages$X \
109- git-diff-tree$X git-fetch-pack$X git-fsck-objects$X \
110- git-hash-object$X git-init-db$X git-local-fetch$X \
111- git-ls-files$X git-ls-tree$X git-merge-base$X \
112- git-merge-index$X git-mktag$X git-pack-objects$X \
113- git-patch-id$X git-peek-remote$X git-prune-packed$X \
114- git-read-tree$X git-receive-pack$X git-rev-list$X \
115- git-rev-parse$X git-send-pack$X git-show-branch$X \
116- git-show-index$X git-ssh-fetch$X git-ssh-upload$X \
117- git-tar-tree$X git-unpack-file$X git-unpack-objects$X \
118- git-update-index$X git-update-server-info$X \
119- git-upload-pack$X git-verify-pack$X git-write-tree$X \
120- git-update-ref$X $(SIMPLE_PROGRAMS )
106+ git-apply$X git-cat-file$X \
107+ git-checkout-index$X git-clone-pack$X git-commit-tree$X \
108+ git-convert-objects$X git-diff-files$X \
109+ git-diff-index$X git-diff-stages$X \
110+ git-diff-tree$X git-fetch-pack$X git-fsck-objects$X \
111+ git-hash-object$X git-init-db$X \
112+ git-local-fetch$X git-ls-files$X git-ls-tree$X git-merge-base$X \
113+ git-merge-index$X git-mktag$X git-pack-objects$X git-patch-id$X \
114+ git-peek-remote$X git-prune-packed$X git-read-tree$X \
115+ git-receive-pack$X git-rev-list$X git-rev-parse$X \
116+ git-send-pack$X git-show-branch$X \
117+ git-show-index$X git-ssh-fetch$X \
118+ git-ssh-upload$X git-tar-tree$X git-unpack-file$X \
119+ git-unpack-objects$X git-update-index$X git-update-server-info$X \
120+ git-upload-pack$X git-verify-pack$X git-write-tree$X \
121+ git-update-ref$X git-symbolic-ref$X \
122+ $(SIMPLE_PROGRAMS )
121123
122124# Backward compatibility -- to be removed after 1.0
123125PROGRAMS += git-ssh-pull$X git-ssh-push$X
124126
127+ GIT_LIST_TWEAK =
128+
125129PYMODULES = \
126130 gitMergeCommon.py
127131
@@ -131,6 +135,8 @@ endif
131135
132136ifdef WITH_SEND_EMAIL
133137 SCRIPT_PERL += git-send-email.perl
138+ else
139+ GIT_LIST_TWEAK += -e '/^send-email$$/d'
134140endif
135141
136142LIB_FILE =libgit.a
@@ -181,6 +187,10 @@ endif
181187ifneq (,$(findstring arm,$(shell uname -m) ) )
182188 ARM_SHA1 = YesPlease
183189endif
190+ ifeq ($(shell uname -s) ,OpenBSD)
191+ NEEDS_LIBICONV = YesPlease
192+ PLATFORM_DEFINES += -I/usr/local/include -L/usr/local/lib
193+ endif
184194
185195ifndef NO_CURL
186196 ifdef CURLDIR
@@ -206,18 +216,32 @@ endif
206216ifndef NO_OPENSSL
207217 LIB_OBJS += epoch.o
208218 OPENSSL_LIBSSL = -lssl
219+ ifdef OPENSSLDIR
220+ # Again this may be problematic -- gcc does not always want -R.
221+ CFLAGS += -I$(OPENSSLDIR)/include
222+ OPENSSL_LINK = -L$(OPENSSLDIR)/lib -R$(OPENSSLDIR)/lib
223+ else
224+ OPENSSL_LINK =
225+ endif
209226else
210227 DEFINES += '-DNO_OPENSSL'
211228 MOZILLA_SHA1 = 1
212229 OPENSSL_LIBSSL =
213230endif
214231ifdef NEEDS_SSL_WITH_CRYPTO
215- LIB_4_CRYPTO = -lcrypto -lssl
232+ LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto -lssl
216233else
217- LIB_4_CRYPTO = -lcrypto
234+ LIB_4_CRYPTO = $(OPENSSL_LINK) -lcrypto
218235endif
219236ifdef NEEDS_LIBICONV
220- LIB_4_ICONV = -liconv
237+ ifdef ICONVDIR
238+ # Again this may be problematic -- gcc does not always want -R.
239+ CFLAGS += -I$(ICONVDIR)/include
240+ ICONV_LINK = -L$(ICONVDIR)/lib -R$(ICONVDIR)/lib
241+ else
242+ ICONV_LINK =
243+ endif
244+ LIB_4_ICONV = $(ICONV_LINK) -liconv
221245else
222246 LIB_4_ICONV =
223247endif
@@ -273,8 +297,13 @@ all:
273297git : git.sh Makefile
274298 rm -f $@ + $@
275299 sed -e ' 1s|#!.*/sh|#!$(SHELL_PATH)|' \
300+ <<<<<<< Makefile
276301 -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
277302 -e 's/@@X@@/$(X)/g' <$@.sh >$@+
303+ ====== =
304+ -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
305+ $(GIT_LIST_TWEAK) <$@.sh >$@+
306+ >>>>>>> .merge_file_3QHyD4
278307 chmod +x $@+
279308 mv $@+ $@
280309
0 commit comments