texFormat was a random value in _mesa_store_teximage3d(), fix by undoing last changes
[mesa.git] / src / mesa / main / Makefile.DJ
1 # $Id: Makefile.DJ,v 1.9 2000/09/26 21:22:20 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.5
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 convolve.c \
55 copypix.c \
56 cva.c \
57 debug_xform.c \
58 depth.c \
59 dispatch.c \
60 dlist.c \
61 drawpix.c \
62 enable.c \
63 enums.c \
64 eval.c \
65 extensions.c \
66 feedback.c \
67 fog.c \
68 get.c \
69 glapi.c \
70 glapinoop.c \
71 glthread.c \
72 hash.c \
73 hint.c \
74 image.c \
75 imaging.c \
76 imports.c \
77 light.c \
78 lines.c \
79 logic.c \
80 masking.c \
81 matrix.c \
82 mem.c \
83 mmath.c \
84 pb.c \
85 pixel.c \
86 pixeltex.c \
87 pipeline.c \
88 points.c \
89 polygon.c \
90 quads.c \
91 rastpos.c \
92 readpix.c \
93 rect.c \
94 scissor.c \
95 shade.c \
96 span.c \
97 stages.c \
98 state.c \
99 stencil.c \
100 teximage.c \
101 texobj.c \
102 texstate.c \
103 texture.c \
104 texutil.c \
105 translate.c \
106 triangle.c \
107 varray.c \
108 vb.c \
109 vbcull.c \
110 vbfill.c \
111 vbindirect.c \
112 vbrender.c \
113 vbxform.c \
114 vector.c \
115 vertices.c \
116 winpos.c \
117 xform.c \
118 zoom.c
119
120
121 DRIVER_SOURCES = DOS\dosmesa.c
122
123 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
124
125 OBJECTS = $(SOURCES:.c=.o)
126
127 #CFLAGS += -g
128
129 ##### RULES #####
130
131 .c.o:
132 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
133
134 ##### TARGETS #####
135
136 GL_LIB = dosmesa.a
137
138 default: $(LIBDIR)/$(GL_LIB)
139
140 clean:
141 -del *.o
142
143 MAKELIB = AR ruv
144 RANLIB = ls
145
146 # Make the library
147 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
148 $(MAKELIB) $(GL_LIB) $(OBJECTS)
149 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
150
151 include depend.dos
152 #
153
154 # Run 'make depend' to update the dependencies if you change what's included
155 # by any source file.
156 #
157 dep: $(SOURCES)
158 makedep -fdepend -Y -I../include $(SOURCES)
159