From: Florian Ragwitz Date: Sun, 15 Mar 2009 19:34:07 +0000 (+0100) Subject: Reorganize c stuff. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=52e2252871ecd7218483a2a2e5cc120f80017db9;p=gitmo%2FClass-MOP.git Reorganize c stuff. Move c code to cmop/ and header files to include/. --- diff --git a/Makefile.PL b/Makefile.PL index 9f3a285..b97d941 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,7 @@ perl_version '5.008001'; all_from 'lib/Class/MOP.pm'; license 'perl'; -my $ccflags = ' -I.'; +my $ccflags = ' -Iinclude'; $ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE}; requires 'Carp'; @@ -38,7 +38,7 @@ makemaker_args( CCFLAGS => $ccflags ); push @clean, $o; } - for my $c (<*.c>) { + for my $c () { (my $o = $c) =~ s/\.c$/\$(OBJ_EXT)/i; push @OBJECT, $o; push @clean, $o; @@ -52,7 +52,7 @@ makemaker_args( CCFLAGS => $ccflags ); } postamble(<<'EOM'); -$(OBJECT) : mop.h +$(OBJECT) : include/mop.h EOM WriteAll(); diff --git a/mop.c b/cmop/mop.c similarity index 100% rename from mop.c rename to cmop/mop.c diff --git a/mop.h b/include/mop.h similarity index 100% rename from mop.h rename to include/mop.h diff --git a/ppport.h b/include/ppport.h similarity index 100% rename from ppport.h rename to include/ppport.h