Build rain demo (Gonzo <andreas.wendleder@gmail.com>)
authorBrian <brian.paul@tungstengraphics.com>
Wed, 12 Dec 2007 15:05:12 +0000 (08:05 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 14 Dec 2007 21:35:18 +0000 (14:35 -0700)
progs/demos/Makefile
progs/demos/rain.cxx

index 57e56f5..dcddee1 100644 (file)
@@ -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
index d19f049..5c53d42 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <math.h>
 #include <time.h>
 #include <GL/glut.h>