aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-06-17 07:25:04 +0800
committerMistivia <i@mistivia.com>2025-06-17 07:25:04 +0800
commitb8e8f46f58136464c4fdd0aa37578f2313f0bd93 (patch)
treebe4fef8a05819f75e15c2b346e64d01cf0bfa2fc /Makefile
parent5339475c56c5b2369d4550c6508e1a71865e0298 (diff)
fix makefile, add header for vec.h
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9546829..87a6694 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,10 @@ tests=$(shell ls tests/*.c)
tests_bin=$(tests:.c=.bin)
all: libalgds.a
+ mkdir -p build/lib
+ mkdir -p build/include/algds
+ cp src/*.h build/include/algds
+ cp libalgds.a build/lib/
libalgds.a: $(obj)
ar cr $@ $^
@@ -32,6 +36,7 @@ $(tests_bin):%.bin:%.c libalgds.a
$(cc) $(cflags) -Isrc/ $< libalgds.a -MD -MF $@.d -o $@
clean:
+ -rm build/
-rm $(shell find tests/ -name '*.bin')
-rm $(shell find . -name '*.o' -or -name '*.a' -or -name '*.d')