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 \
97 math\m_debug_xform.c \
103 array_cache\ac_context.c \
104 array_cache\ac_import.c \
106 swrast\s_aatriangle.c \
109 swrast\s_alphabuf.c \
117 swrast\s_feedback.c \
119 swrast\s_histogram.c \
124 swrast\s_pixeltex.c \
129 swrast\s_texstore.c \
131 swrast\s_triangle.c \
146 SRCS = $(CORE_SRCS) $(DRIVER_SRCS)
148 all : mesadll $(SUBDIRS)
150 !include "$(TOP)/mesawin32.mak"
154 CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
156 CFLAGS = $(CFLAGS) -DMESA_DEBUG
158 LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
160 OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
161 LIBS = winmm.lib $(guilibsdll)
163 $(MESADLL) : $(OBJS) mesa.def
164 $(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
165 @echo "copying Mesa dynamic link library to lib directory..."
166 -copy $(MESADLL) ..\lib
167 @echo "copying Mesa import library to lib directory..."
168 -copy $(MESALIB) ..\lib
172 @echo Making in $* directory
174 @nmake -f Makefile.win -nologo
179 @echo "copying Mesa dynamic link library to system directory..."
180 -copy $(MESADLL) $(DLLINSTALL)
181 @echo "copying Mesa header files to include directory..."
182 -copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
183 -copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
184 @echo "copying Mesa import library to library directory..."
185 -copy $(MESALIB) $(LIBINSTALL)
189 @del /f swrast_setup\*.obj
191 @del /f array_cache\*.obj
195 @del /f Windows\*.obj
202 # override default inference rule with one that writes the object to
203 # the same subdir that the c file is in.
205 $(cc) $(CFLAGS) -I. $< /Fo$*.obj