commit e8df912dce76b1125439ba6f62e722e42490b47a
parent d946dcba01a220dcc6a7597075f6f10640eaaf5d
Author: finwo <finwo@pm.me>
Date: Thu, 16 Apr 2026 09:55:24 +0200
Include license in src files to comply even if bare files copied
Diffstat:
3 files changed, 77 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -14,7 +14,7 @@ OBJ=$(SRC:.c=.o)
BIN=\
test_matmul
-default: README.md $(BIN)
+default: $(BIN)
$(BIN): $(OBJ) test/$(BIN:=.o)
$(CC) $(CFLAGS) $(OBJ) test/$@.o -o $@
@@ -24,8 +24,8 @@ clean:
rm -f $(OBJ)
rm -f $(BIN:=.o)
-README.md: ${SRC} src/matmul.h
- stddoc < src/matmul.h > README.md
+# README.md: ${SRC} src/matmul.h
+# stddoc < src/matmul.h > README.md
.PHONY: format
format:
diff --git a/src/matmul.c b/src/matmul.c
@@ -1,3 +1,40 @@
+/*
+ * Copyright (c) 2026 finwo
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to use, copy,
+ * modify, and distribute the Software, subject to the following conditions:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions, and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, or any public offering of the Software
+ * (including hosted or managed services), must reproduce the above copyright
+ * notice, this list of conditions, and the following disclaimer in the
+ * documentation and/or other materials provided.
+ *
+ * 3. Any redistribution or public offering of the Software must clearly attribute
+ * the Software to the original copyright holder, reference this License, and
+ * include a link to the official project repository or website.
+ *
+ * 4. The Software may not be renamed, rebranded, or marketed in a manner that
+ * implies it is an independent or proprietary product. Derivative works must
+ * clearly state that they are based on the Software.
+ *
+ * 5. Modifications to copies of the Software must carry prominent notices stating
+ * that changes were made, the nature of the modifications, and the date of the
+ * modifications.
+ *
+ * Any violation of these conditions terminates the permissions granted herein.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
#define _GNU_SOURCE
#include "matmul.h"
diff --git a/src/matmul.h b/src/matmul.h
@@ -1,3 +1,40 @@
+/*
+ * Copyright (c) 2026 finwo
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to use, copy,
+ * modify, and distribute the Software, subject to the following conditions:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions, and the following disclaimer.
+ *
+ * 2. Redistributions in binary form, or any public offering of the Software
+ * (including hosted or managed services), must reproduce the above copyright
+ * notice, this list of conditions, and the following disclaimer in the
+ * documentation and/or other materials provided.
+ *
+ * 3. Any redistribution or public offering of the Software must clearly attribute
+ * the Software to the original copyright holder, reference this License, and
+ * include a link to the official project repository or website.
+ *
+ * 4. The Software may not be renamed, rebranded, or marketed in a manner that
+ * implies it is an independent or proprietary product. Derivative works must
+ * clearly state that they are based on the Software.
+ *
+ * 5. Modifications to copies of the Software must carry prominent notices stating
+ * that changes were made, the nature of the modifications, and the date of the
+ * modifications.
+ *
+ * Any violation of these conditions terminates the permissions granted herein.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT
+ * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
#ifndef MATMUL_H
#define MATMUL_H