summaryrefslogtreecommitdiffstats
path: root/lib/xf86misc/Makefile.PL
blob: c0a1070cbb9fd62ada74ced707627437e6d6af72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ExtUtils::MakeMaker;
use MDK::Common;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my $lib = arch() =~ /x86_64/ ? 'lib64' : 'lib';

WriteMakefile(
    'NAME'	=> 'main',
    'MAKEFILE'  => 'Makefile_c',
    'OPTIMIZE'  => '-Os',
    'VERSION_FROM' => 'main.pm', # finds $VERSION
    'LIBS'	=> ["-L/usr/X11R6/$lib -lX11 -lXext -lXxf86misc"],
    'DEFINE'	=> '',     # e.g., '-DHAVE_SOMETHING' 
);