#
# Copyright (c) 1995-1996, 1998 University of Utah and the Flux Group.
# All rights reserved.
# 
# This file is part of the Flux OSKit.  The OSKit is free software, also known
# as "open source;" you can redistribute it and/or modify it under the terms
# of the GNU General Public License (GPL), version 2, as published by the Free
# Software Foundation (FSF).  To explore alternate licensing terms, contact
# the University of Utah at csl-dist@cs.utah.edu or +1-801-585-3271.
# 
# The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have
# received a copy of the GPL along with the OSKit; see the file COPYING.  If
# not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
#

ifndef _oskit_libx11video_makerules_
_oskit_libx11video_makerules_ = yes

TARGET	= liboskit_x11video.a

SRCDIRS += $(OSKIT_SRCDIR)/x11/video/device \
	   $(OSKIT_SRCDIR)/x11/video/s3 \
	   $(OSKIT_SRCDIR)/x11/video/shared \
	   $(OSKIT_SRCDIR)/x11/src/common \
	   $(OSKIT_SRCDIR)/x11/src/common_hw \
	   $(OSKIT_SRCDIR)/x11/src/os-support/misc \
	   $(OSKIT_SRCDIR)/x11/src/os-support/shared \
	   $(OSKIT_SRCDIR)/x11/src/accel/s3 \
	   $(OSKIT_SRCDIR)/x11/src/accel/s3/drivers/newmmio

INCDIRS += $(OSKIT_SRCDIR)/freebsd/libc/include \
	   $(OSKIT_SRCDIR)/freebsd/3.x/src/include \
   	   $(OSKIT_SRCDIR)/freebsd/3.x/src/sys \
	   $(OSKIT_SRCDIR)/freebsd/3.x/src/lib/libc/i386 \
	   $(OBJDIR)/freebsd/libc/objinclude \
	   $(OSKIT_SRCDIR)/x11/src/include \
	   $(OSKIT_SRCDIR)/x11/src/include/X11 \
	   $(OSKIT_SRCDIR)/x11/src/common \
	   $(OSKIT_SRCDIR)/x11/src/common_hw \
	   $(OSKIT_SRCDIR)/x11/src/os-support \
	   $(OSKIT_SRCDIR)/x11/src/vga256/vga \
	   $(OSKIT_SRCDIR)/x11/src/accel/s3

DEFINES += -DOSKIT 
DEFINES += -Ulinux -U__linux__ -U__linux

DEFINES += -DSERVER_CONFIG_FILE=\"/etc/XF86Config\"

DEFINES += -DS3_SERVER -DS3_NEWMMIO 

DEFINES += -DGCCUSESGAS -DUSE_GAS

OSKIT_CPPFLAGS += -include $(OSKIT_SRCDIR)/x11/video/shared/global.h

include $(OSKIT_SRCDIR)/GNUmakerules-lib

endif
