summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..34b780b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+# SPDX-FileCopyrightText: 2024 Tomasz Kramkowski <tomasz@kramkow.ski>
+# SPDX-LicenseIdentifier: GPL-3.0-or-later
+
+CFLAGS += -std=c11
+
+%.escaped: % cescape Makefile
+ < $< ./cescape > $@
+
+%.c: %.in.c %.in.c.escaped combine Makefile
+ < $< ./combine $*.in.c.escaped > $@
+
+all: cquine
+cquine: cquine.c
+cquine.c: cquine.in.c
+cescape: cescape.c
+combine: combine.c