2010-06-05 05:46:50 +04:00
|
|
|
include config.mk
|
|
|
|
|
|
|
|
subdirs = clients
|
|
|
|
libs = libwayland-server.so libwayland.so
|
|
|
|
|
2010-06-05 05:52:02 +04:00
|
|
|
all : $(libs) compositor subdirs
|
2010-06-05 05:46:50 +04:00
|
|
|
|
|
|
|
libwayland-server.so : \
|
|
|
|
wayland.o \
|
|
|
|
event-loop.o \
|
|
|
|
connection.o \
|
|
|
|
wayland-util.o \
|
|
|
|
wayland-hash.o \
|
|
|
|
wayland-protocol.o
|
|
|
|
|
|
|
|
libwayland.so : \
|
|
|
|
wayland-client.o \
|
|
|
|
connection.o \
|
|
|
|
wayland-util.o \
|
|
|
|
wayland-hash.o \
|
|
|
|
wayland-protocol.o
|
|
|
|
|
|
|
|
$(libs) : CFLAGS += -fPIC $(FFI_CFLAGS)
|
|
|
|
$(libs) : LDLIBS += $(FFI_LIBS)
|
|
|
|
$(libs) :
|
|
|
|
gcc -shared $^ $(LDLIBS) -o $@
|
|
|
|
|
2010-06-05 05:52:02 +04:00
|
|
|
compositor : \
|
|
|
|
compositor.o \
|
2010-06-05 05:46:50 +04:00
|
|
|
evdev.o \
|
|
|
|
cairo-util.o \
|
|
|
|
wayland-util.o
|
|
|
|
|
2010-06-05 05:52:02 +04:00
|
|
|
compositor : CFLAGS += $(COMPOSITOR_CFLAGS)
|
|
|
|
compositor : LDLIBS += ./libwayland-server.so $(COMPOSITOR_LIBS) -rdynamic -lrt -lEGL
|
2010-06-05 05:46:50 +04:00
|
|
|
|
|
|
|
subdirs-all subdirs-clean :
|
|
|
|
for f in $(subdirs); do $(MAKE) -C $$f $(@:subdirs-%=%); done
|
|
|
|
|
2010-06-05 05:52:02 +04:00
|
|
|
install : $(libs) compositor
|
2010-06-05 05:46:50 +04:00
|
|
|
install -d $(libdir) $(libdir)/pkgconfig ${udev_rules_dir}
|
|
|
|
install $(libs) $(libdir)
|
|
|
|
install wayland-server.pc wayland.pc $(libdir)/pkgconfig
|
|
|
|
install wayland-util.h wayland-client.h $(includedir)
|
|
|
|
install 70-wayland.rules ${udev_rules_dir}
|
|
|
|
|
|
|
|
clean : subdirs-clean
|
2010-06-05 05:52:02 +04:00
|
|
|
rm -f compositor *.o *.so
|
2010-06-05 05:46:50 +04:00
|
|
|
|
|
|
|
config.mk : config.mk.in
|
|
|
|
./config.status
|