usr: add first userspace program

This commit is contained in:
Michael Shaw 2023-11-15 14:33:34 -05:00
commit bcf6906e72
6 changed files with 88 additions and 3 deletions

21
usr.bin/Makefile Normal file
View file

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