summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-04 12:02:44 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-04 12:02:44 +0200
commitfab4a8aeab4cfd79760e7c806ab09f83d8056fd2 (patch)
tree9386d85f95cd547f1940177e0d3ba5a2ca356648
parentf8c2a1c67b80ae1f0cd80695c8e3c339c4f5c1c0 (diff)
downloadtuxcmd-fab4a8aeab4cfd79760e7c806ab09f83d8056fd2.tar.xz
Turn on compiler optimizations (Free Pascal)
-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 \