diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-04 12:02:44 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-10-04 12:02:44 +0200 |
| commit | fab4a8aeab4cfd79760e7c806ab09f83d8056fd2 (patch) | |
| tree | 9386d85f95cd547f1940177e0d3ba5a2ca356648 /Makefile | |
| parent | f8c2a1c67b80ae1f0cd80695c8e3c339c4f5c1c0 (diff) | |
| download | tuxcmd-fab4a8aeab4cfd79760e7c806ab09f83d8056fd2.tar.xz | |
Turn on compiler optimizations (Free Pascal)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 \ |
