Add a submodule for the official brotli repo, and use that instead of
[io-compress-brotli.git] / Makefile.PL
index a44b60729072c298cac248a078d4a514ce32f334..f522b93b6372bd7a2308d71d0ef1394cf794b7be 100644 (file)
@@ -13,10 +13,8 @@ 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)',
        META_ADD         => {
                dynamic_config => 0,
                resources      => {
@@ -24,3 +22,10 @@ WriteMakefile(
                },
        }
 );
+
+sub MY::postamble {
+'
+$(MYEXTLIB): brotli/Makefile
+       cd brotli && CFLAGS=-fPIC $(MAKE) lib
+'
+}
This page took 0.009049 seconds and 4 git commands to generate.