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.
75
math\m_debug_xform.c \
81
array_cache\ac_context.c \
82
array_cache\ac_import.c \
84
swrast\s_aatriangle.c \
101
swrast\s_nvfragprog.c \
102
swrast\s_pixeltex.c \
107
swrast\s_texstore.c \
109
swrast\s_triangle.c \
111
swrast_setup\ss_context.c \
112
swrast_setup\ss_triangle.c \
113
swrast_setup\ss_vb.c \
115
tnl\t_array_import.c \
149
SRCS = $(CORE_SRCS) $(DRIVER_SRCS)
151
all : mesadll $(SUBDIRS)
153
!include "$(TOP)/mesawin32.mak"
157
CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -DBUILD_GL32 -DNO_PARALLEL -DNO_STEREO
159
CFLAGS = $(CFLAGS) -DMESA_DEBUG
161
LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
163
OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
164
LIBS = winmm.lib $(guilibsdll)
166
$(MESADLL) : $(OBJS) mesa.def
167
$(link) $(LFLAGS) -out:$(MESADLL) -def:mesa.def $(OBJS) $(LIBS)
168
@echo "copying Mesa dynamic link library to lib directory..."
169
-copy $(MESADLL) ..\lib
170
@echo "copying Mesa import library to lib directory..."
171
-copy $(MESALIB) ..\lib
175
@echo Making in $* directory
177
@nmake -f Makefile.win -nologo
182
@echo "copying Mesa dynamic link library to system directory..."
183
-copy $(MESADLL) $(DLLINSTALL)
184
@echo "copying Mesa header files to include directory..."
185
-copy ..\..\include\GL\gl.h $(INCLUDEINSTALL)
186
-copy ..\..\include\GL\glext.h $(INCLUDEINSTALL)
187
@echo "copying Mesa import library to library directory..."
188
-copy $(MESALIB) $(LIBINSTALL)
192
@del /f swrast_setup\*.obj
194
@del /f array_cache\*.obj
198
@del /f Windows\*.obj
205
# override default inference rule with one that writes the object to
206
# the same subdir that the c file is in.
208
$(cc) $(CFLAGS) -I. $< /Fo$*.obj