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@
|
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
libs = libwayland-server.so libwayland.so
|
2008-12-08 03:59:11 +03:00
|
|
|
clients = flower gears screenshot terminal
|
2008-12-19 21:47:53 +03:00
|
|
|
compositors = wayland-system-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 \
|
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
|
|
|
|
|
|
|
$(compositors) $(clients) : CFLAGS += @LIBDRM_CFLAGS@
|
|
|
|
|
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@
|
|
|
|
wayland-system-compositor : LDLIBS += -L. -lwayland-server @EGL_COMPOSITOR_LIBS@ -rdynamic -lrt
|
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
|
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
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-08 07:17:31 +03:00
|
|
|
terminal : LDLIBS += -lutil
|
|
|
|
|
2008-12-05 06:48:50 +03:00
|
|
|
$(clients) : CFLAGS += @CLIENT_CFLAGS@
|
2008-12-12 07:18:45 +03:00
|
|
|
$(clients) : LDLIBS += -L. -lwayland @CLIENT_LIBS@ -lrt
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-10 21:44:23 +03:00
|
|
|
install : $(libs)
|
|
|
|
install -d @libdir@ @libdir@/pkgconfig
|
|
|
|
install $(libs) @libdir@
|
|
|
|
install wayland-server.pc wayland.pc @libdir@/pkgconfig
|
|
|
|
install wayland-client.h @includedir@
|
|
|
|
|
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
|