Any PlatformMakefiles

team bbl


Makefiles are available when building with almost any compiler and are largely standardized. Makefile syntax is beyond the scope of this book, but to get started quickly with makefiles, you can create a DialogBlocks project, add suitable configurations and some source files, and select Generate Makefile from the Build menu. Invoke the resulting makefile from the command line with CONFIG=<config> where <config> is one of the configurations listed when you invoke the makefile with the help target.

If you built wxWidgets with configure, your application makefile is likely to contain references to wx-config to supply the correct flags (see the later section "Using wx-config"). For example:

 CC = gcc minimal: minimal.o        $(CC) -o minimal minimal.o `wx-config libs` minimal.o: minimal.cpp mondrian.xpm        $(CC) `wx-config cxxflags` -c minimal.cpp -o minimal.o clean:        rm -f *.o minimal 

Modifying makefiles by hand can quickly become tedious as your project grows. The next section describes how to use Bakefile to generate makefiles for all platforms.

    team bbl



    Cross-Platform GUI Programming with wxWidgets
    Cross-Platform GUI Programming with wxWidgets
    ISBN: 0131473816
    EAN: 2147483647
    Year: 2005
    Pages: 262

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net