diff options
author | nathansmith117 <nathansmith117@sdf.org> | 2024-05-22 04:51:55 +0000 |
---|---|---|
committer | nathansmith117 <nathansmith117@sdf.org> | 2024-05-22 04:51:55 +0000 |
commit | bdd8d563ff3f0eec41cc45d07f6c00622a531a72 (patch) | |
tree | ceb9cac325b893b20b5d0303e988252136680e03 /jsi/src/Makefile | |
download | forgorttonProjects-main.tar.gz forgorttonProjects-main.tar.bz2 forgorttonProjects-main.zip |
Diffstat (limited to 'jsi/src/Makefile')
-rw-r--r-- | jsi/src/Makefile | 22 |
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) |