Remove WinCE
[vlc.git] / bin / Makefile.am
1 # Building vlc
2 #
3 bin_PROGRAMS = vlc
4 noinst_PROGRAMS = vlc-static
5 noinst_DATA =
6 vlclib_PROGRAMS = vlc-cache-gen
7 EXTRA_PROGRAMS = vlc-wrapper
8 EXTRA_DIST = vlc_win32_rc.rc.in
9
10 SUFFIXES = .rc.in .rc
11
12 AM_CPPFLAGS = $(CPPFLAGS_vlc)
13 AM_CFLAGS = $(CFLAGS_vlc)
14
15
16 if !HAVE_WIN32
17 bin_PROGRAMS += vlc-wrapper
18 vlc_SOURCES = vlc.c override.c
19 endif
20
21 EXTRA_vlc_SOURCES = vlc.c winvlc.c
22 if HAVE_WIN32
23 vlc_SOURCES = winvlc.c
24 noinst_DATA += vlc_win32_rc.rc
25 endif
26
27 vlc_wrapper_SOURCES = rootwrap.c
28 vlc_wrapper_LDADD = $(SOCKET_LIBS)
29
30 vlc_LDFLAGS = $(LDFLAGS_vlc)
31 vlc_LDADD = ../lib/libvlc.la $(LIBS_vlc)
32
33 vlc_static_SOURCES = $(vlc_SOURCES)
34 vlc_static_CFLAGS = $(AM_CFLAGS) \
35         -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
36         -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
37         $(NULL)
38 vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
39 vlc_static_LDADD = $(vlc_LDADD)
40 vlc_static_LDFLAGS = $(vlc_LDFLAGS)
41
42 if HAVE_WIN32
43 vlc_LDADD += -lpsapi -lwininet vlc_win32_rc.$(OBJEXT)
44 vlc_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
45 else
46 vlc_LDADD += $(LIBDL)
47 vlc_static_LDFLAGS += -no-install -static
48 endif
49
50 vlc_win32_rc.rc: $(top_builddir)/config.status vlc_win32_rc.rc.in
51         cd "$(top_builddir)" && \
52         $(SHELL) ./config.status --file="bin/$@"
53
54 vlc_win32_rc.$(OBJEXT): vlc_win32_rc.rc
55         $(WINDRES) --include-dir $(top_srcdir)/share/icons --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
56
57 vlc_cache_gen_SOURCES = cachegen.c
58 vlc_cache_gen_LDADD = \
59         $(GNUGETOPT_LIBS) \
60         ../compat/libcompat.la \
61         ../lib/libvlc.la
62 if HAVE_WIN32
63 vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
64 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
65 endif
66
67 #
68 # Plug-ins cache
69 #
70 noinst_DATA += ../modules/plugins.dat
71 MOSTLYCLEANFILES = $(noinst_DATA)
72
73 .PHONY: ../modules/plugins.dat
74
75 ../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
76         $(AM_V_at)rm -f ../modules/plugins.dat
77         $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
78                 ./vlc-cache-gen$(EXEEXT) ../modules ; \
79         else \
80                 echo "Cross-compilation: cache generation skipped!" ; \
81         fi