Merge branch 'retval' into overgrown

This commit is contained in:
dtb
2024-07-23 18:00:01 -06:00
2 changed files with 45 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ RUSTLIBS = --extern getopt=build/o/libgetopt.rlib \
CFLAGS += -I$(SYSEXITS)
.PHONY: all
all: dj false fop hru intcmp mm npc pschdir rpn scrut str strcmp swab true
all: dj false fop hru intcmp mm npc pschdir retval rpn scrut str strcmp swab true
# keep build/include until bindgen(1) has stdin support
# https://github.com/rust-lang/rust-bindgen/issues/2703
@@ -127,6 +127,11 @@ pschdir: build/bin/pschdir
build/bin/pschdir: src/pschdir.c build
$(CC) $(CFLAGS) -o $@ src/pschdir.c
.PHONY: retval
retval: build/bin/retval
build/bin/retval: src/retval.rs build rustlibs
$(RUSTC) $(RUSTFLAGS) $(RUSTLIBS) -o $@ src/retval.rs
.PHONY: rpn
rpn: build/bin/rpn
build/bin/rpn: src/rpn.rs build rustlibs