Makefile.am 1.62 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 13
AM_CFLAGS = `$(VLC_CONFIG) --cflags vlc`


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

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

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

33
vlc_DEPENDENCIES = ../src/libvlc.sym
34
vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
35
vlc_LDADD = ../src/libvlc.la ../src/libvlccore.la `$(VLC_CONFIG) -libs vlc`
36

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

if HAVE_WIN32
47
vlc_LDADD += -lwininet vlc_win32_rc.$(OBJEXT)
48
vlc_DEPENDENCIES += vlc_win32_rc.$(OBJEXT)
49
else
50
vlc_LDADD += $(LIBDL)
51 52
endif

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

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

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