ef2e48fc449e5507f79e808f531a9c8ebe802d7a
[mesa.git] / src / mesa / main / Makefile.DJ
1 # $Id: Makefile.DJ,v 1.3 1999/12/17 15:15:46 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 accum.c \
42 alpha.c \
43 alphabuf.c \
44 attrib.c \
45 bbox.c \
46 bitmap.c \
47 blend.c \
48 clip.c \
49 colortab.c \
50 config.c \
51 context.c \
52 copypix.c \
53 cva.c \
54 debug_xform.c \
55 depth.c \
56 dispatch.c \
57 dlist.c \
58 drawpix.c \
59 enable.c \
60 enums.c \
61 eval.c \
62 extensions.c \
63 feedback.c \
64 fog.c \
65 get.c \
66 glapi.c \
67 glapinoop.c \
68 glmisc.c \
69 glthread.c \
70 hash.c \
71 image.c \
72 imaging.c \
73 light.c \
74 lines.c \
75 logic.c \
76 masking.c \
77 matrix.c \
78 mem.c \
79 mmath.c \
80 pb.c \
81 pixel.c \
82 pipeline.c \
83 points.c \
84 polygon.c \
85 quads.c \
86 rastpos.c \
87 readpix.c \
88 rect.c \
89 scissor.c \
90 shade.c \
91 span.c \
92 stages.c \
93 stencil.c \
94 teximage.c \
95 texobj.c \
96 texstate.c \
97 texture.c \
98 translate.c \
99 triangle.c \
100 varray.c \
101 vb.c \
102 vbcull.c \
103 vbfill.c \
104 vbindirect.c \
105 vbrender.c \
106 vbxform.c \
107 vector.c \
108 vertices.c \
109 winpos.c \
110 xform.c \
111 zoom.c
112
113
114 DRIVER_SOURCES = DOS\dosmesa.c
115
116 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
117
118 OBJECTS = $(SOURCES:.c=.o)
119
120 #CFLAGS += -g
121
122 ##### RULES #####
123
124 .c.o:
125 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
126
127 ##### TARGETS #####
128
129 GL_LIB = dosmesa.a
130
131 default: $(LIBDIR)/$(GL_LIB)
132
133 clean:
134 -del *.o
135
136 MAKELIB = AR ruv
137 RANLIB = ls
138
139 # Make the library
140 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
141 $(MAKELIB) $(GL_LIB) $(OBJECTS)
142 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
143
144 include depend.dos
145 #
146
147 # Run 'make depend' to update the dependencies if you change what's included
148 # by any source file.
149 #
150 dep: $(SOURCES)
151 makedep -fdepend -Y -I../include $(SOURCES)
152