-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
58 lines (46 loc) · 1.66 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(GCC_CFLAGS)
AM_CPPFLAGS = -I$(builddir)/protocol
bin_PROGRAMS =
BUILT_SOURCES =
CLEANFILES = $(BUILT_SOURCES)
bin_PROGRAMS += oring-cal
oring_cal_SOURCES = \
protocol/presentation-time-protocol.c \
src/cal.c \
src/cal.h \
src/input.c \
src/input.h \
src/oring-clock.c \
src/oring-clock.h \
src/output.c \
src/output.h \
src/renderer.c \
src/renderer.h \
src/timespec-util.h \
src/platform.h \
src/zalloc.h \
src/xalloc.h \
src/xalloc.c \
src/helpers.h
nodist_oring_cal_SOURCES =
oring_cal_CFLAGS = $(AM_CFLAGS) $(ORING_CAL_CFLAGS)
oring_cal_LDADD = $(ORING_CAL_LIBS) $(CLOCK_GETTIME_LIBS) -lm
BUILT_SOURCES += \
protocol/presentation-time-protocol.c \
protocol/presentation-time-client-protocol.h
.SECONDEXPANSION:
define protostability
$(if $(findstring unstable,$1),unstable,stable)
endef
define protoname
$(shell echo $1 | $(SED) 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
endef
protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@