From cbc1dfa2fcafb283cea5d87092db1a9b786c962c Mon Sep 17 00:00:00 2001 From: nathansmith Date: Sat, 26 Apr 2025 08:49:59 -0600 Subject: Downgraded to makefile lol --- src/libsldj/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/libsldj/Makefile (limited to 'src/libsldj/Makefile') diff --git a/src/libsldj/Makefile b/src/libsldj/Makefile new file mode 100644 index 0000000..fc15314 --- /dev/null +++ b/src/libsldj/Makefile @@ -0,0 +1,11 @@ +TARGET = libsldj.so +SOURCES = $(shell find -name "*.c") +OBJECTS = $(SOURCES:.c=.o) + +%.o: %.c + $(CC) -c -fPIC -o $@ $< +$(TARGET): $(OBJECTS) + $(CC) -shared -o $(TARGET) $(OBJECTS) +clean: + rm *.o + rm $(TARGET) -- cgit v1.2.3