aboutsummaryrefslogtreecommitdiff
path: root/sys/base/rules.mk
blob: 1300f4c70916fd1bc5d06653151619f80810ddb6 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
include share/push.mk

# Iterate through subdirectory tree

# Local sources 
SRCS_$(d) := \
	$(d)/arg.c \
	$(d)/bufio.c \
	$(d)/coro_unix_x64.s \
	$(d)/coro.c \
	$(d)/error.c \
	$(d)/flate.c \
	$(d)/fs.c \
	$(d)/gz.c \
	$(d)/io.c \
	$(d)/os.c \
	$(d)/memory.c \
	$(d)/mmap.c \
	$(d)/random.c \
	$(d)/sort.c \
	$(d)/string.c

TSTS_$(d) := \
	$(d)/test.c

LIBS_$(d) := $(d)/base.a
BINS_$(d) :=

include share/paths.mk

$(LIBS_$(d)): $(OBJS_$(d))
	$(ARCHIVE)

$(UNTS_$(d)): TCLIBS := $(LIBS_$(d))
$(UNTS_$(d)): $(TOBJS_$(d)) $(LIBS_$(d))
	$(LINK)

include share/pop.mk