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.
72 math\m_debug_xform.c \
78 array_cache\ac_context.c \
79 array_cache\ac_import.c \
81 swrast\s_aatriangle.c \
94 swrast\s_histogram.c \
99 swrast\s_nvfragprog.c \
100 swrast\s_pixeltex.c \
105 swrast\s_texstore.c \
107 swrast\s_triangle.c \
109 swrast_setup\ss_context.c \
110 swrast_setup\ss_triangle.c \
111 swrast_setup\ss_vb.c \
113 tnl\t_array_import.c \
147 SRCS = $(CORE_SRCS) $(DRIVER_SRCS)
149 all : mesadll $(SUBDIRS)
151 !include "$(TOP)/mesawin32.mak"
155 CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
157 CFLAGS = $(CFLAGS) -DMESA_DEBUG
159 LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
161 OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
162 LIBS = winmm.lib $(guilibsdll)
164 $(MESADLL) : $(OBJS) mesa.def
165 $(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
166 @echo "copying Mesa dynamic link library to lib directory..."
167 -copy $(MESADLL) ..\lib
168 @echo "copying Mesa import library to lib directory..."
169 -copy $(MESALIB) ..\lib
173 @echo Making in $* directory
175 @nmake -f Makefile.win -nologo
180 @echo "copying Mesa dynamic link library to system directory..."
181 -copy $(MESADLL) $(DLLINSTALL)
182 @echo "copying Mesa header files to include directory..."
183 -copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
184 -copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
185 @echo "copying Mesa import library to library directory..."
186 -copy $(MESALIB) $(LIBINSTALL)
190 @del /f swrast_setup\*.obj
192 @del /f array_cache\*.obj
196 @del /f Windows\*.obj
203 # override default inference rule with one that writes the object to
204 # the same subdir that the c file is in.
206 $(cc) $(CFLAGS) -I. $< /Fo$*.obj