makefile.mingw-cygwin

[ Top ] [ ROBODoc ] [ Modules ]

NAME

makefile.mingw-cygwin -- Plain makefile that does not need autoconf

PURPOSE

The makefile for MingW Minimalist GNU for Windows under the Cygwin environment, See:

You can use it if you are on a win32 system.

The following targets are the most useful for the user:

Developers might try:

EXAMPLES make -f makefile.mingw-cygwin robodoc make -f makefile.mingw-cygwin test make -f makefile.mingw-cygwin clean


CFLAGS

[ Top ] [ makefile.mingw-cygwin ] [ Variables ]

FUNCTION

Defined the flags used for the C compiler:

SOURCE

# Use CYGWIN = 1 to compile under native cygwin mode
ifdef CYGWIN
CYGFLAGS = -DHAVE_FORK -DHAVE_SYMLINK
else
CYGFLAGS = -mno-cygwin
endif

# Use DEBUG = 1 to include debugging symbols and to turn off optimisations
ifdef DEBUG
DFLAGS = -g
else
DFLAGS = -s -O3
endif

# Effective compiler flags
CFLAGS = -W -Wall -std=gnu99 -DHAVE_SNPRINTF $(DFLAGS) $(CYGFLAGS)

clean

[ Top ] [ makefile.mingw-cygwin ] [ Makefile entries ]

NAME

clean -- Clean up the mess we made.

FUNCTION

Cleans up the mess we made.


robodoc

[ Top ] [ makefile.mingw-cygwin ] [ Makefile entries ]

NAME

robodoc --

NOTE

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

SOURCE

$(ROBODOC) : $(OBJECTS) 
        $(CC) $(CFLAGS) $(OBJECTS) -o $(ROBODOC) $(LIBS)

robohdrs

[ Top ] [ makefile.mingw-cygwin ] [ Makefile entries ]

NAME

robohdrs --

SOURCE

ifdef CYGWIN
ROBOHRDS_SOURCES = robohdrs.o headers.o util.o globals.o roboconfig.o \
                   headertypes.o
else
ROBOHRDS_SOURCES = robohdrs.o
endif

$(ROBOHDRS) : $(ROBOHRDS_SOURCES)
        $(CC) $(CFLAGS) $(ROBOHRDS_SOURCES) -o $(ROBOHDRS)

SOURCES, HEADERS

[ Top ] [ makefile.mingw-cygwin ] [ Variables ]

FUNCTION

All source files needed to compile ROBODoc

SOURCE

SOURCES = \
          analyser.c \
          ascii_generator.c \
          directory.c \
          document.c \
          file.c \
          generator.c \
          globals.c \
          headers.c \
          headertypes.c \
          html_generator.c \
          items.c \
          latex_generator.c \
          links.c \
          optioncheck.c \
          part.c \
          path.c \
          roboconfig.c \
          robodoc.c \
          rtf_generator.c \
          test_generator.c \
          troff_generator.c \
          util.c \
          xmldocbook_generator.c

HEADERS= analyser.h \
         ascii_generator.h \
         directory.h \
         dirwalk.h \
         document.h \
         file.h \
         generator.h \
         globals.h \
         headertypes.h \
         headers.h \
         html_generator.h \
         items.h \
         latex_generator.h \
         links.h \
         optioncheck.h \
         part.h \
         path.h \
         roboconfig.h \
         robodoc.h \
         rtf_generator.h \
         troff_generator.h \
         unittest.h \
         util.h \
         test_generator.h \
         xmldocbook_generator.h

test

[ Top ] [ makefile.mingw-cygwin ] [ Makefile entries ]

NAME

test -- run some tests

FUNCTION

Runs robodoc on file with a number of different headers.