]> git.eshelyaron.com Git - emacs.git/commitdiff
(emacsclient): Link with getopt.
authorRichard M. Stallman <rms@gnu.org>
Sun, 1 Sep 1996 18:25:38 +0000 (18:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 1 Sep 1996 18:25:38 +0000 (18:25 +0000)
Add -DVERSION so emacsclient knows its version number.

lib-src/Makefile.in

index 908be0b956ba758d7f2d9a07b118622ad0933c18..eab225ce48f19fe66619e8387e58a876e5831c17 100644 (file)
@@ -385,8 +385,10 @@ yow: ${srcdir}/yow.c ../src/paths.h
 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