work on GL_SGI_color_table
[mesa.git] / src / mesa / main / Makefile.DJ
1 # $Id: Makefile.DJ,v 1.7 2000/04/07 16:28:37 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.3
5 # Copyright (C) 1995-1998 Brian Paul
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Library General Public
9 # License as published by the Free Software Foundation; either
10 # version 2 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Library General Public License for more details.
16 #
17 # You should have received a copy of the GNU Library General Public
18 # License along with this library; if not, write to the Free
19 # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21
22 # Makefile for core library for MS-DOS using djgpp
23
24
25
26
27 ##### MACROS #####
28
29 VPATH = RCS
30
31 INCDIR = ..\include
32 LIBDIR = ..\lib
33
34 # Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
35 # Set -I to point to scitech include files.
36 # Haven`t finished doing univbe version for djgpp
37 #CFLAGS += -DUNIVBE -D__DOS__ -D__MSDOS32__ -IC:\scitech\include
38 CFLAGS += -D__DOS__ -D__MSDOS32__
39
40 CORE_SOURCES = \
41 aatriangle.c \
42 accum.c \
43 alpha.c \
44 alphabuf.c \
45 attrib.c \
46 bbox.c \
47 bitmap.c \
48 blend.c \
49 buffers.c \
50 clip.c \
51 colortab.c \
52 config.c \
53 context.c \
54 copypix.c \
55 cva.c \
56 debug_xform.c \
57 depth.c \
58 dispatch.c \
59 dlist.c \
60 drawpix.c \
61 enable.c \
62 enums.c \
63 eval.c \
64 extensions.c \
65 feedback.c \
66 fog.c \
67 get.c \
68 glapi.c \
69 glapinoop.c \
70 glthread.c \
71 hash.c \
72 hint.c \
73 image.c \
74 imaging.c \
75 light.c \
76 lines.c \
77 logic.c \
78 masking.c \
79 matrix.c \
80 mem.c \
81 mmath.c \
82 pb.c \
83 pixel.c \
84 pixeltex.c \
85 pipeline.c \
86 points.c \
87 polygon.c \
88 quads.c \
89 rastpos.c \
90 readpix.c \
91 rect.c \
92 scissor.c \
93 shade.c \
94 span.c \
95 stages.c \
96 state.c \
97 stencil.c \
98 teximage.c \
99 texobj.c \
100 texstate.c \
101 texture.c \
102 texutil.c \
103 translate.c \
104 triangle.c \
105 varray.c \
106 vb.c \
107 vbcull.c \
108 vbfill.c \
109 vbindirect.c \
110 vbrender.c \
111 vbxform.c \
112 vector.c \
113 vertices.c \
114 winpos.c \
115 xform.c \
116 zoom.c
117
118
119 DRIVER_SOURCES = DOS\dosmesa.c
120
121 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
122
123 OBJECTS = $(SOURCES:.c=.o)
124
125 #CFLAGS += -g
126
127 ##### RULES #####
128
129 .c.o:
130 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
131
132 ##### TARGETS #####
133
134 GL_LIB = dosmesa.a
135
136 default: $(LIBDIR)/$(GL_LIB)
137
138 clean:
139 -del *.o
140
141 MAKELIB = AR ruv
142 RANLIB = ls
143
144 # Make the library
145 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
146 $(MAKELIB) $(GL_LIB) $(OBJECTS)
147 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
148
149 include depend.dos
150 #
151
152 # Run 'make depend' to update the dependencies if you change what's included
153 # by any source file.
154 #
155 dep: $(SOURCES)
156 makedep -fdepend -Y -I../include $(SOURCES)
157