blob: 519aa03846da6ad8eabdbb69dc60dac4fe4ac8e4 (
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 -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
|