2 #****h* ROBODoc/makefile.mingw-cygwin
4 # makefile.mingw-cygwin -- Plain makefile that does not need autoconf
6 # The makefile for MingW Minimalist GNU for Windows under the Cygwin
8 # * http://www.mingw.org,
9 # * http://www.cygwin.com
11 # You can use it if you are on a win32 system.
13 # The following targets are the most useful for the user:
14 # * robodoc - makes the robodoc executable.
16 # Developers might try:
17 # * test - run system tests
18 # * clean - clean all results.
21 # make -f makefile.mingw-cygwin robodoc
22 # make -f makefile.mingw-cygwin test
23 # make -f makefile.mingw-cygwin clean
27 # $Id: makefile.mingw-cygwin,v 1.17 2007/05/14 15:41:19 petterik Exp $
33 #--------------------------------------
35 #--------------------------------------
40 #****v* makefile.mingw-cygwin/CFLAGS
42 # Defined the flags used for the C compiler:
43 # * -W, -Wall and -std=gnu99 --
44 # This turns on all warnings based on the C99 standard.
45 # Making the source warning free for an earlier standard is
46 # not necessary as this code is compiled on Unix, Windows, and
47 # Mac systems that all have C99 compliant C compilers.
48 # It also allows some gnu extensions.
49 # Using -std=c99 gives some spurious warnings about popen()
50 # * -O3 -- optimize, turning optimization on finds more errors and
52 # * -mno-cygwin -- Tells gcc not to link with cygwin1.dll but use the
53 # windows standard C library. (make mingw windows native executable
55 # * -s -- Strip debug info out from objects, making the executable smaller
56 # * -g -- Include all debugger info for GDB
60 CFLAGS = -g -mno-cygwin -W -Wall -std=gnu99
62 CFLAGS = -s -mno-cygwin -O3 -W -Wall -std=gnu99
77 # currently does not compile: robohdrs
79 #****v* makefile.mingw-cygwin/SOURCES, HEADERS
81 # All source files needed to compile ROBODoc
107 xmldocbook_generator.c
109 HEADERS= analyser.h \
133 xmldocbook_generator.h
137 OBJECTS= $(SOURCES:.c=.o)
139 #****e* makefile.mingw-cygwin/robodoc
143 # This assumes that your version of make knows how to make an .o file
148 $(ROBODOC) : $(OBJECTS)
149 $(CC) $(CFLAGS) $(OBJECTS) -o $(ROBODOC) $(LIBS)
153 #****e* makefile.mingw-cygwin/robohdrs
159 robohdrs : robohdrs.o headers.o
160 $(CC) robohdrs.o headers.o -o robohdrs
166 robodoc.html : $(ROBODOC)
167 ./$(ROBODOC) --src ./ --doc robodoc --singledoc --html --sections --toc
169 #----------------------------
171 #----------------------------
174 #****e* makefile.mingw-cygwin/test
176 # test -- run some tests
178 # Runs robodoc on file with a number of different headers.
180 # 2002-05-19/PetteriK: test cases in Test directory run with this rule
187 #****e* makefile.mingw-cygwin/clean
189 # clean -- Clean up the mess we made.
191 # Cleans up the mess we made.
214 #------------------------------
215 # Construction of the makefile
216 #------------------------------
218 # TODO Figure out how to get rid of all the warnings about
219 # standard includes such as <stdio.h> etc
221 makedepend -Y"" -f makefile.mingw-cygwin $(SOURCES) $(HEADERS)
228 analyser.o: analyser.c robodoc.h globals.h headers.h headertypes.h \
229 items.h util.h document.h links.h analyser.h file.h path.h part.h \
231 ascii_generator.o: ascii_generator.c ascii_generator.h headers.h util.h \
232 document.h robodoc.h globals.h items.h headertypes.h generator.h
233 directory.o: directory.c robodoc.h directory.h file.h path.h links.h \
234 headertypes.h headers.h document.h util.h globals.h roboconfig.h
235 document.o: document.c robodoc.h document.h part.h path.h directory.h \
236 file.h links.h headertypes.h headers.h util.h generator.h globals.h
237 file.o: file.c file.h path.h links.h headertypes.h headers.h document.h \
239 generator.o: generator.c globals.h robodoc.h headers.h items.h util.h \
240 document.h links.h headertypes.h generator.h part.h file.h path.h \
241 roboconfig.h html_generator.h latex_generator.h xmldocbook_generator.h \
242 rtf_generator.h troff_generator.h ascii_generator.h test_generator.h \
244 globals.o: globals.c robodoc.h globals.h links.h headertypes.h headers.h \
246 headers.o: headers.c robodoc.h headers.h globals.h roboconfig.h util.h \
248 headertypes.o: headertypes.c headertypes.h util.h headers.h document.h \
250 html_generator.o: html_generator.c html_generator.h headers.h items.h \
251 robodoc.h document.h util.h globals.h links.h headertypes.h generator.h \
252 directory.h file.h path.h part.h roboconfig.h
253 items.o: items.c globals.h robodoc.h items.h roboconfig.h util.h \
255 latex_generator.o: latex_generator.c generator.h robodoc.h headers.h \
256 document.h util.h links.h headertypes.h latex_generator.h globals.h
257 links.o: links.c globals.h robodoc.h headers.h util.h document.h links.h \
258 headertypes.h part.h file.h path.h
259 optioncheck.o: optioncheck.c robodoc.h optioncheck.h roboconfig.h util.h \
261 part.o: part.c headers.h file.h path.h links.h headertypes.h document.h \
262 robodoc.h part.h util.h
263 path.o: path.c path.h robodoc.h headers.h util.h document.h
264 roboconfig.o: roboconfig.c headertypes.h util.h headers.h document.h \
265 robodoc.h roboconfig.h globals.h optioncheck.h
266 robodoc.o: robodoc.c robodoc.h globals.h headers.h util.h document.h \
267 links.h headertypes.h part.h analyser.h generator.h directory.h file.h \
268 path.h roboconfig.h optioncheck.h
269 rtf_generator.o: rtf_generator.c rtf_generator.h headers.h util.h \
270 document.h robodoc.h globals.h generator.h
271 test_generator.o: test_generator.c test_generator.h headers.h document.h \
272 robodoc.h globals.h util.h
273 troff_generator.o: troff_generator.c troff_generator.h headers.h items.h \
274 robodoc.h util.h document.h generator.h file.h path.h links.h \
276 util.o: util.c robodoc.h globals.h links.h headertypes.h headers.h \
277 document.h path.h util.h
278 xmldocbook_generator.o: xmldocbook_generator.c xmldocbook_generator.h \
279 headers.h document.h robodoc.h globals.h util.h