aboutsummaryrefslogtreecommitdiffstats
path: root/jsi/src/Makefile
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2024-05-22 04:51:55 +0000
committernathansmith117 <nathansmith117@sdf.org>2024-05-22 04:51:55 +0000
commitbdd8d563ff3f0eec41cc45d07f6c00622a531a72 (patch)
treeceb9cac325b893b20b5d0303e988252136680e03 /jsi/src/Makefile
downloadforgorttonProjects-bdd8d563ff3f0eec41cc45d07f6c00622a531a72.tar.gz
forgorttonProjects-bdd8d563ff3f0eec41cc45d07f6c00622a531a72.tar.bz2
forgorttonProjects-bdd8d563ff3f0eec41cc45d07f6c00622a531a72.zip
first commitHEADmain
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)