summaryrefslogtreecommitdiffhomepage
path: root/doc/mrbgems/c_extension_example/Makefile
diff options
context:
space:
mode:
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