Sketch of codegen templates for t_vtx_api.c, not complete
[mesa.git] / src / glu / sgi / Makefile.win
index 3d0067ef0177676b0d954ec5038a1a717497c104..9321732ef00f74fd0ad8903c1e9d094be804cb14 100644 (file)
@@ -1,14 +1,5 @@
 # Makefile for Win32
 
-#
-# Sept 12, 2001
-# Note: The nurbs code is not being built at this time.
-# If you want to work on it, uncomment the definitions
-# noted below to try to compile the sources.
-# There are numerous problems, some of which may be solved
-# by setting some #defines.
-#
-
 !include <win32.mak>
 
 .SUFFIXES : .cc
@@ -110,33 +101,35 @@ GLU_SRCS = \
 
 SRCS   = $(GLU_SRCS)
 
-GLUDLL = glu32.dll
-
-all    : gludll install
+all    : gludll
 
 !include "$(TOP)/mesawin32.mak"
 
 gludll : $(GLUDLL)
 
-CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -Iinclude -DBUILD_GL32
-LFLAGS = $(dlllflags) $(LFLAGS)
+CFLAGS = $(cvarsdll) $(CFLAGS) -D_OPENGL32_ -Iinclude -DBUILD_GL32 -DLIBRARYBUILD
+LFLAGS = $(dlllflags) $(lcommon) $(LFLAGS)
 
-OBJS   = $(GLU_SRCS:.c=.obj)
-LIBS   = ../lib/opengl32.lib winmm.lib $(guilibsdll)
+LIBS   = ../lib/$(MESALIB) winmm.lib $(guilibsdll)
 
-# Uncomment these definitions to try to compile the NURBS code.
-#OBJS  = $(GLU_SRCS_CC:.cc=.obj) $(GLU_SRCS:.c=.obj)
-#NURBSINC = -Ilibnurbs\interface -Ilibnurbs\internals -Ilibnurbs\nurbtess 
-#CFLAGS  = $(CFLAGS) $(NURBSINC)
+OBJS   = $(GLU_SRCS_CC:.cc=.obj) $(GLU_SRCS:.c=.obj)
+NURBSINC = -Ilibnurbs\interface -Ilibnurbs\internals -Ilibnurbs\nurbtess 
+CFLAGS  = $(CFLAGS) $(NURBSINC)
 
-$(GLUDLL)      : $(OBJS) glu.def
+$(GLUDLL): $(OBJS) glu.def
        $(link) $(LFLAGS) -out:$(GLUDLL) -def:glu.def $(OBJS) $(LIBS)
-
-install        : $(GLUDLL)
-       @echo "copying Mesa GLU dynamic link library to system directory..."
+       @echo "copying Mesa GLU dynamic link library to library directory..."
        -copy $(GLUDLL) $(TOP)\lib
        @echo "copying Mesa GLU import library to library directory..."
-       -copy $(GLU) $(TOP)\lib
+       -copy $(GLULIB) $(TOP)\lib
+
+install        : $(GLUDLL) $(GLULIB)
+       @echo "copying Mesa GLU dynamic link library to system directory..."
+       -copy $(GLUDLL) $(DLLINSTALL)
+       @echo "copying Mesa GLU header files to include directory..."
+       -copy ..\..\include\GL\glu.h $(INCLUDEINSTALL)
+       @echo "copying Mesa GLU import library to system library directory..."
+       -copy $(GLULIB) $(LIBINSTALL)
 
 clean  ::
        @del /f libtess\*.obj libutil\*.obj 
@@ -144,7 +137,7 @@ clean       ::
        @del /f libnurbs\nurbtess\*.obj
 
 # override default inference rule with one that writes the object to
-# the correct subdir
+# the same subdir as the c file
 
 .c.obj :
        $(cc) $(CFLAGS) -I. $< /Fo$*.obj