diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-09-14 11:13:18 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-09-14 12:41:55 -0400 |
commit | 6dd08ebbe108c2c78cc23d6af0b00a84199d8b2c (patch) | |
tree | 7670e24beb6fab2629d0ccd4451df5f90a344d89 | |
parent | 76b43326a57b6c90ca464ff11e76e1217c9b7c70 (diff) |
Move core protocol libraries into wayland/ subdirectory
-rw-r--r-- | Makefile | 60 | ||||
-rw-r--r-- | clients/Makefile | 2 | ||||
-rw-r--r-- | compositor/70-wayland.rules (renamed from 70-wayland.rules) | 0 | ||||
-rw-r--r-- | compositor/Makefile | 5 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | wayland/Makefile | 61 | ||||
-rw-r--r-- | wayland/connection.c (renamed from connection.c) | 0 | ||||
-rw-r--r-- | wayland/connection.h (renamed from connection.h) | 0 | ||||
-rw-r--r-- | wayland/event-loop.c (renamed from event-loop.c) | 0 | ||||
-rw-r--r-- | wayland/protocol.xml (renamed from protocol.xml) | 0 | ||||
-rw-r--r-- | wayland/scanner.c (renamed from scanner.c) | 0 | ||||
-rw-r--r-- | wayland/wayland-client.c (renamed from wayland-client.c) | 0 | ||||
-rw-r--r-- | wayland/wayland-client.h (renamed from wayland-client.h) | 0 | ||||
-rw-r--r-- | wayland/wayland-client.pc.in (renamed from wayland-client.pc.in) | 0 | ||||
-rw-r--r-- | wayland/wayland-hash.c (renamed from wayland-hash.c) | 0 | ||||
-rw-r--r-- | wayland/wayland-server.c (renamed from wayland-server.c) | 0 | ||||
-rw-r--r-- | wayland/wayland-server.h (renamed from wayland-server.h) | 0 | ||||
-rw-r--r-- | wayland/wayland-server.pc.in (renamed from wayland-server.pc.in) | 0 | ||||
-rw-r--r-- | wayland/wayland-util.c (renamed from wayland-util.c) | 0 | ||||
-rw-r--r-- | wayland/wayland-util.h (renamed from wayland-util.h) | 0 |
20 files changed, 69 insertions, 61 deletions
@@ -1,69 +1,15 @@ include config.mk -subdirs = compositor clients spec data -libs = libwayland-server.so libwayland-client.so +subdirs = wayland compositor clients spec data -all : $(libs) subdirs-all scanner - -headers = \ - wayland-util.h \ - wayland-server-protocol.h \ - wayland-server.h \ - wayland-client-protocol.h \ - wayland-client.h \ - -libwayland-server.so : \ - wayland-protocol.o \ - wayland-server.o \ - event-loop.o \ - connection.o \ - wayland-util.o \ - wayland-hash.o - -libwayland-client.so : \ - wayland-protocol.o \ - wayland-client.o \ - connection.o \ - wayland-util.o \ - wayland-hash.o - -wayland-server.o : wayland-server-protocol.h -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 < $< > $@ - -$(libs) : CFLAGS += -fPIC $(FFI_CFLAGS) -$(libs) : LDLIBS += $(FFI_LIBS) -$(libs) : - gcc -shared $^ $(LDLIBS) -o $@ - -scanner : \ - scanner.o \ - wayland-util.o - -scanner : LDLIBS += $(EXPAT_LIBS) +all : subdirs-all subdirs-all subdirs-clean subdirs-install: for f in $(subdirs); do $(MAKE) -C $$f $(@:subdirs-%=%); done -install : $(libs) compositor subdirs-install - install -d $(libdir) $(libdir)/pkgconfig ${udev_rules_dir} - install $(libs) $(libdir) - install wayland-server.pc wayland-client.pc $(libdir)/pkgconfig - install $(headers) $(includedir) - install 70-wayland.rules ${udev_rules_dir} +install : subdirs-install clean : subdirs-clean - rm -f scanner *.o *.so .*.deps - rm -f wayland-protocol.c \ - wayland-server-protocol.h wayland-client-protocol.h config.mk : config.mk.in ./config.status diff --git a/clients/Makefile b/clients/Makefile index 85c6d4b..222a7ae 100644 --- a/clients/Makefile +++ b/clients/Makefile @@ -1,7 +1,7 @@ include ../config.mk CFLAGS += -I.. $(CLIENT_CFLAGS) -LDLIBS += -L.. -lwayland-client $(CLIENT_LIBS) -lrt -lm +LDLIBS += -L../wayland -lwayland-client $(CLIENT_LIBS) -lrt -lm egl_clients = gears cairo_clients = flower screenshot terminal image view dnd diff --git a/70-wayland.rules b/compositor/70-wayland.rules index 49442de..49442de 100644 --- a/70-wayland.rules +++ b/compositor/70-wayland.rules diff --git a/compositor/Makefile b/compositor/Makefile index 5e67825..a17d414 100644 --- a/compositor/Makefile +++ b/compositor/Makefile @@ -1,7 +1,7 @@ include ../config.mk CFLAGS += $(COMPOSITOR_CFLAGS) -LDLIBS += -L.. -lwayland-server $(COMPOSITOR_LIBS) -rdynamic -lrt -lEGL -lm +LDLIBS += -L../wayland -lwayland-server $(COMPOSITOR_LIBS) -rdynamic -lrt -lm all : compositor @@ -15,4 +15,5 @@ compositor : \ clean : rm -f compositor *.o .*.deps -install :
\ No newline at end of file +install : + install 70-wayland.rules ${udev_rules_dir} diff --git a/configure.ac b/configure.ac index 2b5b912..2e2743f 100644 --- a/configure.ac +++ b/configure.ac @@ -25,5 +25,5 @@ AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"], [AC_MSG_ERROR([Can't find expat library. Please install expat.])]) AC_SUBST(EXPAT_LIBS) -AC_CONFIG_FILES([config.mk wayland-server.pc wayland-client.pc]) +AC_CONFIG_FILES([config.mk wayland/wayland-server.pc wayland/wayland-client.pc]) AC_OUTPUT diff --git a/wayland/Makefile b/wayland/Makefile new file mode 100644 index 0000000..827c73e --- /dev/null +++ b/wayland/Makefile @@ -0,0 +1,61 @@ +include ../config.mk + +libs = libwayland-server.so libwayland-client.so + +all : $(libs) scanner + +headers = \ + wayland-util.h \ + wayland-server-protocol.h \ + wayland-server.h \ + wayland-client-protocol.h \ + wayland-client.h \ + +libwayland-server.so : \ + wayland-protocol.o \ + wayland-server.o \ + event-loop.o \ + connection.o \ + wayland-util.o \ + wayland-hash.o + +libwayland-client.so : \ + wayland-protocol.o \ + wayland-client.o \ + connection.o \ + wayland-util.o \ + wayland-hash.o + +wayland-server.o : wayland-server-protocol.h +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 < $< > $@ + +$(libs) : CFLAGS += -fPIC $(FFI_CFLAGS) +$(libs) : LDLIBS += $(FFI_LIBS) +$(libs) : + gcc -shared $^ $(LDLIBS) -o $@ + +scanner : \ + scanner.o \ + wayland-util.o + +scanner : LDLIBS += $(EXPAT_LIBS) + +install : $(libs) compositor + install -d $(libdir) $(includedir) $(libdir)/pkgconfig + install wayland-server.pc wayland-client.pc $(libdir)/pkgconfig + install $(libs) $(libdir) + install $(headers) $(includedir) + +clean : + rm -f scanner *.o *.so .*.deps + rm -f wayland-protocol.c \ + wayland-server-protocol.h wayland-client-protocol.h diff --git a/connection.c b/wayland/connection.c index e0eee73..e0eee73 100644 --- a/connection.c +++ b/wayland/connection.c diff --git a/connection.h b/wayland/connection.h index 413977d..413977d 100644 --- a/connection.h +++ b/wayland/connection.h diff --git a/event-loop.c b/wayland/event-loop.c index 345660f..345660f 100644 --- a/event-loop.c +++ b/wayland/event-loop.c diff --git a/protocol.xml b/wayland/protocol.xml index 9da4b49..9da4b49 100644 --- a/protocol.xml +++ b/wayland/protocol.xml diff --git a/scanner.c b/wayland/scanner.c index 613e12b..613e12b 100644 --- a/scanner.c +++ b/wayland/scanner.c diff --git a/wayland-client.c b/wayland/wayland-client.c index 9715307..9715307 100644 --- a/wayland-client.c +++ b/wayland/wayland-client.c diff --git a/wayland-client.h b/wayland/wayland-client.h index 4fcb00b..4fcb00b 100644 --- a/wayland-client.h +++ b/wayland/wayland-client.h diff --git a/wayland-client.pc.in b/wayland/wayland-client.pc.in index 59a925d..59a925d 100644 --- a/wayland-client.pc.in +++ b/wayland/wayland-client.pc.in diff --git a/wayland-hash.c b/wayland/wayland-hash.c index b299a33..b299a33 100644 --- a/wayland-hash.c +++ b/wayland/wayland-hash.c diff --git a/wayland-server.c b/wayland/wayland-server.c index a64ceb8..a64ceb8 100644 --- a/wayland-server.c +++ b/wayland/wayland-server.c diff --git a/wayland-server.h b/wayland/wayland-server.h index 4405033..4405033 100644 --- a/wayland-server.h +++ b/wayland/wayland-server.h diff --git a/wayland-server.pc.in b/wayland/wayland-server.pc.in index b317461..b317461 100644 --- a/wayland-server.pc.in +++ b/wayland/wayland-server.pc.in diff --git a/wayland-util.c b/wayland/wayland-util.c index a287cce..a287cce 100644 --- a/wayland-util.c +++ b/wayland/wayland-util.c diff --git a/wayland-util.h b/wayland/wayland-util.h index 575e657..575e657 100644 --- a/wayland-util.h +++ b/wayland/wayland-util.h |