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

############################################################
# Defintions
############################################################

SRCS	=	again.c \
		attack.c \
		build.c \
		commands.c \
		convert.c \
		deity.c \
		deli.c \
		demob.c \
		design.c \
		distri.c \
		enlist.c \
		fire.c \
		grind.c \
		load.c \
		market.c \
		mfire.c \
		move.c \
		multi.c \
		pemp.c \
		shoot.c \
		territory.c \
		threshold.c \
		trade.c

OBJS	= 	again.o \
		attack.o \
		build.o \
		commands.o \
		convert.o \
		deity.o \
		deli.o \
		demob.o \
		design.o \
		distri.o \
		enlist.o \
		fire.o \
		grind.o \
		load.o \
		market.o \
		mfire.o \
		move.o \
		multi.o \
		pemp.o \
		shoot.o \
		territory.o \
		threshold.o \
		trade.o

LIB	=	../libcommands.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)
