changeset 16031:5e92da241aba

(emacsclient): Link with getopt. Add -DVERSION so emacsclient knows its version number.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 Sep 1996 18:25:38 +0000
parents fb38057473c8
children 8f14513f5dfb
files lib-src/Makefile.in
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/Makefile.in	Sun Sep 01 18:25:21 1996 +0000
+++ b/lib-src/Makefile.in	Sun Sep 01 18:25:38 1996 +0000
@@ -385,8 +385,10 @@
 emacsserver: ${srcdir}/emacsserver.c ../src/config.h
 	$(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
 
-emacsclient: ${srcdir}/emacsclient.c ../src/config.h
-	$(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient
+emacsclient: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
+	$(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS)  \
+	   -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \
+	   $(LOADLIBES) -o emacsclient
 
 hexl: ${srcdir}/hexl.c
 	$(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl