## Copyright, 2001, Astra Network Inc.  All Rights Reserved

## This source code has been published by Astra Network Inc. However, any
## use, reproduction, modification, distribution or transfer of this
## software, or any software which includes or is based upon any of this
## code, is only permitted if expressly authorized by a written license
## agreement from Astra. Contact your Astra representitive directly for
## more information.

Makefile: $(MKFILELOCATION)
	$(CPMKFILE) $< $@
	@echo "ERROR: Makefile was out of date, it has been updated. Please remake." && /bin/false

deps: $(DEPSFROM)
	$(DEPS) $^ > deps.mk

-include deps.mk

test: test/Makefile
	@mkdir test 2> /dev/null || /bin/true
	$(MAKE) -C test test

test/Makefile: $(TESTMKFILE)
	@mkdir test 2> /dev/null || /bin/true
	$(CPMKFILE) $< $@

lint:
	$(LINT) $(INCLUDES) $(LINTFLAGS) $(SRCS)

$(MODNAME)_olmod.h: $(MODNAME).meta
	$(TOPDIR)/mkfiles/olmod.pl < $^ >$@

$(MODNAME)_olarg.h: $(MODNAME).meta
	$(TOPDIR)/mkfiles/olarg.pl < $^ >$@

$(MODNAME).include: $(MODNAME).meta
	$(TOPDIR)/mkfiles/olinc.pl < $^ >$@
	cp $@ ../
