summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/osmesa/Makefile.win
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-09-14 22:19:18 +0000
committerBrian Paul <[email protected]>2001-09-14 22:19:18 +0000
commit04120f6cce0aa9e3604a64c740c25b99ca3999dc (patch)
tree18b48cfc6380ecd6b1137c4d2a12144d5a5f32b9 /src/mesa/drivers/osmesa/Makefile.win
parent7c276329e815c84ea2403bb08c44ff60179c0cd6 (diff)
Win32 updates (Karl Schultz)
Diffstat (limited to 'src/mesa/drivers/osmesa/Makefile.win')
-rw-r--r--src/mesa/drivers/osmesa/Makefile.win37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/mesa/drivers/osmesa/Makefile.win b/src/mesa/drivers/osmesa/Makefile.win
new file mode 100644
index 00000000000..1d2f0aac4d4
--- /dev/null
+++ b/src/mesa/drivers/osmesa/Makefile.win
@@ -0,0 +1,37 @@
+# Makefile for Win32
+
+!include <win32.mak>
+
+TOP = ..\..
+
+OSMESA_SRCS = osmesa.c
+OSMESA_OBJS = osmesa.obj
+OSMESALIB = OSmesa.lib
+
+ASM_SRCS =
+CORE_SRCS = $(OSMESA_SRCS)
+DRIVER_SRCS =
+
+SRCS = $(OSMESA_SRCS)
+
+all : osmesalib install
+
+!include "$(TOP)/mesawin32.mak"
+
+osmesalib : $(OSMESALIB)
+
+CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -I$(TOP)/src
+LFLAGS = /LIB
+
+OBJS = $(ASM_SRCS:.S=.obj) $(CORE_SRCS:.c=.obj) $(DRIVER_SRCS:.c=.obj)
+LIBS = $(TOP)/lib/OpenGL32.lib $(TOP)/src/opengl32.exp
+
+$(OSMESALIB) : $(OBJS)
+ $(link) $(LFLAGS) -out:$(OSMESALIB) $(OBJS) $(LIBS)
+
+install : $(OSMESALIB)
+ @echo "copying OSMesa library to library directory..."
+ -copy $(OSMESALIB) $(TOP)\lib
+
+clean ::
+ @del /f osmesa.obj