3 PDIR
:= $(SRCDIR
)/system
/fbterm
4 CWD
!= realpath
--relative-to
=$(SRCDIR
) .
6 SYSCFLAGS
+= -I
$(PDIR
)/include
14 @
$(ECHO
) " ELF " $(CWD
)/$@
;
15 @
$(SYSCC
) $(SYSLDFLAGS
) $< $(SYSLDLIBS
) -o
$@
;
17 builtin.o
: $(obj-y
) $(dirs-y
)
18 @
$(ECHO
) " SYSLD " $(CWD
)/builtin.o
;
19 @
$(SYSLD
) $(SYSLDFLAGS
) -r
$(obj-y
) $(patsubst %/,%/builtin.o
, $(dirs-y
)) -o builtin.o
;
22 $(dirs-y
): $(patsubst %/,%/Makefile
, $(dirs-y
))
23 @
$(ECHO
) " MK " $(CWD
)/$@
24 @
$(MAKE
) -C
$@
$(param
)
27 @
$(ECHO
) " SYSCC " $(CWD
)/$@
;
28 @
$(SYSCC
) $(SYSCFLAGS
) -c
$< -o
$@
33 @
$(ECHO
) " RM " $(obj-y
) builtin.o fbterm
34 @
$(RM
) -f fbterm builtin.o
$(obj-y
)