# the plugins in this line and put them as built-ins, otherwise your
# application won't be able to load them.
#
-PLUGINS := @PLUGINS@
+PLUGINS :=@PLUGINS@
#
# Built-in modules to build
# WARNING: do NOT put gtk and gnome together in this rule.
#
-BUILTINS := @BUILTINS@
+BUILTINS :=@BUILTINS@
#
# Additional build options
#
DEBUG = @DEBUG@
STATS = @STATS@
+TRACE = @TRACE@
OPTIMS = @OPTIMS@
GETOPT = @GETOPT@
# Build environment
#
CC = @CC@
+CFLAGS = @CFLAGS@
SHELL = @SHELL@
+RANLIB = @RANLIB@
+MOC = @MOC@
#
# Installation environment
PROGRAM_OPTIONS += DEBUG
DEFINE += -DDEBUG
endif
+ifeq ($(TRACE),1)
+PROGRAM_OPTIONS += TRACE
+DEFINE += -DTRACE
+endif
ifeq ($(STATS),1)
-PROGRAM_OPTIONS += DEBUG
+PROGRAM_OPTIONS += STATS
DEFINE += -DSTATS
endif
#
LIB += @LIB@ -L/usr/local/lib
+ifneq (,$(findstring mingw32,$(SYS)))
+LIB += -lws2_32
+endif
+
#
# Libraries needed by built-in modules
#
ifeq ($(OPTIMS),1)
CFLAGS += -O3
CFLAGS += -ffast-math -funroll-loops
+ifneq ($(DEBUG),1)
CFLAGS += -fomit-frame-pointer
+endif
# Optimizations for x86 familiy
ifneq (,$(findstring 86,$(ARCH)))
endif
#
-# Debugging and profiling support (unless optimisations are active)
+# Debugging and profiling support
#
-ifneq ($(OPTIMS),1)
+ifeq ($(DEBUG),1)
CFLAGS += -g
endif