Merge branch 'argued' into overgrown

This commit is contained in:
dtb
2024-07-23 19:55:24 -06:00
3 changed files with 44 additions and 3 deletions

View File

@@ -31,9 +31,8 @@ RUSTLIBS = --extern getopt=build/o/libgetopt.rlib \
--extern strerror=build/o/libstrerror.rlib
CFLAGS += -I$(SYSEXITS)
.PHONY: all
all: dj false fop hru intcmp mm npc pschdir retval rpn scrut simexec str \
strcmp swab true
all: argued dj false fop hru intcmp mm npc pschdir retval rpn scrut simexec \
str strcmp swab true
# keep build/include until bindgen(1) has stdin support
# https://github.com/rust-lang/rust-bindgen/issues/2703
@@ -88,6 +87,11 @@ build/o/libsysexits.rlib: build/include/sysexits.h
build/include/sysexits.h: build $(SYSEXITS)sysexits.h
printf '\043define EXIT_FAILURE 1\n' | cat - $(SYSEXITS)sysexits.h > $@
.PHONY: argued
argued: build/bin/argued
build/bin/argued: src/argued.c build
$(CC) $(CFLAGS) -o $@ src/argued.c
.PHONY: dj
dj: build/bin/dj
build/bin/dj: src/dj.c build