[Z88dk-commits] CVS: z88dk/lib/config zx_dev.cfg, NONE, 1.1 zx_dev.l

Bridge to the z88dk-commits mailing list
Post Reply
alvin

[Z88dk-commits] CVS: z88dk/lib/config zx_dev.cfg, NONE, 1.1 zx_dev.l

Post by alvin »

Update of /cvsroot/z88dk/z88dk/lib/config
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9886

Added Files:
zx_dev.cfg zx_dev.lnx
Log Message:
zx_dev target for testing _DEV code

--- NEW FILE: zx_dev.cfg ---
#
# Config file for zcc (front end for Small C+ compiler)
#

#
# Names of the various programs, if they're in your path you won't need to
# alter these settings - except for COPYCMD copy
#

Z80EXE z80asm
MPMEXE mpm
CPP zcpp
LINKER z80asm
COMPILER sccz80
COPTEXE copt
COPYCMD copy
APPMAKER appmake

#
# Flag to stimulate alternate handling of math constants, this flag is
# supplied to the compiler when you supply -lmz to the frontend
# you'll probably want to change this if you're retargetting
#
# No handling for the Spectrum, so leave as per z88

Z88MATHFLG -D__NATIVE_MATH__


#
# Style of the C Preprocessor
#
# 1 = outimplied - cpp creates .i file
# 2 = outspecified - output specified by zcc
# 3 = filter - input piped into cpp by zcc and out to a file by zcc
#
# zcpp, gnu cpp, vbcc cpp are all outspecified
#

STYLECPP 2

#
# Where the include files are kept (-I is preprocessor flag to tell it where
# to find header files)
#
# Include the full path, eg c:\z88dk\include
#

INCPATH -Ic:\z88dk\include

#
# Any extra command line options for the assembler
#
# (Leave alone!)

ASMOPTS -Mo -Ic:\z88dk\libsrc\_DEVELOPMENT\target\spectrum

#
# Options for the optimizer
#
# COPTRULES3 contains optimizations which call in other library
# routines..boosting code size, but..may save in the end if they
# are used often
#
# COPTRULES2 is the extended rule set for indexing within arrays and
# optimizing operations on unsigned chars
#
# COPTRULES1 is the standard rule set (been hanging around for ages!
#
# Supply the full path before the filenames, eg c:\z88dk\lib\z80rules.1
#

COPTRULES1 c:\z88dk\lib\z80rules.1
COPTRULES2 c:\z88dk\lib\z80rules.2
COPTRULES3 c:\z88dk\lib\z80rules.0

#
# Asm file which contains the startup code (omit suffix for Z80asm sake)
#
# CRT0 = Full path and name of the startup code file (omit suffix!)
#

CRT0 c:\z88dk\libsrc\_DEVELOPMENT\target\spectrum\zx_crt0


#
# Linker Options
#
#
# Keep the -i before the path in
# libraries)
#
# LINKOPTS = Options required when linking (leave alone!) -Lc:\z88dk\lib
#



LINKOPTS -a -m -Mo -Lc:\z88dk\libsrc\_DEVELOPMENT\lib -Ic:\z88dk\libsrc\_DEVELOPMENT\target\spectrum

#
# Names of the libraries
# Z88MATHLIB = name of library linked if -lmz supplied
# STARTUPLIB = library that is always linked in (contains all lib functions)
# GENMATHLIB = generic maths library
#
# (Leave alone!)
#

Z88MATHLIB mzx
STARTUPLIB zx_sccz80
GENMATHLIB gen_math

#
# Any default options you want - these are options to zcc which are fed
# through to compiler, assembler etc as necessary
#
# -I. needed for some strange reason for GNU cpp, I dunno why..
#
# The ones here, set verbose flag (echo commands) and switch on optimization
#
# (Leave alone!) [Recommended settings..]
#
# spec_clib required here because we've split up machine functions from
# generic z80 startup functions
#

OPTIONS -v -O2 -I. -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -M -DSCCZ80 -Cz+zx


# Additional config options for the alternate assemblers
# these override ASMOPTS and LINKOPTS defined above which take
# effect for z80asm\mpm
#
# The choice of assembler can be specified using -asm=XXX by default
# z88dk uses z80asm but this may change in the future

# First of all for vasm\vlink
VASMOPTS -quiet -Fvobj -Ic:\z88dk\lib
VLINKOPTS -Lc:\z88dk\lib\vlink\

# The toolchain can also output for the asxx suite
ASZ80OPTS
ASLINKOPTS

--- NEW FILE: zx_dev.lnx ---
#
# Config file for zcc (front end for Small C+ compiler)
#

#
# Names of the various programs, if they're in your path you won't need to
# alter these settings - except for COPYCMD, on unix set it to: cp
#

Z80EXE z80asm
MPMEXE mpm
CPP zcpp
LINKER z80asm
COMPILER sccz80
COPTEXE copt
COPYCMD cp
APPMAKER appmake

#
# Flag to stimulate alternate handling of math constants, this flag is
# supplied to the compiler when you supply -lmz to the frontend
# you'll probably want to change this if you're retargetting
#
# No handling for the Spectrum, so leave as per z88

Z88MATHFLG -D__NATIVE_MATH__


#
# Style of the C Preprocessor
#
# 1 = outimplied - cpp creates .i file
# 2 = outspecified - output specified by zcc
# 3 = filter - input piped into cpp by zcc and out to a file by zcc
#
# zcpp, gnu cpp, vbcc cpp are all outspecified
#

STYLECPP 2

#
# Where the include files are kept (-I is preprocessor flag to tell it where
# to find header files)
#
# Include the full path, eg DESTDIR/include
#

INCPATH -IDESTDIR/include

#
# Any extra command line options for the assembler
#
# (Leave alone!)

ASMOPTS -Mo

#
# Options for the optimizer
#
# COPTRULES3 contains optimizations which call in other library
# routines..boosting code size, but..may save in the end if they
# are used often
#
# COPTRULES2 is the extended rule set for indexing within arrays and
# optimizing operations on unsigned chars
#
# COPTRULES1 is the standard rule set (been hanging around for ages!
#
# Supply the full path before the filenames, eg DESTDIR/lib/z80rules.1
#

COPTRULES1 DESTDIR/lib/z80rules.1
COPTRULES2 DESTDIR/lib/z80rules.2
COPTRULES3 DESTDIR/lib/z80rules.0

#
# Asm file which contains the startup code (omit suffix for Z80asm sake)
#
# CRT0 = Full path and name of the startup code file (omit suffix!)
#

CRT0 DESTDIR/libsrc/_DEVELOPMENT/target/spectrum/zx_crt0


#
# Linker Options
#
#
# Keep the -i before the path in
# libraries)
#
# LINKOPTS = Options required when linking (leave alone!) -LDESTDIR/lib
#



LINKOPTS -a -m -Mo -LDESTDIR/libsrc/_DEVELOPMENT/lib

#
# Names of the libraries
# Z88MATHLIB = name of library linked if -lmz supplied
# STARTUPLIB = library that is always linked in (contains all lib functions)
# GENMATHLIB = generic maths library
#
# (Leave alone!)
#

Z88MATHLIB mzx
STARTUPLIB
GENMATHLIB gen_math

#
# Any default options you want - these are options to zcc which are fed
# through to compiler, assembler etc as necessary
#
# -I. needed for some strange reason for GNU cpp, I dunno why..
#
# The ones here, set verbose flag (echo commands) and switch on optimization
#
# (Leave alone!) [Recommended settings..]
#
# spec_clib required here because we've split up machine functions from
# generic z80 startup functions
#

OPTIONS -v -O2 -I. -lzx_sccz80 -DZ80 -DSMALL_C -DSPECTRUM -D__SPECTRUM__ -M -DSCCZ80 -Cz+zx


# Additional config options for the alternate assemblers
# these override ASMOPTS and LINKOPTS defined above which take
# effect for z80asm/mpm
#
# The choice of assembler can be specified using -asm=XXX by default
# z88dk uses z80asm but this may change in the future

# First of all for vasm/vlink
VASMOPTS -quiet -Fvobj -IDESTDIR/lib
VLINKOPTS -LDESTDIR/lib/vlink/

# The toolchain can also output for the asxx suite
ASZ80OPTS
ASLINKOPTS


------------------------------------------------------------------------------
Post Reply