aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoranon2025-07-02 09:52:28 +0200
committeranon2025-07-02 09:52:28 +0200
commit2f381d9c24c1418af5b27243428622d4a2b9c467 (patch)
tree2a2f81475d216dead588bf691fd59a17122a9c7a /Makefile
downloadlibchad-2f381d9c24c1418af5b27243428622d4a2b9c467.tar.xz
libchad-2f381d9c24c1418af5b27243428622d4a2b9c467.tar.zst
init
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c4904f6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+SOURCE := $(wildcard chad/*.c extern/*.c)
+
+so:
+ ${CC} -fPIC -shared ${SOURCE} -o object/libchad.so
+
+dist:
+ -mkdir object/chad/
+ for d in chad/ extern/; do \
+ pushd $$d; \
+ find ./ -type f -name '*.h' -exec cp --parents {} ../object/chad/ \; ; \
+ popd; \
+ done
+
+clean:
+ -rm -frfr object/*