aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-10-13 00:05:05 +0200
committerThomas Voss <mail@thomasvoss.com> 2022-10-13 00:05:05 +0200
commit9c6917a866bd7736001b88e10f20e0e35ec7e977 (patch)
tree60e5b59e6b9c57d334fb7f81cefcf46c7a7dd47e /src
parent7118692e506f9698a77c7cceea3b1dd47bb4b99a (diff)
Move from make(1) to tup(1)
Diffstat (limited to 'src')
-rw-r--r--src/Tupfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Tupfile b/src/Tupfile
new file mode 100644
index 0000000..ac7f050
--- /dev/null
+++ b/src/Tupfile
@@ -0,0 +1,12 @@
+import CFLAGS=
+CFLAGS += -Wall -Wextra -Wpedantic -Werror
+CFLAGS += -march=native -mtune=native
+CFLAGS += -fomit-frame-pointer -O3
+CFLAGS += -pipe
+
+import CC=cc
+import AR=ar
+
+: foreach *.c |> ^ CC %f^ $(CC) $(CFLAGS) -c %f |> %B.o
+: *.o |> ^ AR %f^ $(AR) crs %o %f |> liblux.a
+: *.o |> ^ CC %f^ $(CC) $(CFLAGS) -fPIC -shared -o %o %f |> liblux.so