From a5eb9e7b1bf915a3bf911074c2872724c5b3ad53 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 12 Dec 2007 08:05:12 -0700 Subject: [PATCH] Build rain demo (Gonzo ) --- progs/demos/Makefile | 11 ++++++++++- progs/demos/rain.cxx | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/progs/demos/Makefile b/progs/demos/Makefile index 57e56f52a33..dcddee17d45 100644 --- a/progs/demos/Makefile +++ b/progs/demos/Makefile @@ -45,6 +45,7 @@ PROGS = \ multiarb \ paltex \ pointblast \ + rain \ ray \ readpix \ reflect \ @@ -73,7 +74,7 @@ PROGS = \ .SUFFIXES: .SUFFIXES: .c - +.SUFFIXES: .cxx # make executable from .c file: .c: $(LIB_DEP) readtex.o @@ -154,6 +155,14 @@ fslight: fslight.o fslight.o: fslight.c extfuncs.h $(CC) -c -I$(INCDIR) $(CFLAGS) fslight.c +rain: particles.o rain.o readtex.o + $(CXX) $(LDFLAGS) $^ $(LIBS) -o $@ + +rain.o: rain.cxx readtex.h + $(CXX) -c -I../ $(CXXFLAGS) $< + +particles.o: particles.cxx + $(CXX) -c -I../ $(CXXFLAGS) $< viewdds: viewdds.c diff --git a/progs/demos/rain.cxx b/progs/demos/rain.cxx index d19f049c5f3..5c53d4248c5 100644 --- a/progs/demos/rain.cxx +++ b/progs/demos/rain.cxx @@ -8,6 +8,7 @@ #include #include +#include #include #include #include -- 2.30.2