commit 4e704929297371934cb5ace5fb59433f6c664c34 parent a09362ba95ef5581dc5fcc05384d61ed3f662c15 Author: lash <dev@holbrook.no> Date: Mon, 15 Apr 2024 18:15:49 +0100 Fix shared build makefile Diffstat:
M | Makefile | | | 4 | +++- |
M | src/Makefile | | | 5 | ++--- |
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,5 +1,7 @@ -all: src +all: shared +shared: + make -C src shared src: make -C src diff --git a/src/Makefile b/src/Makefile @@ -13,11 +13,10 @@ clean: test: all make -C tests test +%.so.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ -fpic shared: strip.so.o endian.so.o - $(CC) $(CFLAGS) -c strip.c -o strip.so.o -fpic - $(CC) $(CFLAGS) -c endian.c -o endian.so.o -fpic $(CC) $(CFLAGS) -shared -o liblash.so $^ - .PHONY: clean