diff options
Diffstat (limited to 'build/gmake/Makefile')
-rw-r--r-- | build/gmake/Makefile | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/build/gmake/Makefile b/build/gmake/Makefile new file mode 100644 index 0000000..b2ebdc0 --- /dev/null +++ b/build/gmake/Makefile @@ -0,0 +1,91 @@ +# GNU Make workspace makefile autogenerated by Premake + +.NOTPARALLEL: + +ifndef config + config=release_static +endif + +ifndef verbose + SILENT = @ +endif + +ifeq ($(config),release_static) + brotli_common_config = release_static + brotli_dec_config = release_static + brotli_enc_config = release_static + bro_config = release_static +endif +ifeq ($(config),release_shared) + brotli_common_config = release_shared + brotli_dec_config = release_shared + brotli_enc_config = release_shared + bro_config = release_shared +endif +ifeq ($(config),debug_static) + brotli_common_config = debug_static + brotli_dec_config = debug_static + brotli_enc_config = debug_static + bro_config = debug_static +endif +ifeq ($(config),debug_shared) + brotli_common_config = debug_shared + brotli_dec_config = debug_shared + brotli_enc_config = debug_shared + bro_config = debug_shared +endif + +PROJECTS := brotli_common brotli_dec brotli_enc bro + +.PHONY: all clean help $(PROJECTS) + +all: $(PROJECTS) + +brotli_common: +ifneq (,$(brotli_common_config)) + @echo "==== Building brotli_common ($(brotli_common_config)) ====" + @${MAKE} --no-print-directory -C . -f brotli_common.make config=$(brotli_common_config) +endif + +brotli_dec: brotli_common +ifneq (,$(brotli_dec_config)) + @echo "==== Building brotli_dec ($(brotli_dec_config)) ====" + @${MAKE} --no-print-directory -C . -f brotli_dec.make config=$(brotli_dec_config) +endif + +brotli_enc: brotli_common +ifneq (,$(brotli_enc_config)) + @echo "==== Building brotli_enc ($(brotli_enc_config)) ====" + @${MAKE} --no-print-directory -C . -f brotli_enc.make config=$(brotli_enc_config) +endif + +bro: brotli_common brotli_dec brotli_enc +ifneq (,$(bro_config)) + @echo "==== Building bro ($(bro_config)) ====" + @${MAKE} --no-print-directory -C . -f bro.make config=$(bro_config) +endif + +clean: + @${MAKE} --no-print-directory -C . -f brotli_common.make clean + @${MAKE} --no-print-directory -C . -f brotli_dec.make clean + @${MAKE} --no-print-directory -C . -f brotli_enc.make clean + @${MAKE} --no-print-directory -C . -f bro.make clean + +help: + @echo "Usage: make [config=name] [target]" + @echo "" + @echo "CONFIGURATIONS:" + @echo " release_static" + @echo " release_shared" + @echo " debug_static" + @echo " debug_shared" + @echo "" + @echo "TARGETS:" + @echo " all (default)" + @echo " clean" + @echo " brotli_common" + @echo " brotli_dec" + @echo " brotli_enc" + @echo " bro" + @echo "" + @echo "For more information, see http://industriousone.com/premake/quick-start"
\ No newline at end of file |