X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2480be69b159027a3673eee1a4fc4e16287d058d..af01f1ba0d697c07173f436ab661b4c833258a91:/demos/life/makefile.unx

diff --git a/demos/life/makefile.unx b/demos/life/makefile.unx
index 8b8c3669d4..a39e968d17 100644
--- a/demos/life/makefile.unx
+++ b/demos/life/makefile.unx
@@ -13,23 +13,23 @@
 # under Linux.
 #
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = life
 
-OBJECTS = $(PROGRAM).o dialogs.o game.o
+OBJECTS = $(PROGRAM).o dialogs.o game.o reader.o
 
 # implementation
 
 .SUFFIXES:	.o .cpp
 
 .cpp.o :
-	$(CC) -c `wx-config --cflags` -o $@ $<
+	$(CXX) -c `wx-config --cxxflags` -o $@ $<
 
 all:    $(PROGRAM)
 
 $(PROGRAM):	$(OBJECTS)
-	$(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+	$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
 
 clean: 
 	rm -f *.o $(PROGRAM)