fixed an RGB vs CI bug in overlay visual selection
[mesa.git] / src / mesa / main / Makefile.DJ
1 # $Id: Makefile.DJ,v 1.2 1999/10/08 09:27:09 keithw Exp $
2
3 # Makefile for core library for MS-DOS using djgpp
4
5 # Mesa 3-D graphics library
6 # Version: 3.1
7 # Copyright (C) 1995-1998 Brian Paul
8 #
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.
13 #
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.
18 #
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.
22
23
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.
27 #
28 # Revision 1.1.1.1 1999/08/19 00:55:41 jtg
29 # Imported sources
30 #
31 # Revision 1.1 1999/01/01 14:35:09 brianp
32 # Initial revision
33 #
34
35
36
37 ##### MACROS #####
38
39 VPATH = RCS
40
41 INCDIR = ..\include
42 LIBDIR = ..\lib
43
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__
49
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 \
58 zoom.c
59
60 DRIVER_SOURCES = DOS\dosmesa.c
61
62 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
63
64 OBJECTS = $(SOURCES:.c=.o)
65
66 #CFLAGS += -g
67
68 ##### RULES #####
69
70 .c.o:
71 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
72
73 ##### TARGETS #####
74
75 GL_LIB = dosmesa.a
76
77 default: $(LIBDIR)/$(GL_LIB)
78
79 clean:
80 -del *.o
81
82 MAKELIB = AR ruv
83 RANLIB = ls
84
85 # Make the library
86 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
87 $(MAKELIB) $(GL_LIB) $(OBJECTS)
88 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
89
90 include depend.dos
91 #
92
93 # Run 'make depend' to update the dependencies if you change what's included
94 # by any source file.
95 #
96 dep: $(SOURCES)
97 makedep -fdepend -Y -I../include $(SOURCES)
98