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.
74 math\m_debug_xform.c \
80 array_cache\ac_context.c \
81 array_cache\ac_import.c \
83 swrast\s_aatriangle.c \
100 swrast\s_nvfragprog.c \
101 swrast\s_pixeltex.c \
106 swrast\s_texstore.c \
108 swrast\s_triangle.c \
110 swrast_setup\ss_context.c \
111 swrast_setup\ss_triangle.c \
112 swrast_setup\ss_vb.c \
114 tnl\t_array_import.c \
148 SRCS = $(CORE_SRCS) $(DRIVER_SRCS)
150 all : mesadll $(SUBDIRS)
152 !include "$(TOP)/mesawin32.mak"
156 CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
158 CFLAGS = $(CFLAGS) -DMESA_DEBUG
160 LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
162 OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
163 LIBS = winmm.lib $(guilibsdll)
165 $(MESADLL) : $(OBJS) mesa.def
166 $(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
167 @echo "copying Mesa dynamic link library to lib directory..."
168 -copy $(MESADLL) ..\lib
169 @echo "copying Mesa import library to lib directory..."
170 -copy $(MESALIB) ..\lib
174 @echo Making in $* directory
176 @nmake -f Makefile.win -nologo
181 @echo "copying Mesa dynamic link library to system directory..."
182 -copy $(MESADLL) $(DLLINSTALL)
183 @echo "copying Mesa header files to include directory..."
184 -copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
185 -copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
186 @echo "copying Mesa import library to library directory..."
187 -copy $(MESALIB) $(LIBINSTALL)
191 @del /f swrast_setup\*.obj
193 @del /f array_cache\*.obj
197 @del /f Windows\*.obj
204 # override default inference rule with one that writes the object to
205 # the same subdir that the c file is in.
207 $(cc) $(CFLAGS) -I. $< /Fo$*.obj