Makefile.plain

[ Top ] [ ROBODoc ] [ Modules ]

NAME

Makefile.plain -- Plain makefile that does not need autoconf

SYNOPSIS

#   * make -f makefile.plain html
#   * make -f makefile.plain count
#   * make -f makefile.plain test
#   * make -f makefile.plain clean
#   * make -f makefile.plain xcompile

PURPOSE

The makefile GCC. You can use it if you are on a non Unix system or a system that does not support autoconfiguration.

The following targets are the most useful for the user:

To build robodoc use:

Developers might try:

NOTES

This documentation is not complete. It is just a test to see how to best use ROBODoc with makefiles.


clean

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

clean -- Clean up the mess we made.

FUNCTION

Cleans up the mess we made.


count

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

count -- count the number of lines of the ROBODoc source.


example

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

example -- create and show autodocs extracted from ROBODoc source.

FUNCTION


robodoc

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

robodoc --

NOTE

This assumes that you version of make knows how to make an .o file out of an .c file.

SOURCE

robodoc : $(OBJECTS) 
        $(CC) $(OBJECTS) -o robodoc$(EXE) $(LIBS)

robohdrs

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

robohdrs --

SOURCE

robohdrs : robodoc robohdrs.o headers.o
        $(CC) $(CFLAGS) util.o globals.o robohdrs.o headers.o roboconfig.o headertypes.o -o robohdrs$(EXE)

test

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

test -- run some tests

FUNCTION

Runs robodoc on file with a number of different headers.


xcompile

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

xcompile

SYNOPSIS

NOTE

Cross-compile Wintel binary. Consider `apt-get install mingw32' before running this.

RESULT

Excutable `robodoc.exe' is created.

SOURCE

xcompile:
        $(MAKE) -f makefile.plain CC=$(MINGW_CC) EXE=.exe robodoc

xcompiler-test

[ Top ] [ Makefile.plain ] [ Makefile entries ]

NAME

xcompiler-test

SYNOPSIS

NOTE

Used by do.sh.

RESULT

Exit status 0 if cross-compiler is found.

SOURCE

xcompiler-test:
        test -x $(MINGW_CC)
        zip -h > /dev/null 2>&1