diff options
author | Philippe Houdoin <[email protected]> | 2004-08-14 09:59:16 +0000 |
---|---|---|
committer | Philippe Houdoin <[email protected]> | 2004-08-14 09:59:16 +0000 |
commit | f17ddd4884cccdbd15e7a3bebaeec32de4b6658e (patch) | |
tree | b75b1cb7ff651ca4e683c9c49a216dcea1d97535 /progs/beos/Makefile | |
parent | 41ea1558786cade1c313cb86d6c50d8827b0a5f3 (diff) |
Fix demo.cpp, which wasn't working as expected.
Add a GLInfo app, a graphical tool displaying GL Info as a treeview.
Usefull to see which OpenGL renderer you use and which extension(s) is supported.
Convert the Makefile to be $(TOP)/configs/default-based.
Diffstat (limited to 'progs/beos/Makefile')
-rw-r--r-- | progs/beos/Makefile | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/progs/beos/Makefile b/progs/beos/Makefile index 6fa6d8fd9b9..fae54160c48 100644 --- a/progs/beos/Makefile +++ b/progs/beos/Makefile @@ -1,42 +1,31 @@ -# $Id: Makefile,v 1.2 1999/09/17 00:55:21 brianp Exp $ +# progs/beos/Makefile + +TOP = ../.. +include $(TOP)/configs/current # Makefile for BeOS demos # Written by Brian Paul # This file is in the public domain. +# +# Modified by Philippe Houdoin +LDFLAGS += -soname=_APP_ $(APP_LIB_DEPS) - -CC = g++ - -# Use Mesa: -CFLAGS = -I../include -c -g -LFLAGS = -L../lib -Xlinker -rpath ../lib -lbe -lGL - -# Use BeOS OpenGL: -#CFLAGS = -I/boot/develop/headers/be/opengl -c -g -#LFLAGS = -L../lib -Xlinker -rpath ../lib -lbe -lGL - - -PROGRAMS = demo sample - -default: $(PROGRAMS) - +default: demo sample GLInfo clean: - rm -f demo sample + rm -f demo sample GLInfo rm -f *.o - demo: demo.o - $(CC) demo.o $(LFLAGS) -o $@ - -demo.o: demo.cpp - $(CC) $(CFLAGS) demo.cpp - + $(LD) demo.o $(LDFLAGS) -o $@ sample: sample.o - $(CC) sample.o $(LFLAGS) -o $@ + $(LD) sample.o $(LDFLAGS) -o $@ + +GTLInfo: GLInfo.o + $(LD) GLInfo.o $(LDFLAGS) -o $@ -sample.o: sample.cpp - $(CC) $(CFLAGS) sample.cpp +.cpp.o: + $(CC) -c $< $(CFLAGS) -o $@ |