# import variables
Import('env', 'install_dir')

common_src = ['../get_options.c', '../check_time.c']
prog = env.Program('glsl_parallax', ['main.c', 'init.c', 'textfile.c', 'extra.c'] + common_src)

# Install
if install_dir != '':
	dest = install_dir + '/GLSL_parallax'
	data = ['shader.frag', 'shader.vert', 'colormap.png', 'parallaxmap.png', 'glossmap.png']
	env.Install(dest, 'globs_info.json')
	env.Install(dest, prog)
	env.Install(dest, data)
	env.Alias('install', dest)

