xref: /OK3568_Linux_fs/external/xserver/hw/dmx/config/Makefile.am (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUBDIRS = man
2
3noinst_LIBRARIES = libdmxconfig.a
4
5LIBSRCS = parser.y \
6          scanner.l \
7          dmxparse.c \
8          dmxparse.h \
9          dmxprint.c \
10          dmxprint.h \
11          dmxcompat.c \
12          dmxcompat.h \
13          dmxconfig.c \
14          dmxconfig.h
15
16parser.h: parser.c
17scanner.c: scanner.l parser.h
18
19BUILT_SOURCES = parser.c parser.h scanner.c
20
21MAINTAINERCLEANFILES = $(BUILT_SOURCES)
22
23libdmxconfig_a_SOURCES = $(LIBSRCS)
24libdmxconfig_a_SOURCES += $(top_srcdir)/os/strlcpy.c
25
26if GLX
27GLX_DEFS = @GL_CFLAGS@
28endif
29
30AM_YFLAGS = -d
31AM_CFLAGS = \
32	$(DIX_CFLAGS) \
33	-I$(top_srcdir)/hw/dmx \
34	-DHAVE_DMX_CONFIG_H \
35	-DDMX_LOG_STANDALONE \
36	$(GLX_DEFS) \
37	@DMXMODULES_CFLAGS@
38
39bin_PROGRAMS = xdmxconfig vdltodmx dmxtodmx
40
41xdmxconfig_DEPENDENCIES = libdmxconfig.a
42xdmxconfig_SOURCES = \
43	xdmxconfig.c \
44	$(top_srcdir)/hw/dmx/dmxlog.c \
45	Canvas.c \
46	Canvas.h \
47	CanvasP.h
48xdmxconfig_LDADD = -L. -ldmxconfig @XDMXCONFIG_DEP_LIBS@
49xdmxconfig_CFLAGS = $(AM_CFLAGS) @XDMXCONFIG_DEP_CFLAGS@
50
51vdltodmx_DEPENDENCIES = libdmxconfig.a
52vdltodmx_SOURCES = vdltodmx.c
53vdltodmx_LDADD = -L. -ldmxconfig
54
55dmxtodmx_DEPENDENCIES = libdmxconfig.a
56dmxtodmx_SOURCES = dmxtodmx.c
57dmxtodmx_LDADD = -L. -ldmxconfig
58
59EXTRA_DIST = \
60	test-a.in test-a.out \
61	test-b.in test-b.out \
62	test-c.in test-c.out \
63	test-d.in test-d.out \
64	test-e.in test-e.out \
65	test-f.in test-f.out \
66	test-g.in test-g.out \
67	test-h.in test-h.out \
68	test-i.in test-i.out \
69	test-j.in test-j.out \
70	test-k.in test-k.out \
71	test-l.in test-l.out
72