# Makefile for core library

# Mesa 3-D graphics library
# Version:  1.1 beta
# Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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 GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


# $Id: Makefile,v 1.16 1995/03/24 19:30:25 brianp Exp $

# $Log: Makefile,v $
# Revision 1.16  1995/03/24  19:30:25  brianp
# added vb.c to SOURCES
#
# Revision 1.15  1995/03/13  15:58:15  brianp
# added xfonts.c to SOURCES
#
# Revision 1.14  1995/03/10  16:26:16  brianp
# use eval2.c instead of eval.c
#
# Revision 1.13  1995/03/08  19:49:05  brianp
# added -Y to makedepend
#
# Revision 1.12  1995/03/08  19:42:36  brianp
# revamped for makedepend
#
# Revision 1.11  1995/03/08  15:13:10  brianp
# dependency changes for dd_logicop, dd_clear_index, dd_clear_color
#
# Revision 1.10  1995/03/07  19:10:54  brianp
# made changes for pb w/ blending, alpha test, logic ops
#
# Revision 1.9  1995/03/07  14:15:25  brianp
# use eval.c instead of eval2.c because of FPE on Linux
#
# Revision 1.8  1995/03/04  19:18:40  brianp
# changed for Make-config
#
# Revision 1.7  1995/03/01  21:05:20  brianp
# replaced 'make' with $(MAKE)
#
# Revision 1.6  1995/03/01  17:44:40  brianp
# added stenciling for PB
#
# Revision 1.5  1995/02/28  21:23:16  brianp
# added glx support
#
# Revision 1.4  1995/02/27  22:49:15  brianp
# modified for PB
#
# Revision 1.3  1995/02/24  19:33:36  brianp
# added VPATH for RCS
#
# Revision 1.2  1995/02/24  16:50:54  brianp
# added netbsd target
#
# Revision 1.1  1995/02/24  14:32:10  brianp
# Initial revision
#


##### MACROS #####

VPATH = RCS

INCDIR = ../include
LIBDIR = ../lib

SOURCES = accum.c alpha.c attrib.c bitmap.c blend.c bresenham.c clip.c \
	context.c copypixels.c depth.c dither.c draw.c drawpixels.c \
	enable.c eval2.c fog.c feedback.c get.c glx.c interp.c light.c \
	lines.c list.c logic.c misc.c pb.c pixel.c points.c polygons.c \
	quickpoly.c readpixels.c scissor.c span.c stencil.c texture.c \
	vb.c vertex.c xform.c xmesa.c xfonts.c

OBJECTS = $(SOURCES:.c=.o)



##### RULES #####

.c.o:
	$(CC) -c $(CFLAGS) $<



##### TARGETS #####

default:
	@echo "Specify a target configuration"

clean:
	-rm *.o *~

targets: $(LIBDIR)/libMesaGL.a

$(LIBDIR)/libMesaGL.a: $(OBJECTS)
	ar $(ARFLAGS) $@ $(OBJECTS)
	$(RANLIB) $@


include ../Make-config

include depend



#
# Run 'make depend' to update the dependencies if you change what's included
# by any source file.
# 
depend: $(SOURCES)
	makedepend -fdepend -Y -I../include $(SOURCES)

