diff options
author | Thomas Voss <mail@thomasvoss.com> | 2022-10-13 00:05:05 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2022-10-13 00:05:05 +0200 |
commit | 9c6917a866bd7736001b88e10f20e0e35ec7e977 (patch) | |
tree | 60e5b59e6b9c57d334fb7f81cefcf46c7a7dd47e /src/Tupfile | |
parent | 7118692e506f9698a77c7cceea3b1dd47bb4b99a (diff) |
Move from make(1) to tup(1)
Diffstat (limited to 'src/Tupfile')
-rw-r--r-- | src/Tupfile | 12 |
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 |