From bdd8d563ff3f0eec41cc45d07f6c00622a531a72 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Tue, 21 May 2024 22:51:55 -0600 Subject: first commit --- jsi/src/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 jsi/src/Makefile (limited to 'jsi/src/Makefile') 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) -- cgit v1.2.3