Changeset 191 for trunk/SConstruct


Ignore:
Timestamp:
04/25/10 17:52:37 (15 years ago)
Author:
tim
Message:

updated scons build scripts to handle MinGW
added binaries for MinGW build dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r190 r191  
    22cflags = '-std=gnu99 -pedantic -Wall -ggdb'
    33
    4 if False:
    5     # XXX: get mingw build working again with pthreads
    6     libiconv_path='/usr/local/src/libiconv-1.13-mingw32-dev'
    7     env = Environment(CC='i586-mingw32msvc-cc',
    8                       CFLAGS=cflags,
    9                       CPPPATH=['include', '/usr/local/include',
    10                                libiconv_path+'/include'],
    11                       LIBPATH=['lib', '/usr/local/lib',
    12                                libiconv_path+'/lib'],
    13                       LIBS=['m', 'pthread', 'regfi'])
    14 else:
    15     env = Environment(CFLAGS=cflags,
    16                       CPPPATH=['include', '/usr/local/include'],
    17                       LIBPATH=['lib', '/usr/local/lib'],
    18                       LIBS=['m', 'pthread', 'regfi'])
    19    
    204
    215lib_src = ['lib/regfi.c',
     
    2610           'lib/void_stack.c']
    2711
     12env = Environment(CFLAGS=cflags,
     13                  CPPPATH=['include', '/usr/local/include'],
     14                  LIBPATH=['lib', '/usr/local/lib'],
     15                  LIBS=['m', 'pthread', 'regfi'])
     16   
     17
    2818# Libraries
    2919libregfi_static = env.Library(lib_src)
     
    3222
    3323# Executables
    34 reglookup = env.Program('src/reglookup.c')
    35 reglookup_recover = env.Program('src/reglookup-recover.c')
     24reglookup = env.Program(['src/reglookup.c'])
     25reglookup_recover = env.Program(['src/reglookup-recover.c'])
    3626
    3727
Note: See TracChangeset for help on using the changeset viewer.