Makefile: removed configure and made library builds better

This commit is contained in:
Emma Tebibyte 2024-02-06 22:21:46 -07:00
parent 2ec04c0564
commit 5b47936477
Signed by: emma
GPG Key ID: 06FA419A1698C270
2 changed files with 4 additions and 50 deletions

View File

@ -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