aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--src/vec.h1
2 files changed, 6 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')
diff --git a/src/vec.h b/src/vec.h
index 9d32136..ccc0f6a 100644
--- a/src/vec.h
+++ b/src/vec.h
@@ -2,6 +2,7 @@
#define ALGDS_VEC_H_
#include <stdlib.h>
+#include <string.h>
#include <stdio.h>
#include "type_alias.h"