1 # Copyright (C) 1989 by Kenneth Almquist. All rights reserved.
2 # This file is part of ash, which is distributed under the terms specified
3 # by the Ash General Public License. See the file named LICENSE.
5 LIBFILES=catfcmd.o echocmd.o exprcmd.o linecmd.o nlechocmd.o\
11 all:$P bltinlib.a catf echo expr line nlecho true umask
13 bltinlib.a:$P $(LIBFILES)
16 catf: catf.c bltin.h ../shell.h ../error.h error.o stalloc.o
17 $(CC) $(CFLAGS) -o $@ catf.c error.o stalloc.o
19 catfcmd.o: catf.c bltin.h ../shell.h ../error.h
20 $(CC) -DSHELL $(CFLAGS) -c catf.c
23 expr: expr.c bltin.h ../shell.h operators.h operators.o regexp.o error.o stalloc.o
24 $(CC) $(CFLAGS) -o $@ expr.c operators.o regexp.o error.o stalloc.o
29 exprcmd.o: expr.c bltin.h ../shell.h operators.h
30 $(CC) -DSHELL $(CFLAGS) -c expr.c
33 operators.c operators.h: unary_op binary_op mkexpr
36 operators.o: ../shell.h operators.h
38 regexp.o: bltin.h ../shell.h
40 echo: echo.c bltin.h ../shell.h
41 $(CC) $(CFLAGS) -o $@ echo.c
43 echocmd.o: echo.c bltin.h ../shell.h
44 $(CC) -DSHELL $(CFLAGS) -c echo.c
47 line: line.c bltin.h ../shell.h
48 $(CC) $(CFLAGS) -o $@ line.c
50 linecmd.o: line.c bltin.h ../shell.h
51 $(CC) -DSHELL $(CFLAGS) -c line.c
54 nlecho: nlecho.c bltin.h ../shell.h
55 $(CC) $(CFLAGS) -o $@ nlecho.c
57 nlechocmd.o: nlecho.c bltin.h ../shell.h
58 $(CC) -DSHELL $(CFLAGS) -c nlecho.c
61 umask: umask.c bltin.h
62 $(CC) $(CFLAGS) -o $@ umask.c