]> git.eshelyaron.com Git - emacs.git/commitdiff
src/Makefile.in minor simplification,
authorGlenn Morris <rgm@gnu.org>
Wed, 28 Apr 2010 07:25:47 +0000 (00:25 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 28 Apr 2010 07:25:47 +0000 (00:25 -0700)
* src/Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
(WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.

src/ChangeLog
src/Makefile.in

index d8c927b89e283d06226dceaa84253bebc7f6e48e..e80ee7c2073112050abf5da5630410b44d7ce54f 100644 (file)
@@ -1,5 +1,8 @@
 2010-04-28  Glenn Morris  <rgm@gnu.org>
 
+       * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
+       (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
+
        * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
 
        * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
index bb45ad0b19de0e5c98f9f9571fccc554f5e3cbcf..974a2332be17e5048fd624eb02c614806c9ad9bf 100644 (file)
@@ -119,6 +119,13 @@ FONT_OBJ=@FONT_OBJ@
 ## Not used if HAVE_MOUSE.
 GPM_MOUSE_SUPPORT=@GPM_MOUSE_SUPPORT@
 
+BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \
+  ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
+  ${lispsource}tool-bar.elc ${lispsource}mwheel.elc
+
+X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \
+  ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc
+
 LIBSELINUX_LIBS = @LIBSELINUX_LIBS@
 
 INTERVALS_H = dispextern.h intervals.h composite.h
@@ -469,15 +476,9 @@ otherobj= $(termcapobj) lastfile.o $(mallocobj) $(WIDGET_OBJ) $(LIBOBJS)
 
 #ifdef HAVE_WINDOW_SYSTEM
 #ifdef HAVE_X_WINDOWS
-#define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
- ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
- ${lispsource}tool-bar.elc ${lispsource}mwheel.elc ${lispsource}x-dnd.elc \
- ${lispsource}term/common-win.elc ${lispsource}term/x-win.elc \
- ${lispsource}dynamic-setting.elc
+#define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT) $(X_WINDOW_SUPPORT)
 #else
-#define WINDOW_SUPPORT ${lispsource}fringe.elc ${lispsource}image.elc \
- ${lispsource}international/fontset.elc ${lispsource}dnd.elc \
- ${lispsource}tool-bar.elc ${lispsource}mwheel.elc
+#define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT)
 #endif
 #else
 #define WINDOW_SUPPORT