You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
CFLAGS = @GCC_CFLAGS@
|
|
|
|
libs = libwayland-server.so libwayland.so
|
|
clients = flower window screenshot
|
|
compositors = egl-compositor glx-compositor
|
|
|
|
all : $(libs) $(compositors) $(clients)
|
|
|
|
libwayland-server.so : \
|
|
wayland.o \
|
|
event-loop.o \
|
|
connection.o \
|
|
wayland-util.o
|
|
|
|
libwayland-server.so : CFLAGS += @FFI_CFLAGS@
|
|
libwayland-server.so : LDLIBS += @FFI_LIBS@ -ldl -rdynamic
|
|
|
|
libwayland.so : \
|
|
wayland-client.o \
|
|
connection.o \
|
|
wayland-util.o
|
|
|
|
$(libs) :
|
|
gcc -shared $^ $(LDLIBS) -o $@
|
|
|
|
$(compositors) $(clients) : CFLAGS += @LIBDRM_CFLAGS@
|
|
|
|
egl-compositor : \
|
|
egl-compositor.o \
|
|
evdev.o \
|
|
cairo-util.o
|
|
|
|
egl-compositor : CFLAGS += @EGL_COMPOSITOR_CFLAGS@
|
|
egl-compositor : LDLIBS += @EGL_COMPOSITOR_LIBS@ -L. -lwayland-server -rdynamic -lrt
|
|
|
|
glx-compositor : glx-compositor.o
|
|
glx-compositor : CFLAGS += @GL_COMPOSITOR_CFLAGS@
|
|
glx-compositor : LDLIBS += @GL_COMPOSITOR_LIBS@ -L. -lwayland-server
|
|
|
|
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
|
|
|
|
$(clients) : CFLAGS += @CLIENT_CFLAGS@
|
|
$(clients) : LDLIBS += @CLIENT_LIBS@ -L. -lwayland -lrt
|
|
|
|
clean :
|
|
rm -f $(clients) $(compositors) *.o *.so
|
|
|
|
Makefile : Makefile.in
|
|
./config.status
|
|
|