aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/rc/rules.mk')
-rw-r--r--sys/cmd/rc/rules.mk37
1 files changed, 27 insertions, 10 deletions
diff --git a/sys/cmd/rc/rules.mk b/sys/cmd/rc/rules.mk
index 654a44e..0a5af08 100644
--- a/sys/cmd/rc/rules.mk
+++ b/sys/cmd/rc/rules.mk
@@ -1,22 +1,39 @@
include share/push.mk
+# Iterate through subdirectory tree
# Local sources
SRCS_$(d) := \
- $(d)/glob.c \
- $(d)/word.c \
- $(d)/util.c \
- $(d)/io.c \
- $(d)/var.c \
- $(d)/tree.c \
- $(d)/lex.c \
- $(d)/parse.c \
- $(d)/main.c
+ $(d)/code.c\
+ $(d)/exec.c\
+ $(d)/getflags.c\
+ $(d)/glob.c\
+ $(d)/here.c\
+ $(d)/io.c\
+ $(d)/lex.c\
+ $(d)/pcmd.c\
+ $(d)/pfnc.c\
+ $(d)/simple.c\
+ $(d)/subr.c\
+ $(d)/trap.c\
+ $(d)/tree.c\
+ $(d)/var.c\
+ $(d)/y.tab.c\
+ $(d)/unix.c\
+ $(d)/havefork.c\
+ $(d)/prompt.c
+
BINS_$(d) := $(d)/rc
include share/paths.mk
# Local rules
-$(BINS_$(d)): $(OBJS_$(d)) $(OBJ_DIR)/libn/libn.a
+$(d)/y.tab.h $(d)/y.tab.c: $(d)/syn.y
+ yacc -d $^
+
+$(BINS_$(d)): TCFLAGS = \
+ -D_XOPEN_SOURCE=500
+
+$(BINS_$(d)): $(OBJS_$(d)) $(OBJ_DIR)/sys/libn/libn.a /home/nolln/root/lib/libreadline.a /home/nolln/root/lib/libhistory.a /home/nolln/root/lib/libncursesw.a
$(COMPLINK)
include share/pop.mk