added aatriangle.c source
[mesa.git] / src / mesa / main / Makefile.DJ
1 # $Id: Makefile.DJ,v 1.5 2000/02/21 23:24:02 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 pipeline.c \
85 points.c \
86 polygon.c \
87 quads.c \
88 rastpos.c \
89 readpix.c \
90 rect.c \
91 scissor.c \
92 shade.c \
93 span.c \
94 stages.c \
95 state.c \
96 stencil.c \
97 teximage.c \
98 texobj.c \
99 texstate.c \
100 texture.c \
101 translate.c \
102 triangle.c \
103 varray.c \
104 vb.c \
105 vbcull.c \
106 vbfill.c \
107 vbindirect.c \
108 vbrender.c \
109 vbxform.c \
110 vector.c \
111 vertices.c \
112 winpos.c \
113 xform.c \
114 zoom.c
115
116
117 DRIVER_SOURCES = DOS\dosmesa.c
118
119 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
120
121 OBJECTS = $(SOURCES:.c=.o)
122
123 #CFLAGS += -g
124
125 ##### RULES #####
126
127 .c.o:
128 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
129
130 ##### TARGETS #####
131
132 GL_LIB = dosmesa.a
133
134 default: $(LIBDIR)/$(GL_LIB)
135
136 clean:
137 -del *.o
138
139 MAKELIB = AR ruv
140 RANLIB = ls
141
142 # Make the library
143 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
144 $(MAKELIB) $(GL_LIB) $(OBJECTS)
145 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
146
147 include depend.dos
148 #
149
150 # Run 'make depend' to update the dependencies if you change what's included
151 # by any source file.
152 #
153 dep: $(SOURCES)
154 makedep -fdepend -Y -I../include $(SOURCES)
155