Makefile.am 1.08 KB
Newer Older
1 2 3
# Building vlc
#
bin_PROGRAMS = vlc
4
noinst_PROGRAMS = vlc-static
5 6
EXTRA_PROGRAMS = vlc-wrapper

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


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

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

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

28
vlc_DEPENDENCIES = ../src/libvlc.sym
29
vlc_LDFLAGS = `$(VLC_CONFIG) --ldflags vlc`
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
30
vlc_LDADD = ../src/libvlc.la `$(VLC_CONFIG) -libs vlc`
31

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

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

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