summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b10c533
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+TARGET = lib_interp_c.so
+
+CFLAGS = -std=c99 -fPIC -O3 -g
+LDFLAGS = -shared
+CC = cc
+
+OBJS = _interp_c.o
+
+$(TARGET): $(OBJS)
+ $(CC) -o $@ $(OBJS) ${LDFLAGS}
+
+%.o: %.c
+ $(CC) $(CFLAGS) -MMD -MF $(@:.o=.d) -MT $@ -c -o $@ $<
+
+clean:
+ -rm -f *.o *.d $(TARGET)
+
+-include $(OBJS:.o=.d)
+
+.PHONY: clean