############################################################
# Makefile for commands
############################################################
# $Header$
############################################################

############################################################
# Defintions
############################################################
SRCS= budget.c \
		build.c \
		check.c \
		dlist.c \
		global.c \
		goto.c \
		highl.c \
		hpux.c \
		info.c \
		item.c \
		main.c \
		map.c \
		message.c \
		misc.c \
		misc2.c \
		myopt.c \
		path.c \
		product.c \
		realm.c \
		scan.c \
		sector.c \
		strings.c \
		var_opt.c \
		version.c \
		where.c

OBJS= budget.o \
		build.o \
		check.o \
		dlist.o \
		global.o \
		goto.o \
		highl.o \
		hpux.o \
		info.o \
		item.o \
		main.o \
		map.o \
		message.o \
		misc.o \
		misc2.o \
		myopt.o \
		path.o \
		product.o \
		realm.o \
		scan.o \
		sector.o \
		strings.o \
		var_opt.o \
		version.o \
		where.o

LIB	=	../libmisc.a
LOCALCFLAGS =	-I../parse

############################################################
# Rules
############################################################

default: lib

clean:
	rm -f $(OBJS) $(LIB)

all lib: $(LIB)

$(LIB): $(OBJS)
	$(AR) rv $@ $(OBJS)
	$(RANLIB) $@

depend:
	$(DEPEND) $(CFLAGS) $(SRCS)

version.o: version.c
	$(CC) $(CFLAGS) -c version.c -DCOM_DATE=\""`date`"\"
