From 3d587f643229a29f615d5047e47e4a3805930588 Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Wed, 16 Jan 2002 00:57:54 +0000 Subject: [PATCH] Samples working for Windows (Robert Bergkvist) --- progs/samples/Makefile.win | 42 ++++++++++++++++++++++++++++++++++++++ progs/samples/blendeq.c | 4 ++++ progs/samples/blendxor.c | 4 ++++ 3 files changed, 50 insertions(+) create mode 100644 progs/samples/Makefile.win diff --git a/progs/samples/Makefile.win b/progs/samples/Makefile.win new file mode 100644 index 00000000000..fc277726a02 --- /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 7be52073ab0..12107f5a6d5 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 a46920d2345..7d3285d049f 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 -- 2.30.2