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-11 01:26:28 +03:00
|
|
|
compositors = egl-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-12 18:26:04 +03:00
|
|
|
$(libs) : CFLAGS += -fPIC
|
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 \
|
2008-12-10 08:40:50 +03:00
|
|
|
cairo-util.o \
|
|
|
|
wayland-util.o
|
2008-12-05 06:48:50 +03:00
|
|
|
|
2008-12-05 19:13:50 +03:00
|
|
|
egl-compositor : CFLAGS += @EGL_COMPOSITOR_CFLAGS@
|
2008-12-12 07:18:45 +03:00
|
|
|
egl-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
|