1use 5.006;
2use ExtUtils::MakeMaker;
3# See lib/ExtUtils/MakeMaker.pm for details of how to influence
4# the contents of the Makefile that is written.
5WriteMakefile(
6    NAME              => 'Crypt::UnixCrypt_XS',
7    VERSION_FROM      => 'lib/Crypt/UnixCrypt_XS.pm', # finds $VERSION
8    PREREQ_PM         => {}, # e.g., Module::Name => 1.1
9    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
10      (ABSTRACT_FROM  => 'lib/Crypt/UnixCrypt_XS.pm', # retrieve abstract from module
11       AUTHOR         => 'Boris Zentner <bzm@2bz.de>') : ()),
12    LIBS              => [''], # e.g., '-lm'
13    DEFINE            => '', # e.g., '-DHAVE_SOMETHING'
14    INC               => '-I.', # e.g., '-I. -I/usr/include/other'
15	# Un-comment this if you add C files to link with later:
16    # OBJECT            => '$(O_FILES)', # link all the C files too
17    OPTIMIZE => '-O3',
18    'MYEXTLIB' => 'fcrypt/libfcrypt$(LIB_EXT)',
19);
20sub MY::postamble {'
21$(MYEXTLIB): fcrypt/Makefile
22	cd fcrypt && $(MAKE) $(PASSTHRU)
23';
24}
25