From 3d587f643229a29f615d5047e47e4a3805930588 Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Wed, 16 Jan 2002 00:57:54 +0000 Subject: 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 (limited to 'progs/samples') diff --git a/progs/samples/Makefile.win b/progs/samples/Makefile.win new file mode 100644 index 0000000000..fc277726a0 --- /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 7be52073ab..12107f5a6d 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 a46920d234..7d3285d049 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 -- cgit v1.2.3