2008-12-05 06:48:50 +03:00
|
|
|
CFLAGS = @GCC_CFLAGS@
|
|
|
|
|
2008-12-10 21:44:23 +03:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2009-01-16 15:47:28 +03:00
|
|
|
udev_rules_dir = @sysconfdir@/udev/rules.d
|
2008-12-10 21:44:23 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
libs = libwayland-server.so libwayland.so
|
2009-02-21 23:22:06 +03:00
|
|
|
egl_clients = gears
|
2009-09-21 21:46:45 +04:00
|
|
|
cairo_clients = flower screenshot terminal image view
|
2008-12-19 21:47:53 +03:00
|
|
|
compositors = wayland-system-compositor
|
2010-01-25 02:10:15 +03:00
|
|
|
clients = $(egl_clients) $(cairo_clients)
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2010-01-25 02:10:15 +03:00
|
|
|
all : $(libs) $(compositors) $(clients)
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
libwayland-server.so : \
|
2008-12-05 06:48:50 +03:00
|
|
|
wayland.o \
|
|
|
|
event-loop.o \
|
|
|
|
connection.o \
|
2008-12-22 05:50:23 +03:00
|
|
|
wayland-util.o \
|
|
|
|
wayland-protocol.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
libwayland.so : \
|
2008-12-05 06:48:50 +03:00
|
|
|
wayland-client.o \
|
|
|
|
connection.o \
|
2008-12-22 05:50:23 +03:00
|
|
|
wayland-util.o \
|
|
|
|
wayland-protocol.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-25 03:30:25 +03:00
|
|
|
$(libs) : CFLAGS += -fPIC @FFI_CFLAGS@
|
|
|
|
$(libs) : LDLIBS += @FFI_LIBS@
|
2008-12-05 19:13:50 +03:00
|
|
|
$(libs) :
|
|
|
|
gcc -shared $^ $(LDLIBS) -o $@
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-19 21:47:53 +03:00
|
|
|
wayland-system-compositor : \
|
|
|
|
wayland-system-compositor.o \
|
2008-12-05 19:13:50 +03:00
|
|
|
evdev.o \
|
2008-12-10 08:40:50 +03:00
|
|
|
cairo-util.o \
|
|
|
|
wayland-util.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-19 21:47:53 +03:00
|
|
|
wayland-system-compositor : CFLAGS += @EGL_COMPOSITOR_CFLAGS@
|
2010-01-25 02:10:15 +03:00
|
|
|
wayland-system-compositor : LDLIBS += ./libwayland-server.so @EGL_COMPOSITOR_LIBS@ -rdynamic -lrt
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2009-01-15 19:37:43 +03:00
|
|
|
flower : flower.o wayland-glib.o
|
2008-12-08 03:59:11 +03:00
|
|
|
gears : gears.o window.o wayland-glib.o cairo-util.o
|
2008-12-05 19:13:50 +03:00
|
|
|
screenshot : screenshot.o wayland-glib.o
|
2008-12-08 03:59:11 +03:00
|
|
|
terminal : terminal.o window.o wayland-glib.o cairo-util.o
|
2009-02-21 23:22:06 +03:00
|
|
|
image : image.o window.o wayland-glib.o cairo-util.o
|
2009-09-21 21:46:45 +04:00
|
|
|
view : view.o window.o wayland-glib.o cairo-util.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-08 07:17:31 +03:00
|
|
|
terminal : LDLIBS += -lutil
|
2009-02-21 23:22:06 +03:00
|
|
|
image : CFLAGS += @GDK_PIXBUF_CFLAGS@
|
|
|
|
image : LDLIBS += @GDK_PIXBUF_LIBS@
|
2009-09-21 21:46:45 +04:00
|
|
|
view : CFLAGS += @POPPLER_CFLAGS@
|
|
|
|
view : LDLIBS += @POPPLER_LIBS@
|
2008-12-08 07:17:31 +03:00
|
|
|
|
2009-02-21 23:22:06 +03:00
|
|
|
$(egl_clients) : CFLAGS += @EGL_CLIENT_CFLAGS@
|
|
|
|
$(egl_clients) : LDLIBS += -L. -lwayland @EGL_CLIENT_LIBS@ -lrt
|
|
|
|
$(cairo_clients) : CFLAGS += @CAIRO_CLIENT_CFLAGS@
|
2010-01-25 02:10:15 +03:00
|
|
|
$(cairo_clients) : LDLIBS += ./libwayland.so @CAIRO_CLIENT_LIBS@ -lrt
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2009-01-27 06:54:40 +03:00
|
|
|
install : $(libs) $(compositors)
|
2009-01-16 15:47:28 +03:00
|
|
|
install -d @libdir@ @libdir@/pkgconfig ${udev_rules_dir}
|
2008-12-10 21:44:23 +03:00
|
|
|
install $(libs) @libdir@
|
|
|
|
install wayland-server.pc wayland.pc @libdir@/pkgconfig
|
2009-09-18 17:47:34 +04:00
|
|
|
install wayland-util.h wayland-client.h @includedir@
|
2009-01-16 15:47:28 +03:00
|
|
|
install 70-wayland.rules ${udev_rules_dir}
|
2008-12-10 21:44:23 +03:00
|
|
|
|
2008-12-05 06:48:50 +03:00
|
|
|
clean :
|
2008-12-05 19:13:50 +03:00
|
|
|
rm -f $(clients) $(compositors) *.o *.so
|
2008-12-05 06:48:50 +03:00
|
|
|
|
|
|
|
Makefile : Makefile.in
|
|
|
|
./config.status
|