summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: ed89d8447209c33d0a949cae6f822432ccc2354f (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Makefile.in for rc.

SHELL=/bin/sh

bindir=@bindir@
exec_prefix=@exec_prefix@
mandir=@mandir@
prefix=@prefix@

CC=@CC@
CFLAGS=@CFLAGS@
LDFLAGS=@CFLAGS@
LIBS=@LIBS@

INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
LN=@LN@
YACC=@YACC@

HISTORY=@HISTORY@

OBJS=@ADDON@ builtins.o except.o exec.o @EXECVE@ fn.o footobar.o getopt.o \
	glob.o glom.o hash.o heredoc.o input.o lex.o list.o main.o match.o \
	nalloc.o open.o print.o redir.o sigmsgs.o signal.o status.o tree.o \
	utils.o var.o version.o wait.o walk.o which.o y.tab.o

all: rc $(HISTORY)

rc: $(OBJS)
	$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)

sigmsgs.c: mksignal
	sh mksignal @SIGNAL_H@

y.tab.c: parse.y
	$(YACC) -d parse.y

trip: rc
	./rc -p < trip.rc

clean: force
	rm -f rc $(HISTORY) - *.o *.tab.* sigmsgs.* config.cache config.log

cleaner: clean
	rm -f config.status config.h Makefile

cleanest: cleaner
	rm -f configure

history: force
	cd history; make CC="$(CC)" $(HISTORYMAKEFLAGS)

install: all
	$(INSTALL_PROGRAM) rc $(bindir)
	$(INSTALL_DATA) rc.1 $(mandir)/man1/rc.1
	case "x$(HISTORY)" in \
	x) \
		;; \
	*) \
		$(LN) $(HISTORY) - ;\
		$(INSTALL_PROGRAM) - $(bindir) ;\
		$(LN) $(bindir)/- $(bindir)/-- ;\
		$(LN) $(bindir)/- $(bindir)/-p ;\
		$(LN) $(bindir)/- $(bindir)/--p ;\
		$(INSTALL_DATA) history/history.1 $(mandir)/man1/history.1 \
		;; \
	esac

force:

# dependencies:

$(OBJS): config.h proto.h rc.h
sigmsgs.h: sigmsgs.c
lex.o y.tab.o: y.tab.c

builtins.o except.o exec.o input.o signal.o utils.o wait.o walk.o: jbwrap.h
builtins.o: rlimit.h
builtins.o fn.o hash.o signal.o status.o: sigmsgs.h