## 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.

TOPDIR:=%%TOPDIR%%
include $(TOPDIR)/mkfiles/def_glob.mk

CWD:=$(shell /bin/pwd)
CURMOD:=$(notdir $(subst /test,,$(CWD)))

VPATH:=$(MODDIR)/$(CURMOD)/test

SRCS:=$(sort $(notdir $(wildcard $(MODDIR)/$(CURMOD)/test/*.c)))
OBJS:=$(sort $(addsuffix .o, $(basename $(notdir $(SRCS)))))

CFLAGS:=-I $(TOPDIR)/include -I $(MODDIR)/$(CURMOD) -I $(MODDIR)/$(CURMOD)/test

all: $(OBJS) test

test: $(OBJS)
	$(CC) $(CFLAGS) -o test $(OBJS) -L ../ -l$(CURMOD)S

clean:
	-rm -f $(OBJS) test



