mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-24 06:59:50 -05:00
Use automake
This commit is contained in:
parent
49291497d3
commit
f0152daad7
17 changed files with 138 additions and 190 deletions
|
|
@ -1,29 +0,0 @@
|
|||
include ../config.mk
|
||||
|
||||
CFLAGS += -I../wayland $(COMPOSITOR_CFLAGS)
|
||||
LDLIBS += -L../wayland -lwayland-server $(COMPOSITOR_LIBS) -rdynamic -lrt -lm
|
||||
|
||||
all : compositor
|
||||
|
||||
compositor : \
|
||||
compositor.o \
|
||||
compositor-drm.o \
|
||||
compositor-x11.o \
|
||||
screenshooter.o \
|
||||
screenshooter-protocol.o \
|
||||
drm.o \
|
||||
shm.o
|
||||
|
||||
screenshooter.c : screenshooter-server-protocol.h
|
||||
|
||||
screenshooter-protocol.c : screenshooter.xml
|
||||
../wayland/scanner code < $< > $@
|
||||
|
||||
screenshooter-server-protocol.h : screenshooter.xml
|
||||
../wayland/scanner server-header < $< > $@
|
||||
|
||||
clean :
|
||||
rm -f compositor *.o .*.deps
|
||||
|
||||
install :
|
||||
install 70-wayland.rules ${udev_rules_dir}
|
||||
27
compositor/Makefile.am
Normal file
27
compositor/Makefile.am
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
noinst_PROGRAMS = compositor
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/wayland $(COMPOSITOR_CFLAGS)
|
||||
AM_CPPFLAGS = -DDATADIR='"$(datadir)"'
|
||||
|
||||
compositor_LDADD = \
|
||||
$(top_builddir)/wayland/libwayland-server.la \
|
||||
$(COMPOSITOR_LIBS)
|
||||
|
||||
compositor_SOURCES = \
|
||||
compositor.c \
|
||||
compositor.h \
|
||||
compositor-drm.c \
|
||||
compositor-x11.c \
|
||||
screenshooter.c \
|
||||
screenshooter-protocol.c \
|
||||
screenshooter-server-protocol.h \
|
||||
drm.c \
|
||||
shm.c
|
||||
|
||||
BUILT_SOURCES = \
|
||||
screenshooter-server-protocol.h \
|
||||
screenshooter-protocol.c
|
||||
|
||||
CLEANFILES = $(BUILT_SOURCES)
|
||||
|
||||
include $(top_srcdir)/wayland/scanner.mk
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
<protocol name="screenshooter">
|
||||
|
||||
<interface name="screenshooter" version="1">
|
||||
<request name="shoot"/>
|
||||
</interface>
|
||||
|
||||
</protocol>
|
||||
Loading…
Add table
Add a link
Reference in a new issue