aboutsummaryrefslogtreecommitdiff
path: root/src/Tupfile
blob: b6f6d4a26afb2b7f5937f4a1151b2629512b3304 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import CFLAGS=
CFLAGS += -Wall -Wextra -Wpedantic -Werror
CFLAGS += -march=native -mtune=native
CFLAGS += -fomit-frame-pointer -flto -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