1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
|
#****h* ROBODoc/Makefile.wingcc
# NAME
# Makefile.wingcc -- Plain makefile that does not need autoconf
# SYNOPSIS
# make -f makefile.wingcc robodoc
# make -f makefile.wingcc html
# make -f makefile.wingcc count
# make -f makefile.wingcc test
# make -f makefile.wingcc clean
# PURPOSE
# The makefile for djgpp GCC under win32.
# You can use it if you are on a win32 system.
#
#
#
# The following targets are the most useful for the user.
#
# robodoc - makes the robodc executable.
# example - makes robodoc and shows you the autodocs
# generated from the ROBODoc source code
# using browser.
# html - makes autodocs for robodoc in html format.
#
# Developers might try:
# test -
# count -
# clean -
# NOTES
# This documentation is not complete. It is just a test to see
# how to best use ROBODoc with make files.
#
#****
#
# $Id: makefile.wingcc,v 1.0 2003/06/15 11:56:00 powerstat Exp $
#
.SUFFIXES:
.SUFFIXES: .c .o
#--------------------------------------
# use gcc (generic)
#--------------------------------------
CC = gcc
CFLAGS = -pedantic -O2 -w -Wall -W # -ansi
LIBS=
#
#
#
ROBODOC=./robodoc
RM=del
VERS=4.0.4
RELEASE=3
all: robodoc robohdrs
#--------------------------------------
# sources for the robodoc executable
#--------------------------------------
SOURCES = analyser.c \
ascii_generator.c \
directory.c \
generator.c \
document.c \
globals.c \
headers.c \
html_generator.c \
items.c \
folds.c \
links.c \
file.c \
latex_generator.c \
part.c \
path.c \
roboconfig.c \
robodoc.c \
rtf_generator.c \
sgmldocbook_generator.c \
troff_generator.c \
util.c \
xmldocbook_generator.c
HEADERS= analyser.h \
ascii_generator.h \
directory.h \
dirwalk.h \
document.h \
file.h \
folds.h \
generator.h \
globals.h \
headers.h \
html_generator.h \
items.h \
latex_generator.h \
links.h \
part.h \
path.h \
roboconfig.h \
robodoc.h \
rtf_generator.h \
sgmldocbook_generator.h \
troff_generator.h \
unittest.h \
util.h \
xmldocbook_generator.h
OBJECTS= analyser.o \
ascii_generator.o \
directory.o \
generator.o \
document.o \
globals.o \
headers.o \
html_generator.o \
items.o \
folds.o \
links.o \
file.o \
latex_generator.o \
part.o \
path.o \
roboconfig.o \
robodoc.o \
rtf_generator.o \
sgmldocbook_generator.o \
troff_generator.o \
util.o \
xmldocbook_generator.o
#****e* Makefile.wingcc/robodoc
# 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 $(LIBS)
#****
#****e* Makefile.wingcc/robohdrs
# NAME
# robohdrs --
# SOURCE
#
robohdrs : robohdrs.o headers.o
$(CC) robohdrs.o headers.o -o robohdrs
#****
html : robodoc.html
robodoc.html : robodoc
./robodoc --src ./ --doc robodoc --singledoc --html --sections --toc
#----------------------------
# Development
#----------------------------
#****e* Makefile.wingcc/test
# NAME
# test -- run some tests
# FUNCTION
# Runs robodoc on file with a number of different headers.
# HISTORY
# 2002-05-19/PetteriK: test cases in Test directory run with this rule
#
#****
test : $(ROBODOC)
$(ROBODOC) testheaders.c testheaders.html HTML -v
(cd Test; $(MAKE))
#****e* Makefile.wingcc/clean
# NAME
# clean -- Clean up the mess we made.
# FUNCTION
# Cleans up the mess we made.
#*****
clean :
$(RM) $(DOCS)
$(RM) $(XREF)
$(RM) robodoc
$(RM) robohdrs
$(RM) *~
$(RM) *.o
$(RM) *.tex
$(RM) *.toc
$(RM) *.dvi
$(RM) *.aux
$(RM) *.log
$(RM) *.ps
$(RM) robodoc.html
$(RM) testheaders.html
$(RM) stamp-h*
$(RM) makefile.in
$(RM) config.h
#------------------------------
# Construction of the makefile
#------------------------------
depend :
makedepend -Y"" -f makefile.wingcc $(SOURCES) $(HEADERS)
depend2:
$(CC) -MM $(SOURCES)
# DO NOT DELETE
analyser.o : robodoc.h globals.h headers.h items.h util.h folds.h links.h \
analyser.h document.h file.h path.h part.h
ascii_generator.o : ascii_generator.h headers.h util.h robodoc.h globals.h \
items.h generator.h document.h
directory.o : robodoc.h directory.h file.h path.h
generator.o : globals.h robodoc.h headers.h items.h folds.h util.h links.h \
generator.h document.h part.h file.h path.h roboconfig.h \
html_generator.h latex_generator.h sgmldocbook_generator.h \
rtf_generator.h troff_generator.h ascii_generator.h analyser.h
document.o : robodoc.h document.h part.h path.h directory.h file.h \
headers.h links.h util.h generator.h
globals.o : robodoc.h globals.h headers.h util.h
headers.o : robodoc.h headers.h
html_generator.o : html_generator.h headers.h util.h globals.h robodoc.h \
links.h generator.h document.h items.h folds.h
items.o : globals.h robodoc.h items.h roboconfig.h
folds.o : robodoc.h folds.h
links.o : globals.h robodoc.h headers.h util.h links.h folds.h
file.o : file.h path.h headers.h util.h
latex_generator.o : generator.h robodoc.h headers.h document.h util.h \
links.h latex_generator.h globals.h
part.o : headers.h file.h path.h part.h util.h
path.o : path.h robodoc.h headers.h util.h
roboconfig.o : util.h roboconfig.h
robodoc.o : robodoc.h globals.h folds.h headers.h items.h util.h links.h \
part.h analyser.h document.h generator.h directory.h file.h path.h \
roboconfig.h
rtf_generator.o : rtf_generator.h headers.h util.h robodoc.h globals.h \
generator.h document.h items.h
sgmldocbook_generator.o : sgmldocbook_generator.h headers.h util.h \
robodoc.h globals.h links.h generator.h document.h items.h
troff_generator.o : troff_generator.h headers.h util.h robodoc.h items.h \
generator.h document.h
util.o : robodoc.h globals.h links.h headers.h folds.h items.h util.h
|