From 9c6917a866bd7736001b88e10f20e0e35ec7e977 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 13 Oct 2022 00:05:05 +0200 Subject: Move from make(1) to tup(1) --- src/Tupfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Tupfile (limited to 'src/Tupfile') 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 -- cgit v1.2.3