summaryrefslogtreecommitdiff
path: root/src/extrafpc.cfg
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-26 17:40:05 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-26 17:40:05 +0000
commit4fd4e5cc02054005ce8a9aae976350aefc54a94e (patch)
treed18d17f29e4d63c568240fc83a32528dd781abef /src/extrafpc.cfg
parent8e4a9e6d1e76fe16e965a04a377aff65e82362d0 (diff)
downloadfpGUI-4fd4e5cc02054005ce8a9aae976350aefc54a94e.tar.xz
* Renamed the fpc.cfg to extrafpc.cfg so it doesn't conflict with
the Lazarus IDE. * Added extrafpc.cfg files in each of the examples directories. * Added a examples/readme.txt file explaining how to compile the examples from the command line.
Diffstat (limited to 'src/extrafpc.cfg')
-rw-r--r--src/extrafpc.cfg100
1 files changed, 100 insertions, 0 deletions
diff --git a/src/extrafpc.cfg b/src/extrafpc.cfg
new file mode 100644
index 00000000..ca911be1
--- /dev/null
+++ b/src/extrafpc.cfg
@@ -0,0 +1,100 @@
+#
+# fpc.cfg for Free Pascal Compiler
+#
+
+# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
+#
+# -d is the same as #DEFINE
+# -u is the same as #UNDEF
+#
+
+
+# * * * I M P O R T A N T * * *
+# You need to specify which backend you are compiling for
+#
+# Your options are:
+# -dX11 for X11 support (eg: Linux or FreeBSD)
+# -dGDI for Windows GDI support
+# -dCarbon for Mac OS X Carbon support.
+#
+
+
+#
+# Try compiling with the -dRELEASE or -dDEBUG on the commandline
+#
+
+# For a release compile with optimizes and strip debuginfo
+#IFDEF RELEASE
+ -Xs
+ #WRITE Compiling Release Version
+#ENDIF
+
+# For a debug version compile with debuginfo and all codegeneration checks on
+#IFDEF DEBUG
+ -g
+ -Crtoi
+ #WRITE Compiling Debug Version
+#ENDIF
+
+
+# Turn on Object Pascal extensions by default
+-Mobjfpc
+
+
+# Allow inline and use ansistrings.
+-Sih
+
+
+# Optimize always for Size
+-O2s
+
+
+# Slashes are also allowed under dos
+# searchpath for includefiles
+-Ficorelib
+
+
+# searchpath for units and other system dependent things
+-Fu.
+-Fucorelib/
+#IFDEF X11
+ #WRITE Compiling X11 CoreLib
+ -Fucorelib/x11/
+#ENDIF
+#IFDEF GDI
+ #WRITE Compiling GDI CoreLib
+ -Fucorelib/gdi/
+#ENDIF
+#IFDEF Carbon
+ #WRITE Compiling Carbon CoreLib
+ -Fucorelib/carbon/
+#ENDIF
+-Fugui/
+
+
+# Unit output path
+-FU../lib
+
+# Generate debugging information for GDI (slows down the compiling process)
+# Enable debug info and use the line info unit by default
+#-gl
+
+
+# Always strip debuginfo from the executable
+-Xs
+
+
+# Write always a nice FPC logo ;)
+-l
+
+
+# Verbose compiler output
+# Display Info, Warnings, Notes and Hints
+#-viwn
+#
+# If you don't want so much verbosity use
+-vw
+#
+# Show only errors
+#-ve
+