TOPDIR = ..
include $(TOPDIR)/MakeVars
include $(TOPDIR)/Makerules

SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)

all: awethor.o

awethor.o: $(OBJS)
	$(RM) awethor.o
	$(LD) -r -o awethor.o $(OBJS)

awe: aweparse.o
	$(CC) $(CFLAGS) -DMAIN ../util/error.o ../util/fast_lis.o awelex.o -o awe aweparse.c 
dep depend:
	$(DEPEND) $(SRCS) > .depend
tags: 
	ln -sf $(TOPDIR)/TAGS TAGS
	etags -a -o TAGS $(SRCS)
clean:
	$(RM) *.o

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif

