DEBUG = @DEBUG@
STATS = @STATS@
TRACE = @TRACE@
+PROFILING = @PROFILING@
OPTIMS = @OPTIMS@
GETOPT = @GETOPT@
CFLAGS = @CFLAGS@
SHELL = @SHELL@
RANLIB = @RANLIB@
+WINDRES = @WINDRES@
MOC = @MOC@
#
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@
PROGRAM_OPTIONS += TRACE
DEFINE += -DTRACE
endif
+ifeq ($(PROFILING),1)
+PROGRAM_OPTIONS += PROFILING
+DEFINE += -DPROFILING
+endif
ifeq ($(STATS),1)
PROGRAM_OPTIONS += STATS
DEFINE += -DSTATS
# 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.
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
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)))
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
CFLAGS += -g
endif
+ifeq ($(PROFILING),1)
+CFLAGS += -pg
+endif
+