aboutsummaryrefslogtreecommitdiff
path: root/src/Tupfile
blob: 8cc54a0dc079d371a6927473af1e1fcab7ed1bb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import CFLAGS=
CFLAGS += -Wall -Wextra -Wpedantic -Werror
CFLAGS += -march=native -mtune=native
CFLAGS += -fomit-frame-pointer -flto -O3
CFLAGS += -pipe
CFLAGS += -D_GNU_SOURCE

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