CFLAGS = -O -w
OBJS=args.o builtin.o cmd.o ctype.o error.o expand.o fault.o io.o macro.o \
	main.o msg.o name.o print.o service.o stak.o string.o word.o xec.o
HDRS=ctype.h defs.h mac.h mode.h name.h stak.h sym.h timeout.h

all:	sh

install:	sh
	cp sh /bin/sh
	rm -f sh *.o

sh:	args.o builtin.o cmd.o ctype.o error.o expand.o fault.o io.o macro.o \
	main.o msg.o name.o print.o service.o stak.o string.o word.o xec.o

$(OBJS): $(HDRS)

sh:
	$(CC) -o $@ *.o

clean:
	rm -f sh *.o
