Reorganize c stuff.
Florian Ragwitz [Sun, 15 Mar 2009 19:34:07 +0000 (20:34 +0100)]
Move c code to cmop/ and header files to include/.

Makefile.PL
cmop/mop.c [moved from mop.c with 100% similarity]
include/mop.h [moved from mop.h with 100% similarity]
include/ppport.h [moved from ppport.h with 100% similarity]

index 9f3a285..b97d941 100644 (file)
@@ -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 (<cmop/*.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();
similarity index 100%
rename from mop.c
rename to cmop/mop.c
similarity index 100%
rename from mop.h
rename to include/mop.h
similarity index 100%
rename from ppport.h
rename to include/ppport.h