diff options
Diffstat (limited to 'src')
-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 |