#
# GRX 2.0 Library Makefile for DJGPP. Uses GNU Make.
#
include ../makedefs.gnu
INCDIR= -I. -I./include -I../include

O=				\
	draw/bitblt.o		\
	draw/box.o		\
	draw/clear.o		\
	draw/drwinlne.o		\
	draw/fillbox.o		\
	draw/frambox.o		\
	draw/line.o		\
	draw/majorln.o		\
	draw/pixel.o		\
	draw/plot.o		\
	fdrivers/egavga1.o	\
	fdrivers/ega4.o		\
	fdrivers/ftable.o	\
	fdrivers/genblit.o	\
	fdrivers/herc1.o	\
	fdrivers/pblitr2r.o	\
	fdrivers/pblitr2v.o	\
	fdrivers/pblitv2r.o	\
	fdrivers/pblitv2v.o	\
	fdrivers/ram16.o	\
	fdrivers/ram24.o	\
	fdrivers/ram32l.o	\
	fdrivers/ram32h.o	\
	fdrivers/ram3x8.o	\
	fdrivers/ram1.o		\
	fdrivers/ram4.o		\
	fdrivers/ram8.o		\
	fdrivers/svga16.o	\
	fdrivers/svga24.o	\
	fdrivers/svga32h.o	\
	fdrivers/svga32l.o	\
	fdrivers/svga4.o	\
	fdrivers/svga8.o	\
	fdrivers/vga8x.o	\
	fontdrv/fdv_grx.o	\
	fontdrv/fntable.o	\
	mouse/bldcurs.o		\
	mouse/dosinput.o	\
	mouse/doskeys.o		\
	mouse/drawcurs.o	\
	mouse/mouinfo.o		\
	mouse/mouinlne.o	\
	mouse/mscursor.o	\
	setup/clip.o		\
	setup/clrinfo.o		\
	setup/clrinlne.o	\
	setup/colors.o		\
	setup/context.o		\
	setup/cxtinfo.o		\
	setup/cxtinlne.o	\
	setup/drvinfo.o		\
	setup/drvinlne.o	\
	setup/fframe.o		\
	setup/fgeom.o		\
	setup/hooks.o		\
	setup/modewalk.o	\
	setup/setdrvr.o		\
	setup/setmode.o		\
	setup/viewport.o	\
	shape/circle.o		\
	shape/drawpoly.o	\
	shape/fillcirc.o	\
	shape/fillcnvx.o	\
	shape/fillpoly.o	\
	shape/genellip.o	\
	shape/polygon.o		\
	shape/polyline.o	\
	shape/scancnvx.o	\
	shape/scanellp.o	\
	shape/scanpoly.o	\
	text/buildaux.o		\
	text/buildfnt.o		\
	text/convfont.o		\
	text/dfltfont.o		\
	text/drawstrg.o		\
	text/drawtext.o		\
	text/dumptext.o		\
	text/fntinlne.o		\
	text/fontinfo.o		\
	text/fontpath.o		\
	text/loadfont.o		\
	text/propwdt.o		\
	text/unloadfn.o		\
	utils/resize.o		\
	utils/strmatch.o	\
	vdrivers/ati28800.o	\
	vdrivers/cl5426.o	\
	vdrivers/et4000.o	\
	vdrivers/mach64.o	\
	vdrivers/stdega.o	\
	vdrivers/stdvga.o	\
	vdrivers/u_egavga.o	\
	vdrivers/u_vesa.o	\
	vdrivers/u_vsvirt.o	\
	vdrivers/vesa.o		\
	vdrivers/vtable.o

all:	../lib/libgrx20.a ../bin/vesainfo.exe

../lib/libgrx20.a: $(O)
	if exist ..\lib\libgrx20.a del ..\lib\libgrx20.a
	$(AR) -rv ../lib/libgrx20.a $(O)
	$(RANLIB) ../lib/libgrx20.a

../bin/vesainfo.exe: vdrivers/vesainfo.o ../lib/libgrx20.a
	$(CC) -s -o ../bin/vesainfo -L../lib vdrivers/vesainfo.o -lgrx20
	coff2exe ../bin/vesainfo
	-del ..\bin\vesainfo

.c.o:
	$(CC) -c $(CCOPT) $(INCDIR) $*.c -o $*.o

include depend.gnu

