
CC=pacc
CFLAGS=-Bl
OBJECTS=cgaex.obj vga.obj zxfont.obj 1512gfx.obj testcard.obj 1512r.obj 1512g.obj 1512b.obj 1512i.obj

all:	cgaex.exe mdaex.exe 

cgaex.exe:	$(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS)

mdaex.exe:	mdaex.c
	$(CC) $(CFLAGS) $<

%.obj:	%.c
	$(CC) -c $(CFLAGS) $<

%.obj:	%.as
	$(CC) -c $(CFLAGS) $<

testcard.obj:	test160.h test320.h test640.h testcard.h
test1512.obj:	test1512.h
cgaex.obj:      testcard.h vga.h 1512gfx.h 
