GNUmakefile: fix build for false(1)
This commit is contained in:
parent
324328d2cc
commit
8a8558442e
|
@ -17,6 +17,7 @@
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
CC=cc
|
CC=cc
|
||||||
CFLAGS=-O3 -Lbuild/lib
|
CFLAGS=-O3 -Lbuild/lib
|
||||||
|
RUSTC=rustc
|
||||||
|
|
||||||
ifeq ($(CC), gcc)
|
ifeq ($(CC), gcc)
|
||||||
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto \
|
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto \
|
||||||
|
@ -51,8 +52,8 @@ test: build
|
||||||
tests/cc-compat.sh
|
tests/cc-compat.sh
|
||||||
tests/posix-compat.sh
|
tests/posix-compat.sh
|
||||||
|
|
||||||
false: src/false.c build_dir
|
false: src/false.rs build_dir
|
||||||
$(CC) $(CFLAGS) -o build/bin/false src/false.c
|
$(RUSTC) -o build/bin/false src/false.rs
|
||||||
|
|
||||||
intcmp: src/intcmp.c build_dir
|
intcmp: src/intcmp.c build_dir
|
||||||
$(CC) $(CFLAGS) -o build/bin/intcmp src/intcmp.c
|
$(CC) $(CFLAGS) -o build/bin/intcmp src/intcmp.c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user