Merge branch 'master' of git://cadel.mutabah.net/acess2
[tpg/acess2.git] / Usermode / body.mk
index 83a7b81..2bd23d7 100644 (file)
@@ -1,14 +1,13 @@
 
 OBJ := $(call fcn_src2obj,$(SRCS))
-ALL_OBJ := $(ALL_OBJ) $(OBJ)
-OBJ-$(DIR) := $(OBJ)
-BIN-$(DIR) := $(BIN)
+
+$(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