#
# GNU makefile for ethernet library
#

include GNUmake.config

OPTG := -O $(OPTG)
OPT := -O
DEFINES =

# This doesn't do anything - it just hands it off to the subdirectory

.PHONY: all install lint noise listing clean cleanlists realclean

all install ethertest ctp: $(SYSTEM)
	$(MAKE) -C $(SYSTEM) -f ../GNUmake.mk $@

lint noise listing:
	$(MAKE) -C src -f ../GNUmake.mk $@

clean: $(SYSTEM)
	$(MAKE) -C $(SYSTEM) -f ../GNUmake.mk $@

realclean: $(SYSTEM)
	$(MAKE) -C $(SYSTEM) -f ../GNUmake.mk $@
	$(MAKE) -C src -f ../GNUmake.mk $@

$(SYSTEM):
	mkdir $(SYSTEM)

.DEFAULT:
	$(MAKE) -C $(SYSTEM) -f ../GNUmake.mk $@
