include $(ROOT)/usr/include/make/X86defs

ifneq ($(filter clean clobber runtests, $(MAKECMDGOALS)),)
    SUBDIRS += test
endif

VPATH = ../../../../common/lib/p2p/vn

VNRPC = NONE

TARGETS = libvn.a
CFILES = vnlinux.c vnusblinux.c 
HFILES = vnlinux.h

include $(VPATH)/Make.common

headers: $(HFILES)
	$(INSTALL) -m 444 $(HFILES) $(INCDIR)

exports: $(TARGETS)
	$(INSTALL) $(TARGETS) $(LIBDIR)

install:  exports

default: tests

tests: headers exports
	 $(MAKE) -C test

include $(COMMONRULES)
