Makefile: removed configure and made library builds better
This commit is contained in:
parent
2ec04c0564
commit
5b47936477
10
Makefile
10
Makefile
@ -15,9 +15,6 @@ PREFIX=/usr/local
|
|||||||
CC=cc
|
CC=cc
|
||||||
RUSTC=rustc
|
RUSTC=rustc
|
||||||
|
|
||||||
# to build, first run ./configure
|
|
||||||
include cc.mk rustc.mk
|
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: dj false fop intcmp scrut str strcmp true
|
all: dj false fop intcmp scrut str strcmp true
|
||||||
|
|
||||||
@ -46,7 +43,7 @@ test: build
|
|||||||
tests/posix-compat.sh
|
tests/posix-compat.sh
|
||||||
$(RUSTC) --test src/getopt-rs/lib.rs -o build/test/getopt
|
$(RUSTC) --test src/getopt-rs/lib.rs -o build/test/getopt
|
||||||
|
|
||||||
sysexits: build
|
build/o/libsysexits.rlib: build
|
||||||
# bandage solution until bindgen(1) gets stdin support
|
# bandage solution until bindgen(1) gets stdin support
|
||||||
printf '#define EXIT_FAILURE 1\n' | cat - include/sysexits.h \
|
printf '#define EXIT_FAILURE 1\n' | cat - include/sysexits.h \
|
||||||
> build/include/sysexits.h
|
> build/include/sysexits.h
|
||||||