3 # NOTE: the install target may overwrite important files in the system dirs
5 # Windows driver not working. OSMesa driver works.
15 tnl\t_array_import.c \
35 swrast_setup\ss_context.c \
36 swrast_setup\ss_triangle.c \
37 swrast_setup\ss_vb.c \
95 math\m_debug_vertex.c \
96 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 \
125 swrast\s_pixeltex.c \
131 swrast\s_texstore.c \
133 swrast\s_triangle.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
157 LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
159 OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
160 LIBS = winmm.lib $(guilibsdll)
162 $(MESADLL) : $(OBJS) mesa.def
163 $(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
164 @echo "copying Mesa dynamic link library to lib directory..."
165 -copy $(MESADLL) ..\lib
166 @echo "copying Mesa import library to lib directory..."
167 -copy $(MESALIB) ..\lib
171 @echo Making in $* directory
173 @nmake -f Makefile.win -nologo
178 @echo "copying Mesa dynamic link library to system directory..."
179 -copy $(MESADLL) $(DLLINSTALL)
180 @echo "copying Mesa header files to include directory..."
181 -copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
182 -copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
183 @echo "copying Mesa import library to library directory..."
184 -copy $(MESALIB) $(LIBINSTALL)
188 @del /f swrast_setup\*.obj
190 @del /f array_cache\*.obj
194 @del /f Windows\*.obj
201 # override default inference rule with one that writes the object to
202 # the same subdir that the c file is in.
204 $(cc) $(CFLAGS) -I. $< /Fo$*.obj