]> iEval git - io-compress-brotli.git/blobdiff - Makefile.PL
Add libbrotli.a to the clean targets
[io-compress-brotli.git] / Makefile.PL
index a44b60729072c298cac248a078d4a514ce32f334..e2649e74e7baba2efb109441060de7bdc12ac9ec 100644 (file)
@@ -13,10 +13,9 @@ WriteMakefile(
        BUILD_REQUIRES   => {
                qw/File::Slurp 0/,
        },
-       INC              => '-I.',
-       OBJECT           => 'Brotli.o bit_reader.o decode.o dictionary.o huffman.o state.o streams.o',
-       C                => [<dec/*c>],
-       depend           => {'$(INST_DYNAMIC)' => '$(O_FILES)'},
+       INC              => '-Ibrotli',
+       MYEXTLIB         => 'brotli/libbrotli$(LIB_EXT)',
+       clean            => { FILES => 'brotli/libbrotli$(LIB_EXT)' },
        META_ADD         => {
                dynamic_config => 0,
                resources      => {
@@ -24,3 +23,10 @@ WriteMakefile(
                },
        }
 );
+
+sub MY::postamble {
+'
+$(MYEXTLIB): brotli/Makefile
+       cd brotli && CFLAGS=-fPIC $(MAKE) lib
+'
+}
This page took 0.025144 seconds and 4 git commands to generate.