diff options
| author | Michael Albinus | 2007-12-02 16:23:40 +0000 |
|---|---|---|
| committer | Michael Albinus | 2007-12-02 16:23:40 +0000 |
| commit | 033b73e2e09d45b9f71596d3c88e3f237006cd64 (patch) | |
| tree | d046f730bef86a344d40e3f829223842046b427b /src/Makefile.in | |
| parent | 131e41336f44d0d706329d16f4213670cb50f48a (diff) | |
| download | emacs-033b73e2e09d45b9f71596d3c88e3f237006cd64.tar.gz emacs-033b73e2e09d45b9f71596d3c88e3f237006cd64.zip | |
* config.in (HAVE_DBUS): Add.
* Makefile.in: (HAVE_DBUS): Add D-Bus definitions if defined.
(ALL_CFLAGS): Add ${DBUS_CFLAGS}.
(obj): Add $(DBUS_OBJ).
(LIBES): Add $(DBUS_LIBS).
(dbusbind.o): New target.
* dbusbind.c: New file.
* emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
* keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
(Qdbus_event) New Lisp symbol.
(kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
(gobble_input): Call xd_read_queued_messages, reading D-Bus
messages.
(keys_of_keyboard ): Define dbus-event.
* termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
Diffstat (limited to 'src/Makefile.in')
| -rw-r--r-- | src/Makefile.in | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index b171fbf8e82..fd8afdc99ba 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -262,6 +262,12 @@ TOOLKIT_DEFINES = | |||
| 262 | #endif | 262 | #endif |
| 263 | #endif | 263 | #endif |
| 264 | 264 | ||
| 265 | #ifdef HAVE_DBUS | ||
| 266 | DBUS_CFLAGS = @DBUS_CFLAGS@ | ||
| 267 | DBUS_LIBS = @DBUS_LIBS@ | ||
| 268 | DBUS_OBJ = dbusbind.o | ||
| 269 | #endif | ||
| 270 | |||
| 265 | /* DO NOT use -R. There is a special hack described in lastfile.c | 271 | /* DO NOT use -R. There is a special hack described in lastfile.c |
| 266 | which is used instead. Some initialized data areas are modified | 272 | which is used instead. Some initialized data areas are modified |
| 267 | at initial startup, then labeled as part of the text area when | 273 | at initial startup, then labeled as part of the text area when |
| @@ -275,7 +281,7 @@ TOOLKIT_DEFINES = | |||
| 275 | 281 | ||
| 276 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM | 282 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM |
| 277 | since it may have -I options that should override those two. */ | 283 | since it may have -I options that should override those two. */ |
| 278 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${CFLAGS} | 284 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} |
| 279 | .c.o: | 285 | .c.o: |
| 280 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | 286 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
| 281 | 287 | ||
| @@ -588,7 +594,7 @@ emacsappsrc = ${srcdir}/../mac/Emacs.app/ | |||
| 588 | whose initialized data areas should be dumped as pure by dump-emacs. */ | 594 | whose initialized data areas should be dumped as pure by dump-emacs. */ |
| 589 | obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \ | 595 | obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \ |
| 590 | charset.o coding.o category.o ccl.o \ | 596 | charset.o coding.o category.o ccl.o \ |
| 591 | cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ)\ | 597 | cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ |
| 592 | emacs.o keyboard.o macros.o keymap.o sysdep.o \ | 598 | emacs.o keyboard.o macros.o keymap.o sysdep.o \ |
| 593 | buffer.o filelock.o insdel.o marker.o \ | 599 | buffer.o filelock.o insdel.o marker.o \ |
| 594 | minibuf.o fileio.o dired.o filemode.o \ | 600 | minibuf.o fileio.o dired.o filemode.o \ |
| @@ -938,8 +944,8 @@ SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \ | |||
| 938 | Note that SunOS needs -lm to come before -lc; otherwise, you get | 944 | Note that SunOS needs -lm to come before -lc; otherwise, you get |
| 939 | duplicated symbols. If the standard libraries were compiled | 945 | duplicated symbols. If the standard libraries were compiled |
| 940 | with GCC, we might need gnulib again after them. */ | 946 | with GCC, we might need gnulib again after them. */ |
| 941 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) LIBGPM \ | 947 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \ |
| 942 | LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ | 948 | LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ |
| 943 | LIBS_DEBUG $(GETLOADAVG_LIBS) $(GNULIB_VAR) LIB_MATH LIB_STANDARD \ | 949 | LIBS_DEBUG $(GETLOADAVG_LIBS) $(GNULIB_VAR) LIB_MATH LIB_STANDARD \ |
| 944 | $(GNULIB_VAR) | 950 | $(GNULIB_VAR) |
| 945 | 951 | ||
| @@ -1228,9 +1234,10 @@ xselect.o: xselect.c process.h dispextern.h frame.h xterm.h blockinput.h \ | |||
| 1228 | xrdb.o: xrdb.c $(config_h) epaths.h | 1234 | xrdb.o: xrdb.c $(config_h) epaths.h |
| 1229 | xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h termhooks.h xterm.h \ | 1235 | xsmfns.o: xsmfns.c $(config_h) systime.h sysselect.h termhooks.h xterm.h \ |
| 1230 | lisp.h termopts.h | 1236 | lisp.h termopts.h |
| 1231 | gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h $(config_h) \ | 1237 | gtkutil.o: gtkutil.c gtkutil.h xterm.h lisp.h frame.h $(config_h) \ |
| 1232 | blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \ | 1238 | blockinput.h window.h atimer.h systime.h termhooks.h keyboard.h \ |
| 1233 | charset.h coding.h | 1239 | charset.h coding.h |
| 1240 | dbusbind.o: dbusbind.c termhooks.h $(config_h) | ||
| 1234 | 1241 | ||
| 1235 | hftctl.o: hftctl.c $(config_h) | 1242 | hftctl.o: hftctl.c $(config_h) |
| 1236 | sound.o: sound.c dispextern.h $(config_h) | 1243 | sound.o: sound.c dispextern.h $(config_h) |