forked from bonsai/harakit
GNUmakefile, intcmp(1), npc(1), scrut(1), str(1), strcmp(1), include/sysexits.h: added fallback header file for when systems don’t have sysexits.h(3)
This commit is contained in:
13
GNUmakefile
13
GNUmakefile
@@ -17,22 +17,23 @@
|
||||
PREFIX=/usr/local
|
||||
|
||||
CC=cc
|
||||
CFLAGS=-O3 -Lbuild/lib
|
||||
CFLAGS=-O3 -Lbuild/lib -idirafter include
|
||||
|
||||
RUSTC=rustc
|
||||
RUSTCFLAGS=-C opt-level=z -C codegen-units=1 -C panic=abort -C lto=y -C strip=symbols
|
||||
RUSTCFLAGS=-C opt-level=z -C codegen-units=1 -C panic=abort -C lto=y \
|
||||
-C strip=symbols
|
||||
|
||||
ifeq ($(CC), gcc)
|
||||
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto \
|
||||
-Lbuild/lib
|
||||
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto -Lbuild/lib \
|
||||
-idirafter include
|
||||
endif
|
||||
|
||||
ifeq ($(CC), clang)
|
||||
CFLAGS=-O3 -Wall -Lbuild/lib
|
||||
CFLAGS=-O3 -Wall -Lbuild/lib -idirafter include
|
||||
endif
|
||||
|
||||
ifeq ($(CC), tcc)
|
||||
CFLAGS=-O3 -s -Wl -flto -Lbuild/lib
|
||||
CFLAGS=-O3 -s -Wl -flto -Lbuild/lib -idirafter include
|
||||
endif
|
||||
|
||||
build: build_dir false intcmp scrut str strcmp true
|
||||
|
||||
Reference in New Issue
Block a user