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

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

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