Daniel Borca's new DOS/DJGPP driver.
[mesa.git] / src / mesa / main / Makefile.DJ
1 # DOS/DJGPP core makefile v0.1 for Mesa 4.0.x
2 #
3 # Copyright (C) 2002 - Borca Daniel
4 # Email : dborca@yahoo.com
5 # Web : http://www.geocities.com/dborca
6
7
8 .PHONY: all clean
9
10 TOP = ..
11 CC = gcc
12 CFLAGS = -I$(TOP)/include -I. -Wall -W -Wno-unused -mcpu=pentium -ffast-math -O2
13 AR = ar
14 ARFLAGS = ruv
15 LIBDIR = $(TOP)/lib
16
17 GL_LIB = libgl.a
18
19 CORE_SOURCES = \
20 accum.c \
21 api_arrayelt.c \
22 api_loopback.c \
23 api_noop.c \
24 api_validate.c \
25 array_cache/ac_context.c \
26 array_cache/ac_import.c \
27 attrib.c \
28 blend.c \
29 buffers.c \
30 clip.c \
31 colortab.c \
32 config.c \
33 context.c \
34 convolve.c \
35 debug.c \
36 depth.c \
37 dispatch.c \
38 dlist.c \
39 drawpix.c \
40 enable.c \
41 enums.c \
42 eval.c \
43 extensions.c \
44 feedback.c \
45 fog.c \
46 get.c \
47 glapi.c \
48 glthread.c \
49 hash.c \
50 hint.c \
51 histogram.c \
52 image.c \
53 imports.c \
54 light.c \
55 lines.c \
56 math/m_debug_clip.c \
57 math/m_debug_norm.c \
58 math/m_debug_vertex.c \
59 math/m_debug_xform.c \
60 math/m_eval.c \
61 math/m_matrix.c \
62 math/m_translate.c \
63 math/m_vector.c \
64 math/m_vertices.c \
65 math/m_xform.c \
66 matrix.c \
67 mem.c \
68 mmath.c \
69 pixel.c \
70 points.c \
71 polygon.c \
72 rastpos.c \
73 state.c \
74 stencil.c \
75 swrast/s_aaline.c \
76 swrast/s_aatriangle.c \
77 swrast/s_accum.c \
78 swrast/s_alpha.c \
79 swrast/s_alphabuf.c \
80 swrast/s_bitmap.c \
81 swrast/s_blend.c \
82 swrast/s_buffers.c \
83 swrast/s_context.c \
84 swrast/s_copypix.c \
85 swrast/s_depth.c \
86 swrast/s_drawpix.c \
87 swrast/s_feedback.c \
88 swrast/s_fog.c \
89 swrast/s_histogram.c \
90 swrast/s_imaging.c \
91 swrast/s_lines.c \
92 swrast/s_logic.c \
93 swrast/s_masking.c \
94 swrast/s_pb.c \
95 swrast/s_pixeltex.c \
96 swrast/s_points.c \
97 swrast/s_readpix.c \
98 swrast/s_scissor.c \
99 swrast/s_span.c \
100 swrast/s_stencil.c \
101 swrast/s_texstore.c \
102 swrast/s_texture.c \
103 swrast/s_triangle.c \
104 swrast/s_zoom.c \
105 swrast_setup/ss_context.c \
106 swrast_setup/ss_triangle.c \
107 swrast_setup/ss_vb.c \
108 texformat.c \
109 teximage.c \
110 texobj.c \
111 texstate.c \
112 texstore.c \
113 texutil.c \
114 tnl/t_array_api.c \
115 tnl/t_array_import.c \
116 tnl/t_context.c \
117 tnl/t_eval_api.c \
118 tnl/t_imm_alloc.c \
119 tnl/t_imm_api.c \
120 tnl/t_imm_debug.c \
121 tnl/t_imm_dlist.c \
122 tnl/t_imm_elt.c \
123 tnl/t_imm_eval.c \
124 tnl/t_imm_exec.c \
125 tnl/t_imm_fixup.c \
126 tnl/t_pipeline.c \
127 tnl/t_vb_fog.c \
128 tnl/t_vb_light.c \
129 tnl/t_vb_normals.c \
130 tnl/t_vb_points.c \
131 tnl/t_vb_render.c \
132 tnl/t_vb_texgen.c \
133 tnl/t_vb_texmat.c \
134 tnl/t_vb_vertex.c \
135 varray.c \
136 vtxfmt.c
137
138 DRIVER_SOURCES = DOS/dmesa.c DOS/dvesa.c
139
140 SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
141
142 OBJECTS = $(SOURCES:.c=.o)
143
144 .c.o:
145 gcc -o $@ -c $(CFLAGS) $<
146
147 all: $(LIBDIR)/$(GL_LIB)
148
149 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
150 $(AR) $(ARFLAGS) $(LIBDIR)/$(GL_LIB) $(OBJECTS)
151
152 clean:
153 -$(RM) *.o
154 -$(RM) DOS\*.o
155
156 include depend
157
158 DOS/dmesa.o: DOS/dmesa.c glheader.h ../include/GL/gl.h context.h glapi.h \
159 mtypes.h config.h glapitable.h glthread.h math/m_matrix.h dd.h \
160 ../include/GL/dmesa.h matrix.h texformat.h texstore.h array_cache/acache.h \
161 swrast/swrast.h swrast_setup/swrast_setup.h tnl/tnl.h tnl/t_context.h \
162 math/m_vector.h math/m_xform.h tnl/t_pipeline.h DOS/dvesa.h DOS/dmesaint.h
163 DOS/dvesa.o: DOS/dvesa.c DOS/dvesa.h