# Generated automatically from Makefile.in by configure.
#
# This is the Makefile for the video-subdirectory of the DOS-emulator
# for Linux.
#
# $Id: Makefile.in,v 2.16 1996/03/07 04:48:15 jtk Exp $

REALTOPDIR=/u3/jtk/dosemu-0.63.1.2
TOPDIR=/u3/jtk/dosemu-0.63.1.2/src
CFLAGS=-O3 -m486 -fomit-frame-pointer    -Wall -I/u3/jtk/dosemu-0.63.1.2/src/include  -I/u3/NetBSD-current/src/sys/include -I/u3/jtk/dosemu-0.63.1.2/src/base/dev/pic -I/u3/jtk/dosemu-0.63.1.2/src/dosext/dpmi  -I/usr/X11R6/include
LDFLAGS=
X_GRAPHICS=0
X_SUPPORT=1
CC=gcc

# if you want to disable graphics in X, delete vgaemu.[co], vesa.[cho],
# vgaemu_inside.h, vesabios.S and vesabios.o
# you should also delete the #define XG in int10.c and sigsegv.c
ifdef X_SUPPORT
XCFILES	= X.c  screen.c
XHDRS	= X.h vesa.h screen.h
XOBJS	= X.o  screen.o
ifdef X_GRAPHICS
XCFILES += vgaemu.c vesa.c
XHDRS += vgaemu_inside.h
XOBJS += vgaemu.o vesa.o
endif
endif

# This is to assemble the VESA compatible video BIOS. Shamelessly copied
# from bios/Makefile.
ifdef X_GRAPHICS
SFILES = vesabios.S
else
SFILES = 
endif

AS86FLAGS=$(INCDIR)

LD86=ld86
AS86=as86

TOPDIR=/u3/jtk/dosemu-0.63.1.2/src

CFILES = video.c vc.c vga.c et4000.c s3.c trident.c console.c \
         $(XCFILES) hgc.c dualmon.c terminal.c
HFILES = vga.h et4000.h s3.h trident.h terminal.h $(XHDRS)
OFILES = video.o vc.o vga.o et4000.o s3.o trident.o console.o \
         int10.o $(XOBJS) hgc.o dualmon.o terminal.o
#OBJS = $(OFILES)

ALL = $(CFILES) $(HFILES) #$(SFILES)

SUBDIR=video

all: vesabios.o lib

# this is copied from bios/Makefile
vesabios.o: vesabios.part.2
	/u3/jtk/dosemu-0.63.1.2/src/tools/tools86 $^
	cp $< $@
 
vesabios: vesabios.s

vesabios.s: vesabios.i
	/u3/jtk/dosemu-0.63.1.2/src/tools/tools86 -E <$^ >$@

vesabios.i: vesabios.S
	$(CC) -E --traditional $(AS86FLAGS) $^ >$@

vesabios.part.1: vesabios.s
	$(AS86) -0 -w -g -o $@ $^

vesabios.part.2: vesabios.part.1
	$(LD86) -0 -r -o $@ $^

# generate *dummy* dependency
vesabios.d: vesabios.o


install:

include /u3/jtk/dosemu-0.63.1.2/src/Makefile.common

echo::
	@echo ALL=$(ALL)
	@echo REALTOPDIR=/u3/jtk/dosemu-0.63.1.2

clean::
	rm -f vesabios.o vesabios.s vesabios.i

realclean::
	rm -f vesabios.part.1 vesabios.part.2
