aboutsummaryrefslogtreecommitdiffstats
path: root/jsi/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'jsi/src/Makefile')
-rw-r--r--jsi/src/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/jsi/src/Makefile b/jsi/src/Makefile
new file mode 100644
index 0000000..34b60e7
--- /dev/null
+++ b/jsi/src/Makefile
@@ -0,0 +1,22 @@
+COMPILER = gcc
+TARGET = ../lib/libjsi.a
+OBJS = jsi.o
+
+%.o: %.c
+ @echo compiling $<
+ @$(COMPILER) -c -o $@ $<
+
+$(TARGET): $(OBJS)
+ @echo making static libary
+ @ar rcs $(TARGET) $(OBJS)
+test: test.c jsi.*
+ @echo making test
+ @$(COMPILER) -o $@ $< $(TARGET) -g
+
+# Objects.
+jsi.o: jsi.c jsi.h
+
+clean:
+ rm *.o
+ rm test
+ rm $(TARGET)