diff --git a/build/Makefile b/build/Makefile index aa28d80fcae3f931b67e55055577abc332b05fc5..5cfb4c0ceabaf32afaf1d06e2c202d3e122d8891 100644 --- a/build/Makefile +++ b/build/Makefile @@ -9,6 +9,7 @@ EXE_SUFFIX = CFLAGS = -std=c99 -O2 -W -Wall -pedantic -pthread -pipe -I. -I.. $(CFLAGS_EXTRA) VERSION = $(shell perl -lne \ 'print $$1 if /define\s+MONGOOSE_VERSION\s+"(\S+)"/' ../mongoose.h) +WP = wordpress-private-1.3 RM = rm -rf VDIR = mongoose-$(VERSION) @@ -160,6 +161,11 @@ release: tarball macos cp mongoose-lua-sqlite-ssl.exe mongoose_php_bundle/mongoose.exe zip -r mongoose-php-$(VERSION).zip mongoose_php_bundle/ +wp: mongoose.exe + upx mongoose.exe + cp mongoose.exe $(WP)/ + zip -r $(WP).zip $(WP) + clean: @cd ../examples && $(MAKE) clean @$(RM) *.o *.core $(PROG) *.obj *.so $(PROG).txt *.dSYM *.tgz \