New mechanism for thread-safe GL API dispatch. C-based dispatch is faster.
[mesa.git] / src / mesa / main / Makefile.DJ
1 # $Id: Makefile.DJ,v 1.10 2001/03/28 17:19:58 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.5
5 # Copyright (C) 1995-2001 Brian Paul
6
7 # Makefile for core library for MS-DOS using djgpp
8
9
10 ##### MACROS #####
11
12 VPATH = RCS
13
14 INCDIR = ..\include
15 LIBDIR = ..\lib
16
17 # Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
18 # Set -I to point to scitech include files.
19 # Haven`t finished doing univbe version for djgpp
20 #CFLAGS += -DUNIVBE -D__DOS__ -D__MSDOS32__ -IC:\scitech\include
21 CFLAGS += -D__DOS__ -D__MSDOS32__
22
23 CORE_SOURCES = \
24 aatriangle.c \
25 accum.c \
26 alpha.c \
27 alphabuf.c \
28 attrib.c \
29 bbox.c \
30 bitmap.c \
31 blend.c \
32 buffers.c \
33 clip.c \
34 colortab.c \
35 config.c \
36 context.c \
37 convolve.c \
38 copypix.c \
39 cva.c \
40 debug_xform.c \
41 depth.c \
42 dispatch.c \
43 dlist.c \
44 drawpix.c \
45 enable.c \
46 enums.c \
47 eval.c \
48 extensions.c \
49 feedback.c \
50 fog.c \
51 get.c \
52 glapi.c \
53 glthread.c \
54 hash.c \
55 hint.c \
56 image.c \
57 imaging.c \
58 imports.c \
59 light.c \
60 lines.c \
61 logic.c \
62 masking.c \
63 matrix.c \
64 mem.c \
65 mmath.c \
66 pb.c \
67 pixel.c \
68 pixeltex.c \
69 pipeline.c \
70 points.c \
71 polygon.c \
72 quads.c \
73 rastpos.c \
74 readpix.c \
75 rect.c \
76 scissor.c \
77 shade.c \
78 span.c \
79 stages.c \
80 state.c \
81 stencil.c \
82 teximage.c \
83 texobj.c \
84 texstate.c \
85 texture.c \
86 texutil.c \
87 translate.c \
88 triangle.c \
89 varray.c \
90 vb.c \
91 vbcull.c \
92 vbfill.c \
93 vbindirect.c \
94 vbrender.c \
95 vbxform.c \
96 vector.c \
97 vertices.c \
98 winpos.c \
99 xform.c \
100 zoom.c
101
102
103 DRIVER_SOURCES = DOS\dosmesa.c
104
105 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
106
107 OBJECTS = $(SOURCES:.c=.o)
108
109 #CFLAGS += -g
110
111 ##### RULES #####
112
113 .c.o:
114 gcc -c -DDOSVGA -I$(INCDIR) $(CFLAGS) $<
115
116 ##### TARGETS #####
117
118 GL_LIB = dosmesa.a
119
120 default: $(LIBDIR)/$(GL_LIB)
121
122 clean:
123 -del *.o
124
125 MAKELIB = AR ruv
126 RANLIB = ls
127
128 # Make the library
129 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
130 $(MAKELIB) $(GL_LIB) $(OBJECTS)
131 copy $(GL_LIB) $(LIBDIR)\$(GL_LIB)
132
133 include depend.dos
134 #
135
136 # Run 'make depend' to update the dependencies if you change what's included
137 # by any source file.
138 #
139 dep: $(SOURCES)
140 makedep -fdepend -Y -I../include $(SOURCES)
141