summaryrefslogtreecommitdiffhomepage
path: root/doc/mrbgems/c_extension_example/Makefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-07 01:04:32 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-07 01:04:32 -0800
commitf521738953b9297a4d26e68ec42b7e9a22e5b442 (patch)
treec54451f210ebea9233229cc29ad82311e554ff63 /doc/mrbgems/c_extension_example/Makefile
parentbd3b95cae66bf68a757a0dcdf05bcb05eb177391 (diff)
parentbef73cc54f044e16caf6bc1ba16ed0bf779c5ade (diff)
downloadmruby-f521738953b9297a4d26e68ec42b7e9a22e5b442.tar.gz
mruby-f521738953b9297a4d26e68ec42b7e9a22e5b442.zip
Merge pull request #479 from bovi/mrbgems
mrbgems
Diffstat (limited to 'doc/mrbgems/c_extension_example/Makefile')
-rw-r--r--doc/mrbgems/c_extension_example/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/mrbgems/c_extension_example/Makefile b/doc/mrbgems/c_extension_example/Makefile
new file mode 100644
index 000000000..339669970
--- /dev/null
+++ b/doc/mrbgems/c_extension_example/Makefile
@@ -0,0 +1,10 @@
+GEM := c_extension_example
+
+include $(MAKEFILE_4_GEM)
+
+GEM_C_FILES := $(wildcard $(SRC_DIR)/*.c)
+GEM_OBJECTS := $(patsubst %.c, %.o, $(GEM_C_FILES))
+
+gem-all : $(GEM_OBJECTS) gem-c-files
+
+gem-clean : gem-clean-c-files