These have no effect in Python 3.x, they are the default. Enabling them in Python 2.x, enabling them in Python 2.x allows single source compatiblity.
13 lines
No EOL
511 B
Python
13 lines
No EOL
511 B
Python
from __future__ import absolute_import, division, print_function
|
|
|
|
Import('env')
|
|
|
|
example = env.Clone()
|
|
example.Append(LIBS="hammer", LIBPATH="../src")
|
|
|
|
dns = example.Program('dns', ['dns.c', 'rr.c', 'dns_common.c'])
|
|
base64 = example.Program('base64', 'base64.c')
|
|
base64_sem1 = example.Program('base64_sem1', 'base64_sem1.c')
|
|
base64_sem2 = example.Program('base64_sem2', 'base64_sem2.c')
|
|
ties = example.Program('ties', ['ties.c', 'grammar.c'])
|
|
env.Alias("examples", [dns, base64, base64_sem1, base64_sem2, ties]) |