2008-12-05 06:48:50 +03:00
|
|
|
CFLAGS = @GCC_CFLAGS@
|
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
libs = libwayland-server.so libwayland.so
|
2008-12-05 06:48:50 +03:00
|
|
|
clients = flower window screenshot
|
2008-12-05 19:13:50 +03:00
|
|
|
compositors = egl-compositor glx-compositor
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +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 \
|
|
|
|
wayland-util.o
|
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
libwayland-server.so : CFLAGS += @FFI_CFLAGS@
|
|
|
|
libwayland-server.so : LDLIBS += @FFI_LIBS@ -ldl -rdynamic
|
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 \
|
|
|
|
wayland-util.o
|
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
$(libs) :
|
|
|
|
gcc -shared $^ $(LDLIBS) -o $@
|
2008-12-05 06:48:50 +03:00
|
|
|
|
|
|
|
$(compositors) $(clients) : CFLAGS += @LIBDRM_CFLAGS@
|
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
egl-compositor : \
|
|
|
|
egl-compositor.o \
|
|
|
|
evdev.o \
|
|
|
|
cairo-util.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
egl-compositor : CFLAGS += @EGL_COMPOSITOR_CFLAGS@
|
|
|
|
egl-compositor : LDLIBS += @EGL_COMPOSITOR_LIBS@ -L. -lwayland-server -rdynamic -lrt
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
glx-compositor : glx-compositor.o
|
|
|
|
glx-compositor : CFLAGS += @GL_COMPOSITOR_CFLAGS@
|
|
|
|
glx-compositor : LDLIBS += @GL_COMPOSITOR_LIBS@ -L. -lwayland-server
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
flower : flower.o wayland-glib.o cairo-util.o
|
|
|
|
window : window.o gears.o wayland-glib.o cairo-util.o
|
|
|
|
screenshot : screenshot.o wayland-glib.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
|
|
|
$(clients) : CFLAGS += @CLIENT_CFLAGS@
|
2008-12-05 19:13:50 +03:00
|
|
|
$(clients) : LDLIBS += @CLIENT_LIBS@ -L. -lwayland -lrt
|
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
|