vbos/usr.bin/Makefile
Michael Shaw 0297f4a34c syscall: imeplement basic file IO syscalls
also fix a bug where the RAX register would be restored to its initial
state instead of carrying the syscall return value
2023-11-27 02:48:52 -05:00

24 lines
478 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# usr.bin/Makefile
#
# Compile all user programs.
UPRG := test1 ftest
UPRGCLEAN := $(addsuffix clean,$(UPRG))
UPRGBUILD := $(addsuffix build,$(UPRG))
UPRGINSTALL := $(addsuffix install,$(UPRG))
all: $(UPRGBUILD) $(UPRGINSTALL)
%build: %
@$(MAKE) --no-print-directory -C $<
clean: $(UPRGCLEAN)
%clean: %
@$(MAKE) -C $< clean
@echo " CLEAN usr.bin/$<"
%install: %
@mkdir -p ../bin
@$(MAKE) --no-print-directory -C $< install