misc: remove makefile recursion
[vlc.git] / modules / Makefile.am
1 noinst_LTLIBRARIES =
2 noinst_HEADERS =
3 check_PROGRAMS =
4 EXTRA_DIST =
5
6 BASE_SUBDIRS = \
7         audio_filter \
8         control \
9         gui \
10         packetizer \
11         text_renderer \
12         video_filter \
13         visualization
14 EXTRA_SUBDIRS = \
15         access_output \
16         mux \
17         stream_out \
18         hw/mmal
19
20 SUBDIRS = . $(BASE_SUBDIRS)
21 DIST_SUBDIRS = . $(BASE_SUBDIRS) $(EXTRA_SUBDIRS)
22 if ENABLE_SOUT
23 SUBDIRS += access_output mux stream_out
24 endif
25 if HAVE_MMAL
26 SUBDIRS += hw/mmal
27 endif
28
29 TESTS =
30
31 dist_noinst_SCRIPTS = genmf list.sh module.rc.in
32 dist_noinst_DATA = MODULES_LIST
33 EXTRA_LTLIBRARIES =
34
35 include common.am
36 include access/Makefile.am
37 include access/rtp/Makefile.am
38 include arm_neon/Makefile.am
39 include audio_mixer/Makefile.am
40 include audio_output/Makefile.am
41 include codec/Makefile.am
42 include demux/Makefile.am
43 include hw/vdpau/Makefile.am
44 include lua/Makefile.am
45 include meta_engine/Makefile.am
46 include misc/Makefile.am
47 include notify/Makefile.am
48 include services_discovery/Makefile.am
49 include stream_filter/Makefile.am
50 include video_chroma/Makefile.am
51 include video_splitter/Makefile.am
52 include video_output/Makefile.am
53
54 BUILT_SOURCES += dummy.cpp
55
56 dummy.cpp:
57         touch dummy.cpp
58
59 if HAVE_WIN32
60 BUILT_SOURCES += module.rc.lo
61 CLEANFILES += module.rc
62 #noinst_DATA = module.rc.lo
63
64 module.rc: module.rc.in $(top_builddir)/config.status
65         $(AM_V_GEN) cd "$(top_builddir)" && $(SHELL) ./config.status --file="modules/$@"
66
67 module.rc.lo: module.rc
68         $(AM_V_GEN) $(LIBTOOL) --tag=RC --mode=compile $(WINDRES) \
69                 --include-dir $(top_srcdir)/share \
70                 --include-dir $(top_srcdir)/extras/package/win32 \
71                 -i $< -o $@
72         echo HELLO
73 endif
74
75 # Wayland
76 SUFFIXES += -client-protocol.h -protocol.c .xml
77
78 .xml-client-protocol.h:
79         $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < "$^" > "$@.tmp"
80         $(AM_V_at)mv -f -- "$@.tmp" "$@"
81
82 .xml-protocol.c:
83         $(AM_V_GEN)$(WAYLAND_SCANNER) code < "$^" > "$@.tmp"
84         $(AM_V_at)mv -f -- "$@.tmp" "$@"