# vesanew.grn is not needed by GO32 1.11

OLD = aheada.grd  	aheadb.grd  	chips.grd   	everex.grd  	genoa.grd \
	paradise.grd	video7.grd  	ati.grd

NEW = et4000.grn  	acumos.grn \
	atigupro.grn	ativga.grn \
	cirrus54.grn	et3000.grn  	oakgrn.grn \
	realtek.grn 	sparadis.grn	ss24x.grn   	stdvga.grn \
	stealth.grn 	tr8900.grn  	newss24x.grn	viper.grn \
	vesa_s3.grn 	cl5426.grn  	wd90c3x.grn 	wdvanila.grn \
        ati_16md.grn

SPEC=	atiultra.grn #f1280.grn stealth.grn

DEL=rm -f

drvrs:  $(NEW) $(OLD) $(SPEC)

all:	drvrs

.asm.grn:
	tasm $*.asm
	tlink $*.obj;
	exe2bin $*.exe $*.grn
	$(DEL) $*.obj
	$(DEL) $*.exe
	$(DEL) $*.map

.asm.grd:
	tasm $*.asm
	tlink $*.obj;
	exe2bin $*.exe $*.grd
	$(DEL) $*.obj
	$(DEL) $*.exe
	$(DEL) $*.map

atiultra.grn: atiultra.asm grdriver.inc ibm8514a.c reg8514a.h
	tcc -c -w -ms! -u- -v -O ibm8514a.c
	tasm /ml atiultra.asm
	tlink /c /i /m /s atiultra.obj ibm8514a.obj, atiultra.exe, atiultra.map
	exe2bin atiultra.exe atiultra.grn
	$(DEL) *.obj
	$(DEL) $*.exe
	$(DEL) $*.map

#stealth.grn: vesa_s3.grn
#	copy vesa_s3.grn stealth.grn

#f1280.grn: vesa_s3.grn
#	copy vesa_s3.grn f1280.grn

clean:
	$(DEL) *.obj
	$(DEL) *.map
	$(DEL) *.exe

cleanall: clean
	$(DEL) *.gr?
	$(DEL) modetest

$(NEW): grdriver.inc


