Makefile.am 1.63 KB
Newer Older
1 2 3
# Building vlc
#
bin_PROGRAMS = vlc
4
noinst_PROGRAMS = vlc-static
5
vlclib_PROGRAMS = vlc-cache-gen
6
EXTRA_PROGRAMS = vlc-wrapper
7 8 9
EXTRA_DIST = vlc_win32_rc.rc.in

SUFFIXES = .rc.in .rc
10

11 12
AM_CPPFLAGS = $(CPPFLAGS_vlc)
AM_CFLAGS = $(CFLAGS_vlc)
13 14


15
if !HAVE_WIN32
16
if !HAVE_WINCE
17
bin_PROGRAMS += vlc-wrapper
18
vlc_SOURCES = vlc.c override.c
19
endif
20 21 22
endif

EXTRA_vlc_SOURCES = vlc.c winvlc.c
23 24
if HAVE_WIN32
vlc_SOURCES = winvlc.c
25
noinst_DATA = vlc_win32_rc.rc
26 27
endif
if HAVE_WINCE
28 29
vlc_SOURCES = winvlc.c
endif
30

31
vlc_wrapper_SOURCES = rootwrap.c
32
vlc_wrapper_LDADD = $(SOCKET_LIBS)
33

34
vlc_DEPENDENCIES = ../src/libvlc.sym
35 36
vlc_LDFLAGS = $(LDFLAGS_vlc)
vlc_LDADD = ../src/libvlc.la ../src/libvlccore.la $(LIBS_vlc)
37

38
vlc_static_SOURCES = $(vlc_SOURCES)
39 40 41 42
vlc_static_CFLAGS = $(AM_CFLAGS) \
	-DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
	-DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
	$(NULL)
43 44
vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
vlc_static_LDADD = $(vlc_LDADD)
45
vlc_static_LDFLAGS = $(vlc_LDFLAGS)
46 47

if HAVE_WIN32
48
vlc_LDADD += -lwininet vlc_win32_rc.$(OBJEXT)
49
vlc_DEPENDENCIES += vlc_win32_rc.$(OBJEXT)
50
else
51
vlc_LDADD += $(LIBDL)
52
vlc_static_LDFLAGS += -no-install -static
53 54
endif

55
vlc_win32_rc.rc: $(top_builddir)/config.status vlc_win32_rc.rc.in
56 57 58 59
	cd "$(top_builddir)" && \
	$(SHELL) ./config.status --file="bin/$@"

vlc_win32_rc.$(OBJEXT): vlc_win32_rc.rc
60
	$(WINDRES) --include-dir $(top_srcdir)/share/icons -i $< -o $@
61

62 63
vlc_cache_gen_SOURCES = cachegen.c
vlc_cache_gen_LDADD = \
64
	$(GNUGETOPT_LIBS) \
65 66
	../compat/libcompat.la \
	../src/libvlc.la ../src/libvlccore.la
67 68 69 70 71
if HAVE_WIN32
vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
endif