aboutsummaryrefslogtreecommitdiff
path: root/sys/rules.mk
blob: aac0aaac65a7f358ef8356a707b291d5a6daa6c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ---- 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

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

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

# ---- Pop off stack ----
d  := $(DIRSTACK_$(SP))
SP := $(basename $(SP))