]> git.sesse.net Git - vlc/blobdiff - Makefile.opts.in
* QNX RTOS plug-in by Jon Lech Johansen.
[vlc] / Makefile.opts.in
index a09d8dc99f24d155b96427664f92e0063b3e469a..a072bf3dcbd44967a20d5c3e18447d5b24fe5a43 100644 (file)
@@ -35,6 +35,7 @@ ARCH = @ARCH@
 DEBUG = @DEBUG@
 STATS = @STATS@
 TRACE = @TRACE@
+PROFILING = @PROFILING@
 OPTIMS = @OPTIMS@
 GETOPT = @GETOPT@
 
@@ -45,6 +46,7 @@ CC = @CC@
 CFLAGS = @CFLAGS@
 SHELL = @SHELL@
 RANLIB = @RANLIB@
+WINDRES = @WINDRES@
 MOC = @MOC@
 
 # 
@@ -55,6 +57,7 @@ prefix = @prefix@
 bindir = @bindir@
 datadir = @datadir@
 libdir = @libdir@
+includedir = @includedir@
 
 #
 # Libraries for special cases
@@ -62,13 +65,16 @@ libdir = @libdir@
 LIB_ALSA = @LIB_ALSA@
 LIB_BEOS = @LIB_BEOS@
 LIB_DARWIN = @LIB_DARWIN@
+LIB_DVD = @LIB_DVD@
 LIB_ESD = @LIB_ESD@
 LIB_GGI = @LIB_GGI@
 LIB_GLIDE = @LIB_GLIDE@
 LIB_GNOME = @LIB_GNOME@
 LIB_GTK = @LIB_GTK@
 LIB_IDCTALTIVEC = @LIB_IDCTALTIVEC@
+LIB_KDE = @LIB_KDE@
 LIB_MACOSX = @LIB_MACOSX@
+LIB_QNX = @LIB_QNX@
 LIB_NCURSES = @LIB_NCURSES@
 LIB_QT = @LIB_QT@
 LIB_TS = @LIB_TS@
@@ -81,10 +87,16 @@ LIB_YUV = @LIB_YUV@
 #
 # CFLAGS for special cases
 #
+CFLAGS_DVD = @CFLAGS_DVD@
 CFLAGS_GTK = @CFLAGS_GTK@
 CFLAGS_SDL = @CFLAGS_SDL@
 CFLAGS_X11 = @CFLAGS_X11@
 
+#
+# Other special cases
+#
+LOCAL_LIBDVDCSS = @LOCAL_LIBDVDCSS@
+
 ###############################################################################
 # Configuration pre-processing
 ###############################################################################
@@ -99,6 +111,10 @@ ifeq ($(TRACE),1)
 PROGRAM_OPTIONS += TRACE
 DEFINE += -DTRACE
 endif
+ifeq ($(PROFILING),1)
+PROGRAM_OPTIONS += PROFILING
+DEFINE += -DPROFILING
+endif
 ifeq ($(STATS),1)
 PROGRAM_OPTIONS += STATS
 DEFINE += -DSTATS
@@ -116,6 +132,7 @@ endif
 
 # PROGRAM_VERSION is the current vlc version
 PROGRAM_VERSION=@VLC_VERSION@
+LIBDVDCSS_VERSION=@LIBDVDCSS_VERSION@
 
 # DEFINE will contain some of the constants definitions decided in Makefile, 
 # including SYS_xx. It will be passed to C compiler.
@@ -138,22 +155,28 @@ endif
 INCLUDE += @INCLUDE@
 INCLUDE += -Iinclude -Iextras -I/usr/local/include
 
+#
+# Libraries needed by built-in modules
+#
+ifneq (,$(BUILTINS))
+LIB_BUILTINS := $(shell for i in ${BUILTINS} ; do echo $$i | tr '[a-z]' '[A-Z]' | sed -e 's/.*/$$LIB_&/' ; done)
+LIB += $(LIB_BUILTINS)
+endif
+
 #
 # Libraries
 #
-LIB += @LIB@ -L/usr/local/lib
+ifeq (1,$(LOCAL_LIBDVDCSS))
+ifneq (,$(findstring dvd,$(BUILTINS)))
+LIB += lib/libdvdcss.a
+endif
+endif
 
 ifneq (,$(findstring mingw32,$(SYS)))
 LIB += -lws2_32 -lnetapi32
 endif
 
-#
-# Libraries needed by built-in modules
-#
-ifneq (,$(BUILTINS))
-LIB_BUILTINS := $(shell for i in ${BUILTINS} ; do echo $$i | tr '[a-z]' '[A-Z]' | sed -e 's/.*/$$LIB_&/' ; done)
-LIB += $(LIB_BUILTINS)
-endif
+LIB += -L/usr/local/lib @LIB@
 
 #
 # C compiler flags: mainstream compilation
@@ -173,8 +196,12 @@ ifneq (,$(findstring darwin,$(SYS)))
 CFLAGS += -traditional-cpp
 endif
 
-ifneq (,$(findstring mingw32,$(SYS)))                                                                     
-CFLAGS += -fnative-struct
+ifneq (,$(findstring mingw32,$(SYS)))
+CFLAGS += -fnative-struct -D_OFF_T_ -D_off_t=long
+endif
+
+ifneq (,$(findstring bsd,$(SYS)))
+CFLAGS += -pthread
 endif
 
 # Optimizations : don't compile debug versions with them
@@ -182,8 +209,10 @@ ifeq ($(OPTIMS),1)
 CFLAGS += -O3
 CFLAGS += -ffast-math -funroll-loops
 ifneq ($(DEBUG),1)
+ifneq ($(PROFILING),1)
 CFLAGS += -fomit-frame-pointer
 endif
+endif
 
 # Optimizations for x86 familiy
 ifneq (,$(findstring 86,$(ARCH)))
@@ -221,14 +250,14 @@ LCFLAGS += @LCFLAGS@ $(LIB)
 LCFLAGS += -Wall
 #LCFLAGS += -s
 ifneq (,$(findstring mingw32,$(SYS)))
-LCFLAGS += -Xlinker --force-exe-suffix
+LCFLAGS += -mwindows -Xlinker --force-exe-suffix
 endif
 
 #
 # C compiler flags: plugin compilation
 #
 ifneq (,$(findstring mingw32,$(SYS)))
-PCFLAGS += -fPIC -fnative-struct
+PCFLAGS += -fnative-struct
 else
 PCFLAGS += -fPIC
 endif
@@ -245,3 +274,7 @@ ifeq ($(DEBUG),1)
 CFLAGS += -g
 endif
 
+ifeq ($(PROFILING),1)
+CFLAGS += -pg
+endif
+