X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/367e57ec9b921d7523c1ac3e9e3477850aaf3c66..c74d8df09d0c0e182cb2063cc4cc546de3a00fae:/samples/joytest/makefile.unx

diff --git a/samples/joytest/makefile.unx b/samples/joytest/makefile.unx
index 1f0d1027d3..23bdc6486e 100644
--- a/samples/joytest/makefile.unx
+++ b/samples/joytest/makefile.unx
@@ -1,7 +1,7 @@
 # Purpose: makefile for joytest example (Unix)
 # Created: 2000-03-14
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
 PROGRAM = joytest
 
@@ -12,12 +12,12 @@ OBJECTS = $(PROGRAM).o
 .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)