blob: c754782b52d26c8b46467c4ecfd85a2964e9e0c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Makefile for Win32
!include <win32.mak>
TOP = ..\..
OSMESA_SRCS = osmesa.c
OSMESA_OBJS = osmesa.obj
ASM_SRCS =
CORE_SRCS =
DRIVER_SRCS = $(OSMESA_SRCS)
SRCS = $(OSMESA_SRCS)
all : osmesalib
!include "$(TOP)/mesawin32.mak"
osmesalib: $(OSMESALIB)
# Undefine _DLL because osmesa is a LIB, not a DLL
CFLAGS = $(cvarsdll) $(CFLAGS) -U_DLL -D_OPENGL32_ -I$(TOP)/src
LFLAGS = /LIB
OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
LIBS = $(TOP)/lib/$(MESALIB)
$(OSMESALIB) : $(OBJS)
$(link) $(LFLAGS) -out:$(OSMESALIB) $(OBJS) $(LIBS)
@echo "copying OSMesa library to library directory..."
-copy $(OSMESALIB) $(TOP)\lib
install : $(OSMESALIB)
@echo "copying OSMesa library to system library directory..."
-copy $(OSMESALIB) $(LIBINSTALL)
|