# -----------------------------------------------------------------------------
#	Tseng chipset drivers Makefile
# -----------------------------------------------------------------------------
#
#	Copyright (C) 1995, The GGI Project
#


SUBDIRS := $(shell find . -mindepth 1 -maxdepth 2 -name \.\* -prune -o -name Makefile -not -path ./Makefile -printf '%h ')
ifeq ($(TOPLEVEL)/.config, $(wildcard $(TOPLEVEL)/.config))
include $(TOPLEVEL)/.config
endif

DEBUGFLAGS = -DDEBUG
INCLUDEDIR = $(TOPLEVEL)/../include

OBJECTS = et4000.o et6000.o

include $(TOPLEVEL)/.make_rules

selected: $(CHIP_TYPE).o
	@echo

et4000.o: et4000.c pointer_mask.h
et4000.c: et4000_mmio.inc et4000_fb.inc et4000_io.inc et4000_text16.inc
et6000.o: et6000.c pointer_mask.h
et6000.c: et6000_io.inc et6000_fb.inc et6000_text16.inc

# -----------------------------------------------------------------------------
#	The driver rules
# -----------------------------------------------------------------------------

# -----------------------------------------------------------------------------

ifeq ($(strip $(SUBDIRS)),)
include $(TOPLEVEL)/.non_recursive
else
include $(TOPLEVEL)/.recursive
endif



