aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/term/rules.mk
blob: 19fcdaf81f975ed0da3768c670356bb553d67a24 (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
include share/push.mk
# Iterate through subdirectory tree

# Local sources
SRCS_$(d) := $(d)/term.c $(d)/x.c $(d)/hb.c
BINS_$(d) := $(d)/term

include share/paths.mk

# Local rules
include share/dynamic.mk
$(BINS_$(d)): TCFLAGS = \
			`$(PKG) --cflags fontconfig` \
			`$(PKG) --cflags freetype2` \
			`$(PKG) --cflags harfbuzz`
$(BINS_$(d)): TCLIBS = \
	`$(PKG) --libs fontconfig` \
    `$(PKG) --libs freetype2`  \
	`$(PKG) --libs harfbuzz` \
	-lm -lrt -lX11 -lutil -lXft -lXrender \

$(BINS_$(d)): $(OBJS_$(d)) $(OBJ_DIR)/sys/libn/libn.a
	$(COMPLINK)

include share/pop.mk