Kernel/VTerm - "Fix" wrapping issue in VTerm (why was old behavior there?)
[tpg/acess2.git] / Usermode / body.mk
index d4c7414..2bd23d7 100644 (file)
@@ -1,16 +1,13 @@
 
 OBJ := $(call fcn_src2obj,$(SRCS))
-ALL_OBJ := $(ALL_OBJ) $(OBJ)
-OBJ-$(DIR) := $(OBJ)
-BIN-$(DIR) := $(BIN)
 
-$(foreach f,$(OBJ) $(BIN),$(eval _DIR-$f := $(DIR)))
+$(call fcn_addbin,$(BIN),$(OBJ))
 
 # Rules
 .PHONY: all-$(DIR) clean-$(DIR)
 all-$(DIR): $(BIN)
 clean-$(DIR): clean-%: 
        $(eval BIN=$(BIN-$*/))
-       $(eval OBJ=$(OBJ-$*/))
-       $(RM) $(BIN) $(OBJ)
+       $(eval OBJ=$(foreach f, $(BIN), $(OBJ-$f)))
+       $(RM) $(BIN) $(OBJ) $(OBJ:%=%.dep)
 

UCC git Repository :: git.ucc.asn.au