1 # $Id: Makefile.DJ,v 1.2 1999/10/08 09:27:09 keithw Exp $
3 # Makefile for core library for MS-DOS using djgpp
5 # Mesa 3-D graphics library
7 # Copyright (C) 1995-1998 Brian Paul
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Library General Public
11 # License as published by the Free Software Foundation; either
12 # version 2 of the License, or (at your option) any later version.
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Library General Public License for more details.
19 # You should have received a copy of the GNU Library General Public
20 # License along with this library; if not, write to the Free
21 # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 # $Log: Makefile.DJ,v $
25 # Revision 1.2 1999/10/08 09:27:09 keithw
26 # Fixed includes & added a few hooks for the DRI.
28 # Revision 1.1.1.1 1999/08/19 00:55:41 jtg
31 # Revision 1.1 1999/01/01 14:35:09 brianp
44 # Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
45 # Set -I to point to scitech include files.
46 # Haven`t finished doing univbe version for djgpp
47 #CFLAGS += -DUNIVBE -D__DOS__ -D__MSDOS32__ -IC:\scitech\include
48 CFLAGS += -D__DOS__ -D__MSDOS32__
50 CORE_SOURCES = accum.c alpha.c alphabuf.c api1.c api2.c apiext.c attrib.c \
51 bitmap.c blend.c clip.c colortab.c context.c copypix.c depth.c \
52 dlist.c drawpix.c enable.c eval.c feedback.c fog.c \
53 get.c hash.c image.c light.c lines.c logic.c masking.c matrix.c \
54 glmisc.c mmath.c mthreads.c pb.c pixel.c points.c pointers.c polygon.c \
55 quads.c rastpos.c readpix.c rect.c scissor.c shade.c span.c \
56 stencil.c teximage.c texobj.c texstate.c texture.c triangle.c \
57 varray.c winpos.c vb.c vbfill.c vbrender.c vbxform.c xform.c \
60 DRIVER_SOURCES = DOS\dosmesa.c
62 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
64 OBJECTS = $(SOURCES:.c=.o)
71 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
77 default: $(LIBDIR)/$(GL_LIB)
86 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
87 $(MAKELIB) $(GL_LIB) $(OBJECTS)
88 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
93 # Run 'make depend' to update the dependencies if you change what's included
97 makedep -fdepend -Y -I../include $(SOURCES)