2010-06-05 05:46:50 +04:00
|
|
|
include config.mk
|
|
|
|
|
2010-08-17 00:43:03 +04:00
|
|
|
subdirs = clients spec data
|
2010-08-10 22:12:05 +04:00
|
|
|
libs = libwayland-server.so libwayland-client.so
|
2010-06-05 05:46:50 +04:00
|
|
|
|
2010-08-03 17:26:44 +04:00
|
|
|
all : $(libs) compositor subdirs-all scanner
|
2010-06-05 05:46:50 +04:00
|
|
|
|
2010-08-05 06:44:55 +04:00
|
|
|
headers = \
|
|
|
|
wayland-util.h \
|
|
|
|
wayland-server-protocol.h \
|
2010-08-10 22:12:05 +04:00
|
|
|
wayland-server.h \
|
2010-08-05 06:44:55 +04:00
|
|
|
wayland-client-protocol.h \
|
|
|
|
wayland-client.h \
|
|
|
|
|
2010-06-05 05:46:50 +04:00
|
|
|
libwayland-server.so : \
|
2010-08-03 17:26:44 +04:00
|
|
|
wayland-protocol.o \
|
2010-08-10 22:12:05 +04:00
|
|
|
wayland-server.o \
|
2010-06-05 05:46:50 +04:00
|
|
|
event-loop.o \
|
|
|
|
connection.o \
|
|
|
|
wayland-util.o \
|
2010-08-03 17:26:44 +04:00
|
|
|
wayland-hash.o
|
2010-06-05 05:46:50 +04:00
|
|
|
|
2010-08-10 22:12:05 +04:00
|
|
|
libwayland-client.so : \
|
2010-08-03 17:26:44 +04:00
|
|
|
wayland-protocol.o \
|
2010-06-05 05:46:50 +04:00
|
|
|
wayland-client.o \
|
|
|
|
connection.o \
|
|
|
|
wayland-util.o \
|
2010-08-03 17:26:44 +04:00
|
|
|
wayland-hash.o
|
|
|
|
|
2010-08-10 22:12:05 +04:00
|
|
|
wayland-server.o : wayland-server-protocol.h
|
2010-08-03 17:26:44 +04:00
|
|
|
wayland-client.o : wayland-client-protocol.h
|
|
|
|
|
|
|
|
wayland-protocol.c : protocol.xml scanner
|
|
|
|
./scanner code < $< > $@
|
|
|
|
|
|
|
|
wayland-server-protocol.h : protocol.xml scanner
|
|
|
|
./scanner server-header < $< > $@
|
|
|
|
|
|
|
|
wayland-client-protocol.h : protocol.xml scanner
|
|
|
|
./scanner client-header < $< > $@
|
2010-06-05 05:46:50 +04:00
|
|
|
|
|
|
|
$(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-11 20:56:24 +04:00
|
|
|
compositor-drm.o \
|
2010-06-14 19:54:00 +04:00
|
|
|
compositor-x11.o \
|
2010-06-11 20:56:24 +04:00
|
|
|
screenshooter.o \
|
2010-08-09 22:43:33 +04:00
|
|
|
drm.o
|
2010-06-05 05:46:50 +04:00
|
|
|
|
2010-06-05 05:52:02 +04:00
|
|
|
compositor : CFLAGS += $(COMPOSITOR_CFLAGS)
|
2010-06-05 06:14:28 +04:00
|
|
|
compositor : LDLIBS += ./libwayland-server.so $(COMPOSITOR_LIBS) -rdynamic -lrt -lEGL -lm
|
2010-06-05 05:46:50 +04:00
|
|
|
|
2010-08-03 17:26:44 +04:00
|
|
|
scanner : \
|
|
|
|
scanner.o \
|
|
|
|
wayland-util.o
|
|
|
|
|
|
|
|
scanner : LDLIBS += $(EXPAT_LIBS)
|
|
|
|
|
2010-08-17 00:43:03 +04:00
|
|
|
subdirs-all subdirs-clean subdirs-install:
|
2010-06-05 05:46:50 +04:00
|
|
|
for f in $(subdirs); do $(MAKE) -C $$f $(@:subdirs-%=%); done
|
|
|
|
|
2010-08-17 00:43:03 +04:00
|
|
|
install : $(libs) compositor subdirs-install
|
2010-06-05 05:46:50 +04:00
|
|
|
install -d $(libdir) $(libdir)/pkgconfig ${udev_rules_dir}
|
|
|
|
install $(libs) $(libdir)
|
2010-08-10 22:12:05 +04:00
|
|
|
install wayland-server.pc wayland-client.pc $(libdir)/pkgconfig
|
2010-08-05 06:44:55 +04:00
|
|
|
install $(headers) $(includedir)
|
2010-06-05 05:46:50 +04:00
|
|
|
install 70-wayland.rules ${udev_rules_dir}
|
|
|
|
|
|
|
|
clean : subdirs-clean
|
2010-08-03 17:26:44 +04:00
|
|
|
rm -f compositor scanner *.o *.so
|
|
|
|
rm -f wayland-protocol.c \
|
|
|
|
wayland-server-protocol.h wayland-client-protocol.h
|
2010-06-05 05:46:50 +04:00
|
|
|
|
|
|
|
config.mk : config.mk.in
|
|
|
|
./config.status
|