X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33611ebbd99217ef90f1178eed37e30385c121de..a81c3c2383f9096ef5e96b708a0f1c1ffe7cc6a8:/samples/erase/makefile.unx diff --git a/samples/erase/makefile.unx b/samples/erase/makefile.unx index 1e82bd01d4..653c324fe5 100644 --- a/samples/erase/makefile.unx +++ b/samples/erase/makefile.unx @@ -13,7 +13,7 @@ # under Linux. # -CC = gcc +CXX = $(shell wx-config --cxx) PROGRAM = erase @@ -24,12 +24,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)