summaryrefslogtreecommitdiff
path: root/perl/Makefile.PL
blob: befc21673ebba24e68df64510cc4527baf707a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

WriteMakefile(
	      #'LD'	=> 'gcc -shared -Wl,-Bsymbolic',
	      'NAME'	=> 'rpm',
	      'OBJECT'	=> 'rpm.o constant.o /usr/lib/libdb1.a',
	      'VERSION_FROM' => 'rpm.pm', # finds $VERSION
	      'LIBS'	=> ['-lrpm -lz'],   # e.g., '-lm' 
	      'CCFLAGS' => '-Dbool=char -DHAS_BOOL',
	      'OPTIMIZE'=> '-g',
	      'DEFINE'	=> '-Wall',
	      'INC'	=> '-I/usr/include/rpm',     # e.g., '-I/usr/include/other'
	      'depend'	=> { 'rpm.c' => 'transaction.xs header.xs db.xs' },
);

# $self->{'MAP_PRELIBS'} = ['-lnsl -lndbm -lgdbm -ldb1 -ldl -lm -lc -lposix -lcrypt -lrpm -lz'];