From: Karl Schultz Date: Wed, 16 Jan 2002 00:57:54 +0000 (+0000) Subject: Samples working for Windows (Robert Bergkvist) X-Git-Tag: 062012170305~26691 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d587f643229a29f615d5047e47e4a3805930588;p=profile%2Fivi%2Fmesa.git Samples working for Windows (Robert Bergkvist) --- diff --git a/progs/samples/Makefile.win b/progs/samples/Makefile.win new file mode 100644 index 0000000..fc27772 --- /dev/null +++ b/progs/samples/Makefile.win @@ -0,0 +1,42 @@ +# $Id: Makefile.win,v 1.1 2002/01/16 00:57:54 kschultz Exp $ + +# Mesa 3-D graphics library +# Version: 3.5 +# Copyright (C) 1995-2001 Brian Paul + +# Makefile for GLUT-based demo programs for Windows + +!include + +##### MACROS ##### + +TOP = .. +INCDIR = ..\include +LIBDIR = ..\lib + +PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \ + font line logo nurb oglinfo olympic overlay point prim quad select \ + shape sphere star stencil stretch texture tri wave + +SRCS = \ + accum.c \ + bitmap1.c \ + bitmap2.c \ + blendeq.c \ + blendxor.c \ + copy.c \ + cursor.c depth.c eval.c fog.c \ + font.c line.c logo.c nurb.c olympic.c overlay.c point.c prim.c quad.c select.c \ + shape.c sphere.c star.c stencil.c stretch.c texture.c tri.c wave.c + +!include "../mesawin32.mak" + +##### TARGETS ##### + +clean:: + +clobber:: + +$(EXES) : $*.obj + @echo $@ + $(link) -out:$@ $* /LIBPATH:$(LIBDIR) $(LIBS) diff --git a/progs/samples/blendeq.c b/progs/samples/blendeq.c index 7be5207..12107f5 100644 --- a/progs/samples/blendeq.c +++ b/progs/samples/blendeq.c @@ -11,6 +11,10 @@ #include #include #include +#ifdef _WIN32 +#include +#endif +#define GL_GLEXT_LEGACY #include diff --git a/progs/samples/blendxor.c b/progs/samples/blendxor.c index a46920d..7d3285d 100644 --- a/progs/samples/blendxor.c +++ b/progs/samples/blendxor.c @@ -10,6 +10,10 @@ #include #endif #include +#ifdef _WIN32 +#include +#endif +#define GL_GLEXT_LEGACY #include