usr.bin: add usr.bin
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
1726663cab
commit
f47a4bfa2c
8 changed files with 87 additions and 11 deletions
|
|
@ -4,10 +4,10 @@
|
|||
#
|
||||
# Important to remember that this is run at the project-root-level,
|
||||
# all of it, as it is invoked with $(MAKE) -f
|
||||
ifneq ($(shell test -e .config && echo -n yes),yes)
|
||||
$(error Please type `make config` to generate a config)
|
||||
endif
|
||||
-include .config
|
||||
#ifneq ($(shell test -e .config && echo -n yes),yes)
|
||||
# $(error Please type `make config` to generate a config)
|
||||
#endif
|
||||
#-include .config
|
||||
export
|
||||
|
||||
obj-y :=
|
||||
|
|
@ -22,7 +22,11 @@ real-objs-y := $(addprefix $(obj)/, $(filter-out %/, $(obj-y)))
|
|||
subdir-objs-y := $(foreach d,$(subdir-y),$(obj)/$(d)/built-in.o)
|
||||
deps := $(real-objs-y:.o=.d)
|
||||
|
||||
ifeq ($(obj),.)
|
||||
_all: $(subdir-objs-y)
|
||||
else
|
||||
_all: $(obj)/built-in.o
|
||||
endif
|
||||
|
||||
$(obj)/%.o: $(obj)/%.c
|
||||
$(Q)echo " CC $@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue