#
# drivers Makefile
#
# x-kernel v3.2
#
# Copyright (c) 1991  Arizona Board of Regents
#
# The following variables must be defined (either defined in a
# previous makefile, set on the command line, or passed in through
# environment variables):
#
# HOW	(e.g., "DEBUGsparc")
# LIB   (relative path to library in which to archive object files)

DIRS = eth

XRT = ../..

% :: RCS/%,v

.PHONY : pxk depend clean

pxk:	
	@make LOOP TARGET=

depend clean dotodirs:	
	@make LOOP TARGET=$@

# generic loop target called by other targets
LOOP:
	@for dir in $(DIRS) ; do \
		echo $$dir ; \
		cd $$dir ; \
		$(MAKE) $(TARGET)  XRT:=../$(XRT) LIB:=../$(LIB); \
		cd .. ; \
	 done

SRCLIST HDRLIST:
	@for dir in $(DIRS) ; do \
 		cd $$dir ; \
		`$(MAKE) $@ | fixRelPaths $$dir >> ../.files$$$$` ; \
 		cd .. ; \
 	done ; \
	cat .files$$$$ | sort | uniq ; \
	rm .files$$$$

