apacheMakefile 413 B

1234567891011
  1. PHP_DIR = php-7.0.7
  2. $(PHP_DIR): $(PHP_DIR).tar.gz
  3. tar -xmzf $<
  4. $(INSTALL_DIR)/modules/libphp7.so: $(PHP_DIR) $(INSTALL_DIR)/bin/apxs
  5. cd $< && ./configure --prefix=$(abspath $(INSTALL_DIR)) --with-apxs2=$(abspath $(INSTALL_DIR)/bin/apxs) \
  6. --disable-cgi --disable-cli --disable-soap
  7. cd $< && $(MAKE)
  8. cd $< && $(MAKE) install
  9. build-apache-with-php: $(INSTALL_DIR)/bin/httpd $(INSTALL_DIR)/modules/libphp7.so