esac
AM_CONDITIONAL(HAVE_BEOS, test "${SYS}" = "beos")
AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin")
+AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"])
AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce")
-DLOCALEDIR=\"$(localedir)\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DDATA_PATH=\"$(pkgdatadir)\" \
+ -DLIBDIR=\"$(libdir)\" \
-DPLUGIN_PATH=\"$(pkglibdir)\"
libvlc_la_CXXFLAGS = `$(VLC_CONFIG) --cxxflags libvlc`
libvlc_la_OBJCFLAGS = `$(VLC_CONFIG) --objcflags libvlc`
EXTRA_libvlc_la_SOURCES = \
$(SOURCES_libvlc_beos) \
$(SOURCES_libvlc_darwin) \
+ $(SOURCES_libvlc_linux) \
$(SOURCES_libvlc_win32) \
+ $(SOURCES_libvlc_other) \
$(SOURCES_libvlc_dirent) \
$(SOURCES_libvlc_getopt) \
$(SOURCES_libvlc_sout) \
$(NULL)
if HAVE_BEOS
libvlc_la_SOURCES += $(SOURCES_libvlc_beos)
-endif
+else
if HAVE_DARWIN
libvlc_la_SOURCES += $(SOURCES_libvlc_darwin)
-endif
+else
+if HAVE_LINUX
+libvlc_la_SOURCES += $(SOURCES_libvlc_linux)
+else
if HAVE_WIN32
libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
-endif
+else
if HAVE_WINCE
libvlc_la_SOURCES += $(SOURCES_libvlc_win32)
endif
+endif
+endif
+endif
+endif
if BUILD_DIRENT
libvlc_la_SOURCES += $(SOURCES_libvlc_dirent)
endif
misc/darwin_specific.c \
$(NULL)
+SOURCES_libvlc_linux = \
+ misc/linux_specific.c \
+ $(NULL)
+
SOURCES_libvlc_win32 = \
misc/win32_specific.c \
network/winsock.c \
$(NULL)
+SOURCES_libvlc_other = misc/not_specific.c
+
SOURCES_libvlc_dirent = \
extras/dirent.c \
$(NULL)
void system_Configure ( libvlc_int_t *, int *, const char *[] );
void system_End ( libvlc_int_t * );
-#if defined( SYS_BEOS )
-/* Nothing at the moment, create beos_specific.h when needed */
-#elif defined( __APPLE__ )
-/* Nothing at the moment, create darwin_specific.h when needed */
-#elif defined( WIN32 ) || defined( UNDER_CE )
-
-#else
-# define system_Init( a, b, c ) (void)0
-# define system_Configure( a, b, c ) (void)0
-# define system_End( a ) (void)0
-#endif
-
-
/*
* Threads subsystem
*/
module_bank_t * p_module_bank; ///< The module bank
- /* Arch-specific variables */
-#if defined( SYS_BEOS )
char * psz_vlcpath;
-#elif defined( __APPLE__ )
- char * psz_vlcpath;
-#elif defined( WIN32 )
- char * psz_vlcpath;
-#endif
} libvlc_global_data_t;