aboutsummaryrefslogtreecommitdiff
path: root/sys/rules.mk
blob: 362edcd299ccc5d945241718b10dfcbb7f9828b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ---- Push on stack ----
SP 			   := $(SP).x
DIRSTACK_$(SP) := $(d)
d 			   := $(DIR)

# Iterate through subdirectory tree
DIR := $(d)/libc
include $(DIR)/rules.mk

DIR := $(d)/libn
include $(DIR)/rules.mk

# ---- Pop off stack ----
-include $(DEPS_$(d))

d  := $(DIRSTACK_$(SP))
SP := $(basename $(SP))