src: os2: fix typo
[vlc.git] / bin / Makefile.am
blob8f14a43d9172baf77291e0b0e361fd3278f7889e
1 # Building vlc
3 if HAVE_DARWIN
4 bin_PROGRAMS = vlc-osx
5 noinst_PROGRAMS = vlc-osx-static
6 else
7 bin_PROGRAMS = vlc
8 noinst_PROGRAMS = vlc-static
9 endif
10 noinst_DATA =
11 vlclib_PROGRAMS = vlc-cache-gen
12 EXTRA_PROGRAMS = vlc-wrapper
13 EXTRA_DIST = vlc_win32_rc.rc.in
15 SUFFIXES = .rc.in .rc
17 AM_CPPFLAGS = $(CPPFLAGS_vlc)
18 AM_CFLAGS = $(CFLAGS_vlc)
19 if HAVE_DBUS
20 AM_CPPFLAGS += -DHAVE_DBUS
21 endif
23 if !HAVE_WIN32
24 if !HAVE_OS2
25 bin_PROGRAMS += vlc-wrapper
26 endif
27 vlc_SOURCES = vlc.c override.c
28 endif
30 EXTRA_vlc_SOURCES = vlc.c winvlc.c
31 if HAVE_WIN32
32 vlc_SOURCES = winvlc.c
33 noinst_DATA += vlc_win32_rc.rc
34 endif
36 if HAVE_DARWIN
37 vlc_osx_SOURCES = darwinvlc.m
38 vlc_osx_LDFLAGS = $(LDFLAGS_vlc) -Wl,-framework,CoreFoundation,-framework,Cocoa
39 vlc_osx_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/lib/"
40 vlc_osx_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/plugins/"
41 if HAVE_BREAKPAD
42 vlc_osx_LDFLAGS += -Wl,-framework,Breakpad
43 vlc_osx_OBJCFLAGS = -F$(CONTRIB_DIR)/Frameworks
44 endif
45 vlc_osx_LDADD = ../lib/libvlc.la
47 vlc_osx_static_SOURCES = $(vlc_osx_SOURCES)
48 vlc_osx_static_OBJCFLAGS = $(AM_OBJCFLAGS) \
49         -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
50         -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
51         $(NULL)
52 vlc_osx_static_LDFLAGS = $(vlc_osx_LDFLAGS) -static
53 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../lib/.libs/"
54 vlc_osx_static_LDFLAGS += -Xlinker -rpath -Xlinker "@executable_path/../src/.libs/"
55 vlc_osx_static_LDADD = $(vlc_osx_LDADD)
56 if HAVE_BREAKPAD
57 vlc_osx_static_LDFLAGS += -Wl,-framework,Breakpad
58 vlc_osx_static_OBJCFLAGS += -F$(CONTRIB_DIR)/Frameworks
59 endif
60 endif
62 vlc_wrapper_SOURCES = rootwrap.c
63 vlc_wrapper_LDADD = $(SOCKET_LIBS)
65 vlc_LDFLAGS = $(LDFLAGS_vlc)
66 vlc_LDADD = ../lib/libvlc.la $(LIBPTHREAD)
68 vlc_static_SOURCES = $(vlc_SOURCES)
69 vlc_static_CFLAGS = $(AM_CFLAGS) \
70         -DTOP_BUILDDIR=\"$$(cd "$(top_builddir)"; pwd)\" \
71         -DTOP_SRCDIR=\"$$(cd "$(top_srcdir)"; pwd)\" \
72         $(NULL)
73 vlc_static_DEPENDENCIES = $(vlc_DEPENDENCIES)
74 vlc_static_LDADD = $(vlc_LDADD)
75 vlc_static_LDFLAGS = $(vlc_LDFLAGS)
77 if HAVE_WIN32
78 vlc_LDADD += -lpsapi vlc_win32_rc.$(OBJEXT)
79 vlc_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
80 else
81 vlc_LDADD += $(LIBDL)
82 vlc_static_LDFLAGS += -no-install -static
83 endif
85 vlc_win32_rc.rc: $(top_builddir)/config.status vlc_win32_rc.rc.in
86         cd "$(top_builddir)" && \
87         $(SHELL) ./config.status --file="bin/$@"
89 vlc_win32_rc.$(OBJEXT): vlc_win32_rc.rc $(top_srcdir)/extras/package/win32/vlc.exe.manifest
90         $(WINDRES) --include-dir $(top_srcdir)/share/icons --include-dir $(top_srcdir)/extras/package/win32 -i $< -o $@
92 vlc_cache_gen_SOURCES = cachegen.c
93 vlc_cache_gen_LDADD = \
94         $(GNUGETOPT_LIBS) \
95         ../compat/libcompat.la \
96         ../lib/libvlc.la
97 if HAVE_WIN32
98 vlc_cache_gen_LDADD += vlc_win32_rc.$(OBJEXT)
99 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
100 endif
103 # Plug-ins cache
105 noinst_DATA += ../modules/plugins.dat
106 MOSTLYCLEANFILES = $(noinst_DATA)
108 if HAVE_DARWIN
109 install-data-local:
110         cd $(bindir); mv vlc-osx vlc
112 endif
114 .PHONY: ../modules/plugins.dat
116 ../modules/plugins.dat: vlc-cache-gen$(EXEEXT)
117         $(AM_V_at)rm -f ../modules/plugins.dat
118         $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
119                 ./vlc-cache-gen$(EXEEXT) `realpath ../modules` ; \
120         else \
121                 echo "Cross-compilation: cache generation skipped!" ; \
122         fi