X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e909371890f73eb9b3ca33d15960d9305ca1b4c2..00dff4d222ab3525d04c819142d44159b9b52f01:/samples/db/makefile.unx?ds=sidebyside

diff --git a/samples/db/makefile.unx b/samples/db/makefile.unx
index 9e69037b3d..8162466601 100644
--- a/samples/db/makefile.unx
+++ b/samples/db/makefile.unx
@@ -15,21 +15,21 @@
 
 PROGRAM = dbtest
 
-CC = gcc
+CXX = $(shell wx-config --cxx)
 
-OBJECTS = $(PROGRAM).o
+OBJECTS = $(PROGRAM).o listdb.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)