From: Vadim Zeitlin Date: Sat, 8 Nov 2003 15:16:38 +0000 (+0000) Subject: added comments to the makefile; added WX_CONFIG var to be able to use a different... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/72858fcf67bf670ea18fe48a6b039d61afa87131?ds=inline added comments to the makefile; added WX_CONFIG var to be able to use a different wx-config easily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/minimal/makefile.unx b/samples/minimal/makefile.unx index ab2ced9e76..2e6be9375f 100644 --- a/samples/minimal/makefile.unx +++ b/samples/minimal/makefile.unx @@ -11,25 +11,39 @@ # sources of wxWindows or by installing the two # RPM packages wxGTK.XXX.rpm and wxGTK-devel.XXX.rpm # under Linux. -# -CXX = $(shell wx-config --cxx) +# this makefile may also be used as a template for simple makefiles for your +# own programs, the comments explain which parts of it you may have to modify +# to use it for your own programs + +# you may change WX_CONFIG value to use a specific wx-config and to pass it +# some options, for example "--inplace" to use an uninstalled wxWindows +# version +# +# by default, wx-config from the PATH is used +WX_CONFIG := wx-config + +# set this to the name of the main executable file PROGRAM = minimal +# if your program has more than one source file, add more .o files to the line +# below OBJECTS = $(PROGRAM).o -# implementation + +# you shouldn't have to edit anything below this line +CXX = $(shell $(WX_CONFIG) --cxx) .SUFFIXES: .o .cpp .cpp.o : - $(CXX) -c `wx-config --cxxflags` -o $@ $< + $(CXX) -c `$(WX_CONFIG) --cxxflags` -o $@ $< all: $(PROGRAM) $(PROGRAM): $(OBJECTS) - $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` + $(CXX) -o $(PROGRAM) $(OBJECTS) `$(WX_CONFIG) --libs` clean: rm -f *.o $(PROGRAM)