/
umud/DOC/
umud/DOC/U/
umud/DOC/U/U-examples/
umud/DOC/internals/
umud/DOC/wizard/
umud/MISC/
umud/MISC/dbchk/
umud/RWHO/rwhod/
#FLAGS= -g -pg
#FLAGS= -O
FLAGS= -g
#CFLAGS is a composite of flags from above plus headers.
CFLAGS= $(FLAGS) -I$(HDIR)

HDIR=	..

OBJ=	\
	bltin.o \
	uinterp.o \
	u_util.o \
	b_cmd.o \
	b_echo.o \
	b_err.o \
	b_lst.o \
	b_match.o \
	b_misc.o \
	b_int.o \
	b_oid.o \
	b_rnd.o \
	b_time.o \
	b_str.o

SRC=	\
	bltin.c \
	u.h \
	uinterp.y \
	u_util.c \
	b_cmd.c \
	b_echo.c \
	b_err.c \
	b_lst.c \
	b_match.c \
	b_misc.c \
	b_int.c \
	b_oid.c \
	b_rnd.c \
	b_time.c \
	b_str.c

LIB=	$(HDIR)/libu.a


$(LIB):	$(OBJ)
	ar rcv $(LIB) $(OBJ)
	ranlib $(LIB)

uinterp.c: uinterp.y
	yacc -d uinterp.y
	mv y.tab.c $@

ci:
	ci -u -t/dev/null -m" " $(SRC) Makefile < /dev/null

clean:
	rm -f $(OBJ) y.tab.h uinterp.c

depend:
	makedepend -I$(HDIR) $(SRC)