From fab4a8aeab4cfd79760e7c806ab09f83d8056fd2 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 4 Oct 2008 12:02:44 +0200 Subject: Turn on compiler optimizations (Free Pascal) --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 \ -- cgit v1.2.3