Makefile.am 1.25 KB
Newer Older
1 2 3
# Building vlc
#
bin_PROGRAMS = vlc
4
noinst_PROGRAMS = vlc-static
5
vlclib_PROGRAMS = vlc-cache-gen
6 7
EXTRA_PROGRAMS = vlc-wrapper

8 9 10
AM_CFLAGS = `$(VLC_CONFIG) --cflags vlc`


11
if !HAVE_WIN32
12
if !HAVE_WINCE
13
bin_PROGRAMS += vlc-wrapper
14 15
vlc_SOURCES = vlc.c
endif
16 17 18
endif

EXTRA_vlc_SOURCES = vlc.c winvlc.c
19 20 21 22
if HAVE_WIN32
vlc_SOURCES = winvlc.c
endif
if HAVE_WINCE
23 24
vlc_SOURCES = winvlc.c
endif
25

26
vlc_wrapper_SOURCES = rootwrap.c
27
vlc_wrapper_LDADD = $(SOCKET_LIBS)
28

29
vlc_DEPENDENCIES = ../src/libvlc.sym
30
vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
31
vlc_LDADD = ../src/libvlc.la ../src/libvlccore.la `$(VLC_CONFIG) -libs vlc`
32

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

if HAVE_WIN32
43
vlc_LDADD += -lwininet vlc_win32_rc.$(OBJEXT)
44
vlc_DEPENDENCIES += vlc_win32_rc.$(OBJEXT)
45 46 47 48 49
endif

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

50 51 52 53
vlc_cache_gen_SOURCES = cachegen.c
vlc_cache_gen_LDADD = \
	../compat/libcompat.la \
	../src/libvlc.la ../src/libvlccore.la