diff --git a/SConstruct b/SConstruct index 7bedd0b..4cd391b 100644 --- a/SConstruct +++ b/SConstruct @@ -55,6 +55,7 @@ alock_options.AddOptions( BoolOption('amd5', 'build a little md5-helper', 0), BoolOption('asha1', 'build a little sha1-helper', 0), BoolOption('asha2', 'build a little sha2-helper', 0), + BoolOption('awpool', 'build a little whirlpool-helper', 0), PathOption('PREFIX', 'install-path base', '/usr/local'), PathOption('DESTDIR', 'install to $DESTDIR/$PREFIX', '/') @@ -196,6 +197,9 @@ if alock_env['asha1']: if alock_env['asha2']: default_targets += [ 'src/asha2' ] +if alock_env['awpool']: + default_targets += [ 'src/awpool' ] + Default(default_targets) alock_options.Save('scons.opts', alock_env) diff --git a/src/SConscript b/src/SConscript index 0f89120..02224e4 100644 --- a/src/SConscript +++ b/src/SConscript @@ -18,7 +18,7 @@ build = alock_env.Copy() if build['passwd']: auth_sources += [ 'auth_passwd.c' ] if build['hash']: - auth_sources += [ 'auth_md5.c', 'auth_sha1.c', 'auth_sha2.c', 'auth_wpool' ] + auth_sources += [ 'auth_md5.c', 'auth_sha1.c', 'auth_sha2.c', 'auth_wpool.c' ] if build['pam']: auth_sources += [ 'auth_pam.c' ] diff --git a/src/alock.c b/src/alock.c index 918fd7e..c2b4eb7 100644 --- a/src/alock.c +++ b/src/alock.c @@ -1,5 +1,3 @@ - - /* ---------------------------------------------------------------- *\ file : alock.c