673cb704b49bb2321d9124e9363dd68ffc6db961
[platform/upstream/efl.git] / src / Makefile_Ecore_X.am
1 if HAVE_ECORE_X
2
3 ### Library
4
5 lib_LTLIBRARIES += lib/ecore_x/libecore_x.la
6
7 installed_ecorexmainheadersdir = $(includedir)/ecore-x-@VMAJ@
8 dist_installed_ecorexmainheaders_DATA = \
9 lib/ecore_x/Ecore_X.h \
10 lib/ecore_x/ecore_x_version.h \
11 lib/ecore_x/Ecore_X_Atoms.h \
12 lib/ecore_x/Ecore_X_Cursor.h
13
14 lib_ecore_x_libecore_x_la_SOURCES = \
15 lib/ecore_x/ecore_x_atoms_decl.h
16
17 if HAVE_ECORE_X_XCB
18 lib_ecore_x_libecore_x_la_SOURCES += \
19 lib/ecore_x/xcb/ecore_xcb.c \
20 lib/ecore_x/xcb/ecore_xcb_atoms.c \
21 lib/ecore_x/xcb/ecore_xcb_extensions.c \
22 lib/ecore_x/xcb/ecore_xcb_shape.c \
23 lib/ecore_x/xcb/ecore_xcb_screensaver.c \
24 lib/ecore_x/xcb/ecore_xcb_sync.c \
25 lib/ecore_x/xcb/ecore_xcb_render.c \
26 lib/ecore_x/xcb/ecore_xcb_randr.c \
27 lib/ecore_x/xcb/ecore_xcb_xfixes.c \
28 lib/ecore_x/xcb/ecore_xcb_composite.c \
29 lib/ecore_x/xcb/ecore_xcb_cursor.c \
30 lib/ecore_x/xcb/ecore_xcb_damage.c \
31 lib/ecore_x/xcb/ecore_xcb_dnd.c \
32 lib/ecore_x/xcb/ecore_xcb_dpms.c \
33 lib/ecore_x/xcb/ecore_xcb_drawable.c \
34 lib/ecore_x/xcb/ecore_xcb_e.c \
35 lib/ecore_x/xcb/ecore_xcb_gc.c \
36 lib/ecore_x/xcb/ecore_xcb_image.c \
37 lib/ecore_x/xcb/ecore_xcb_input.c \
38 lib/ecore_x/xcb/ecore_xcb_gesture.c \
39 lib/ecore_x/xcb/ecore_xcb_mwm.c \
40 lib/ecore_x/xcb/ecore_xcb_pixmap.c \
41 lib/ecore_x/xcb/ecore_xcb_present.c \
42 lib/ecore_x/xcb/ecore_xcb_region.c \
43 lib/ecore_x/xcb/ecore_xcb_selection.c \
44 lib/ecore_x/xcb/ecore_xcb_textlist.c \
45 lib/ecore_x/xcb/ecore_xcb_events.c \
46 lib/ecore_x/xcb/ecore_xcb_keymap.c \
47 lib/ecore_x/xcb/ecore_xcb_keygrab.c \
48 lib/ecore_x/xcb/ecore_xcb_netwm.c \
49 lib/ecore_x/xcb/ecore_xcb_icccm.c \
50 lib/ecore_x/xcb/ecore_xcb_window.c \
51 lib/ecore_x/xcb/ecore_xcb_window_prop.c \
52 lib/ecore_x/xcb/ecore_xcb_window_shape.c \
53 lib/ecore_x/xcb/ecore_xcb_window_shadow.c \
54 lib/ecore_x/xcb/ecore_xcb_xinerama.c \
55 lib/ecore_x/xcb/ecore_xcb_error.c \
56 lib/ecore_x/xcb/ecore_xcb_xtest.c \
57 lib/ecore_x/xcb/ecore_xcb_vsync.c \
58 lib/ecore_x/xcb/ecore_xcb_xdefaults.c \
59 lib/ecore_x/xcb/ecore_xcb_private.h
60 else
61 lib_ecore_x_libecore_x_la_SOURCES += \
62 lib/ecore_x/xlib/ecore_x.c \
63 lib/ecore_x/xlib/ecore_x_dnd.c \
64 lib/ecore_x/xlib/ecore_x_sync.c \
65 lib/ecore_x/xlib/ecore_x_randr.c \
66 lib/ecore_x/xlib/ecore_x_fixes.c \
67 lib/ecore_x/xlib/ecore_x_damage.c \
68 lib/ecore_x/xlib/ecore_x_composite.c \
69 lib/ecore_x/xlib/ecore_x_error.c \
70 lib/ecore_x/xlib/ecore_x_events.c \
71 lib/ecore_x/xlib/ecore_x_icccm.c \
72 lib/ecore_x/xlib/ecore_x_keygrab.c \
73 lib/ecore_x/xlib/ecore_x_netwm.c \
74 lib/ecore_x/xlib/ecore_x_mwm.c \
75 lib/ecore_x/xlib/ecore_x_e.c \
76 lib/ecore_x/xlib/ecore_x_selection.c \
77 lib/ecore_x/xlib/ecore_x_window.c \
78 lib/ecore_x/xlib/ecore_x_window_prop.c \
79 lib/ecore_x/xlib/ecore_x_window_shape.c \
80 lib/ecore_x/xlib/ecore_x_pixmap.c \
81 lib/ecore_x/xlib/ecore_x_present.c \
82 lib/ecore_x/xlib/ecore_x_gc.c \
83 lib/ecore_x/xlib/ecore_x_xinerama.c \
84 lib/ecore_x/xlib/ecore_x_screensaver.c \
85 lib/ecore_x/xlib/ecore_x_dpms.c \
86 lib/ecore_x/xlib/ecore_x_drawable.c \
87 lib/ecore_x/xlib/ecore_x_cursor.c \
88 lib/ecore_x/xlib/ecore_x_test.c \
89 lib/ecore_x/xlib/ecore_x_atoms.c \
90 lib/ecore_x/xlib/ecore_x_region.c \
91 lib/ecore_x/xlib/ecore_x_image.c \
92 lib/ecore_x/xlib/ecore_x_xi2.c \
93 lib/ecore_x/xlib/ecore_x_vsync.c \
94 lib/ecore_x/xlib/ecore_x_gesture.c \
95 lib/ecore_x/xlib/ecore_x_private.h
96 endif
97
98 lib_ecore_x_libecore_x_la_CPPFLAGS = \
99 -I$(top_builddir)/src/lib/efl \
100 @ECORE_X_CFLAGS@ @ECORE_CON_CFLAGS@ \
101 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
102 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
103 -DPACKAGE_DATA_DIR=\"$(datadir)/ecore_x\"
104 if HAVE_ECORE_X_XCB
105 lib_ecore_x_libecore_x_la_CPPFLAGS += -I$(top_builddir)/src/lib/ecore_x/xcb
106 endif
107
108 lib_ecore_x_libecore_x_la_LIBADD = @ECORE_X_LIBS@ @USE_ECORE_CON_LIBS@
109 lib_ecore_x_libecore_x_la_DEPENDENCIES = @ECORE_X_INTERNAL_LIBS@ @USE_ECORE_CON_INTERNAL_LIBS@
110 lib_ecore_x_libecore_x_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
111
112 if HAVE_ECORE_X_XCB
113 MAINTAINERCLEANFILES += \
114 $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h \
115 $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table_h
116
117 BUILT_SOURCES += \
118 $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h
119
120 $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h: $(KEYSYMDEFS) utils/ecore/makekeys$(EXEEXT)
121         $(MKDIR_P) $(top_builddir)/src/lib/ecore_x/xcb
122         $(top_builddir)/src/utils/ecore/makekeys $(KEYSYMDEFS) > $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table_h
123         mv -f $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table_h $(top_builddir)/src/lib/ecore_x/xcb/ecore_xcb_keysym_table.h
124 endif
125
126 ### Utils
127
128 noinst_PROGRAMS += utils/ecore/makekeys
129
130 utils_ecore_makekeys_SOURCES = utils/ecore/makekeys.c
131 utils_ecore_makekeys_CFLAGS = @ECORE_X_CFLAGS@
132
133 endif
134 EXTRA_DIST2 += utils/ecore/mkks.sh