diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-09-20 00:27:56 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-09-20 00:27:56 +0800 |
| commit | 19fa4a0993acef802ab4250541c1df72c7e2b604 (patch) | |
| tree | 11ea5e1e499d053c01364bda05a3a818f9d43858 /mrbgems/Makefile4gem | |
| parent | ab548b1c19a23cb6e8369a67d03f4c60a54f8a54 (diff) | |
| download | mruby-19fa4a0993acef802ab4250541c1df72c7e2b604.tar.gz mruby-19fa4a0993acef802ab4250541c1df72c7e2b604.zip | |
Add default makefile for Gems
Diffstat (limited to 'mrbgems/Makefile4gem')
| -rw-r--r-- | mrbgems/Makefile4gem | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mrbgems/Makefile4gem b/mrbgems/Makefile4gem new file mode 100644 index 000000000..a4fa3f3c9 --- /dev/null +++ b/mrbgems/Makefile4gem @@ -0,0 +1,37 @@ +# This is the default Makefile integrated +# by each Gem. It integrates important constants +# for usage inside of a Gem. + +# mruby src root +MRUBY_ROOT := ../../../ + +# Tools +CC := gcc +RM := rm -f +AR := ar + +SRC_DIR := src + +INCLUDES := -I$(SRC_DIR) -I$(MRUBY_ROOT)include -I$(MRUBY_ROOT)src -I. +CFLAGS := $(INCLUDES) -O3 -g -Wall -Werror-implicit-function-declaration + +# LIBR can be manipulated with command line arguments +ifeq ($(strip $(LIBR)),) + # default mruby library + LIBR := $(MRUBY_ROOT)lib/libmruby.a +endif + +# Default rules which are calling the +# gem specific gem-all and gem-clean +# implementations of a gem + +.PHONY : all +all : gem-info gem-all + @echo "Gem '$(GEM)' is done" + +gem-info: + @echo "Building Gem '$(GEM)'" + +.PHONY : clean +clean : gem-clean + @echo "Gem '$(GEM)' is clean" |
