AddOption('--release', action = 'store_true') env = Environment() conf = Configure(env) for lib in ('GL', 'GLU', 'SDL', 'SDL_image'): if not conf.CheckLib(lib): print 'Could not find %s' % lib Exit(1) env = conf.Finish() if GetOption('release'): env.Append(CCFLAGS = ['-O2']) else: env.Append(CCFLAGS = ['-Wall', '-g']) env.ParseConfig('sdl-config --cflags --libs') env.ParseConfig('pkg-config --cflags --libs ftgl') env.Program('foo', Glob('*.cpp')) # vim: syn=python