summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5b5ca89..b8236e4 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ LIB_SUFFIX=`if test \`uname -m\` = x86_64; then echo 64; fi`
# -XX prevents linking errors of unresolved and unused symbols
# "-k-z noexecstack" (with quotes as a single parameter) avoids marking stack as executable, allowing to work correctly with SELinux in Enforcing mode
CFLAGS= -vweh -Un -Ci -Co -XX "-k-z noexecstack"
-
+EXTRA_CFLAGS= -O3
tuxcmd::
@@ -52,14 +52,16 @@ tuxcmd::
echo " ConstFPCCompilerHostProcessorString = '`fpc -iSP`';" >> fpcver.inc
echo " ConstFPCTargetOSString = '`fpc -iTO`';" >> fpcver.inc
echo " ConstFPCTargetProcessorString = '`fpc -iTP`';" >> fpcver.inc
- fpc -Mdelphi $(CFLAGS) \
+ fpc -Mdelphi $(CFLAGS) $(EXTRA_CFLAGS) \
-Fu./libgtk_kylix -Fu./translations -Fu./vfs \
tuxcmd.dpr
-debug: CFLAGS += -g
+
+debug: EXTRA_CFLAGS = -g -O-
debug: tuxcmd
+
kylix::
$(KYLIXPREFIX)/bin/dcc -DKYLIX \
-U$(GTK2FORPASCAL_LIBDIR)/glib -U$(GTK2FORPASCAL_LIBDIR)/pango \