Minimalist GNU for Windows

Makefile

A Makefile is a plain textfile that is used to reduce repeatitive commands such as compiler invocation. All indentation in a Makefile should be done with tabs not spaces. A simple example of a Makefile is as follows and is invoked by typing 'make':


    all:
         gcc -Wall -O3 -o hello.exe hello.cpp

The following is a more complex example that shows the use of variables and other features:


    # this is a comment
    SRC=hello.c main.c
    OBJ=$(SRC:.c=.o) # replaces the .c from SRC with .o
    EXE=hello.exe

    CC=gcc
    CFLAGS=-Wall -O3
    LDFLAGS=-mwindows
    RM=rm

    %.o: %.c         # combined w/ next line will compile recently changed .c files
         $(CC) $(CFLAGS) -o $@ -c $<

    .PHONY : all     # .PHONY ignores files named all
    all: $(EXE)      # all is dependent on $(EXE) to be complete

    $(EXE): $(OBJ)   # $(EXE) is dependent on all of the files in $(OBJ) to exist
         $(CC) $(OBJ) $(LDFLAGS) -o $@

    .PHONY : clean   # .PHONY ignores files named clean
    clean:
        -$(RM) $(OBJ) core    # '-' causes errors not to exit the process

This Makefile can be invoked in any of the following ways:


    # for the above file will compile everything required by the all label
    make

    # effectively the same as the previous line
    make all

    # 'clean' the project of stale files
    # for this Makefile, remove hello.o, main.o and core
    make clean

    # clean and then build all
    make clean all

    # build all and then clean
    make all clean

For further information on Makefiles please refer to the GNU make documentation at http://www.gnu.org/software/make/manual/make.html.

PHP Warning

lib/XmlElement.php:43 Warning[2]: get_class() expects parameter 1 to be object, string given (...repeated 9 times)

lib/XmlElement.php (In template 'navbar' < 'top' < 'body' < 'html'):43 Warning[2]: get_class() expects parameter 1 to be object, string given:

lib/XmlElement.php (In template 'navbar' < 'top' < 'body' < 'html'):43 Warning[2]: get_class() expects parameter 1 to be object, string given:

lib/XmlElement.php (In template 'browse-footer'):43 Warning[2]: get_class() expects parameter 1 to be object, string given

Valid XHTML 1.0! Valid CSS!
Page Execution took real: 0.061, user: 0.050, sys: 0.010 seconds , Memory: 2471080

lib/XmlElement.php (In template 'browse-footer'):43 Warning[2]: get_class() expects parameter 1 to be object, string given

lib/XmlElement.php (In template 'actionbar' < 'browse-footer'):43 Warning[2]: get_class() expects parameter 1 to be object, string given: