usr: add first userspace program
This commit is contained in:
parent
39bb50a992
commit
bcf6906e72
6 changed files with 88 additions and 3 deletions
21
usr.bin/Makefile
Normal file
21
usr.bin/Makefile
Normal 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/$<"
|
||||
Loading…
Reference in a new issue