Use automake

This commit is contained in:
Kristian Høgsberg 2010-10-12 17:24:20 -04:00
parent 49291497d3
commit f0152daad7
17 changed files with 138 additions and 190 deletions

View file

@ -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
View 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

View file

@ -1,7 +0,0 @@
<protocol name="screenshooter">
<interface name="screenshooter" version="1">
<request name="shoot"/>
</interface>
</protocol>