3 # NOTE: the install target may overwrite important files in the system dirs
4 # Check first, before making the install target.
6 # This builds both the osmesa and Windows drivers.
16 tnl\t_array_import.c \
37 swrast_setup\ss_context.c \
38 swrast_setup\ss_triangle.c \
39 swrast_setup\ss_vb.c \
100 math\m_debug_vertex.c \
101 math\m_debug_xform.c \
108 array_cache\ac_context.c \
109 array_cache\ac_import.c \
111 swrast\s_aatriangle.c \
114 swrast\s_alphabuf.c \
122 swrast\s_feedback.c \
124 swrast\s_histogram.c \
129 swrast\s_pixeltex.c \
134 swrast\s_texstore.c \
136 swrast\s_triangle.c \
151 SRCS = $(CORE_SRCS) $(DRIVER_SRCS)
153 all : mesadll $(SUBDIRS)
155 !include "$(TOP)/mesawin32.mak"
159 CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
161 CFLAGS = $(CFLAGS) -DMESA_DEBUG
163 LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
165 OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
166 LIBS = winmm.lib $(guilibsdll)
168 $(MESADLL) : $(OBJS) mesa.def
169 $(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
170 @echo "copying Mesa dynamic link library to lib directory..."
171 -copy $(MESADLL) ..\lib
172 @echo "copying Mesa import library to lib directory..."
173 -copy $(MESALIB) ..\lib
177 @echo Making in $* directory
179 @nmake -f Makefile.win -nologo
184 @echo "copying Mesa dynamic link library to system directory..."
185 -copy $(MESADLL) $(DLLINSTALL)
186 @echo "copying Mesa header files to include directory..."
187 -copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
188 -copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
189 @echo "copying Mesa import library to library directory..."
190 -copy $(MESALIB) $(LIBINSTALL)
194 @del /f swrast_setup\*.obj
196 @del /f array_cache\*.obj
200 @del /f Windows\*.obj
207 # override default inference rule with one that writes the object to
208 # the same subdir that the c file is in.
210 $(cc) $(CFLAGS) -I. $< /Fo$*.obj