Cross Reference: Makefile
xref: /src/bin/ksh/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/bin/ksh/
Makefile revision 1.1
1CFLAGS+=	-DHAVE_CONFIG_H -I.
2
3PROG=	ksh
4SRCS=	alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
5	eval.c exec.c expr.c history.c io.c jobs.c lex.c mail.c \
6	main.c misc.c missing.c path.c shf.c sigact.c syn.c table.c trap.c \
7	tree.c tty.c var.c version.c vi.c
8CLEANFILES+=emacs.out siglist.out
9
10beforedepend:	emacs.out siglist.out
11
12# two steps to prevent the creation of a bogus siglist.out
13siglist.out: config.h sh.h siglist.in siglist.sh
14	$(.CURDIR)/siglist.sh "$(CPP) $(CPPFLAGS) $(DEFS) -I. -I$(.CURDIR)" < $(.CURDIR)/siglist.in > tmpsiglist.out
15	mv tmpsiglist.out siglist.out
16
17# two steps to prevent the creation of a bogus emacs.out
18emacs.out: emacs.c
19	$(.CURDIR)/emacs-gen.sh $(.CURDIR)/emacs.c > tmpemacs.out
20	mv tmpemacs.out emacs.out
21
22emacs.o: emacs.out
23trap.o: siglist.out
24
25.include <bsd.prog.mk>
26

Indexes created Thu Dec 04 17:09:29 GMT 2025