mirror of
https://github.com/philippechataignon/wxscrab_gen
synced 2024-11-17 07:47:18 +01:00
Ajoute SConstruct.atari
This commit is contained in:
parent
647d48fc17
commit
d548ab4494
1 changed files with 42 additions and 0 deletions
42
gen/SConstruct.atari
Normal file
42
gen/SConstruct.atari
Normal file
|
@ -0,0 +1,42 @@
|
|||
env = Environment(tools=['default'])
|
||||
|
||||
#we will be building everything in the same directory, where the sources are
|
||||
OUTPUT_DIR='./'
|
||||
|
||||
#here we set our tools names
|
||||
env["CC"] = 'm68k-atari-mint-gcc'
|
||||
env["CXX"] = 'm68k-atari-mint-g++'
|
||||
env["AS"] = 'm68k-atari-mint-as'
|
||||
env['AR'] = 'm68k-atari-mint-ar'
|
||||
env['OBJCOPY'] = 'm68k-atari-mint-objcopy'
|
||||
env['STRIP'] = 'm68k-atari-mint-strip -s'
|
||||
env['STACK'] = 'm68k-atari-mint-stack'
|
||||
|
||||
# here we set default paths to headers and libraries
|
||||
env["CPPPATH"] = '/usr/m68k-atari-mint/include'
|
||||
env["LIBPATH"] = '/usr/m68k-atari-mint/lib'
|
||||
|
||||
|
||||
#if we want to add extra defines for C compiler we can specify them here. 'TOS' will show up as '-DTOS' during compilation. This is an example, so you can add anything you like.
|
||||
env["CDEFINES"] = 'TOS'
|
||||
|
||||
# as above but for C++ compiler
|
||||
env["CXXDEFINES"] = 'TOSCPP'
|
||||
|
||||
################## Setting flags example
|
||||
ST_CFLAGS='-s -Os -std=c99 -fomit-frame-pointer -m68000'
|
||||
ST_CXXFLAGS='-Os -fno-rtti -fno-exceptions -fomit-frame-pointer -m68000'
|
||||
ST_LDFLAGS='-s -Os -fomit-frame-pointer -m68000 -Wl,--traditional-format '
|
||||
ST_ASM_FLAGS = '-m68000'
|
||||
|
||||
env["CFLAGS"] = ST_CFLAGS
|
||||
env["CXXFLAGS"] = ST_CXXFLAGS
|
||||
env["LDFLAGS"] = ST_LDFLAGS
|
||||
env["ASFLAGS"] = ST_ASM_FLAGS
|
||||
|
||||
########################### main program entry, sources list
|
||||
env.Program(source=['gen_part.c','bag.c','board.c', 'board_cross.c', 'board_search.c', 'dic.c',
|
||||
'game.c', 'pldrack.c', 'rack.c', 'results.c',
|
||||
'round.c', 'tiles.c'], target="gen_part.ttp")
|
||||
env.Program(source=['listdic.c', 'dic.c'], target="listdic.ttp")
|
||||
env.Program(source=['compdic.c', 'hashtable.c'], target="compdic.ttp")
|
Loading…
Reference in a new issue