1 #****h* ROBODoc/Makefile.win32
3 # A makefile for win32.
4 # Well it is not really a proper makefile since the dependencies are
5 # missing, but it will compile robodoc using VC++
7 # nmake -f makefile.win32
8 # nmake -f makefile.win32 clean
10 # run vcvars32.bat (part of VC++)
11 # before using this file.
21 #****v* Makefile.win32/CFLAGS
23 # The flags feeded to the compiler to compile a .c file.
25 # -I. look for include files in the current directory
26 # -Zi enable debugging information.
27 # -W3 turns on warnings,
28 # -D RB_MSVC defines the symbol RB_MSVC which is needed
29 # to compile the OS dependend parts of robodoc.
33 CFLAGS = -c -I. -nologo -Zi -W3 -D RB_MSVC -D IGNORE_CASE_FILENAMES
38 CLINKFLAGS = /nologo /debug
40 #****v* Makefile.win32/SOURCES
42 # List of all the sources needed to compile ROBODoc.
44 SOURCES=analyser.c generator.c items.c util.c folds.c headers.c \
45 headertypes.c links.c robodoc.c directory.c part.c file.c path.c \
46 html_generator.c latex_generator.c rtf_generator.c \
47 troff_generator.c sgmldocbook_generator.c ascii_generator.c \
48 globals.c document.c roboconfig.c xmldocbook_generator.c \
52 OBJECTS=$(SOURCES:.c=.obj)
55 #****e* Makefile.win32/robodoc.trg
57 # Compile the robodoc executable. This makefile is
58 # missing a dependencies sections, so use this target
62 robodoc.trg : $(OBJECTS)
63 $(CLINK) $(CLINKFLAGS) $(OBJECTS) /out:robodoc.exe
66 #****v* Makefile.win32/clean
68 # Delete all the files created in the build process.
80 copy robodoc.exe c:\pws\bin
82 LINTOPT = -ic:\pclint8\lnt -u std.lnt env-vc6.lnt -e715 +dRB_MSVC
84 # LINTOPT = -ic:\pclint8\lnt -u std.lnt env-vc6.lnt -e715 -e613 -e550 -e740 -e732 -e713 -e737 -e818 -e830 -e641 +dRB_MSVC
86 #****ie* Makefile.win32/lint
88 # Runs lint on all the robodoc sources.
92 -c:\pclint8\lint-nt $(LINTOPT) globals.c
93 -c:\pclint8\lint-nt $(LINTOPT) latex_generator.c
94 -c:\pclint8\lint-nt $(LINTOPT) rtf_generator.c
95 -c:\pclint8\lint-nt $(LINTOPT) document.c
96 -c:\pclint8\lint-nt $(LINTOPT) file.c
97 -c:\pclint8\lint-nt $(LINTOPT) headers.c
98 -c:\pclint8\lint-nt $(LINTOPT) directory.c
99 -c:\pclint8\lint-nt $(LINTOPT) headertypes.c
100 -c:\pclint8\lint-nt $(LINTOPT) util.c
101 -c:\pclint8\lint-nt $(LINTOPT) roboconfig.c
102 -c:\pclint8\lint-nt $(LINTOPT) robodoc.c
103 -c:\pclint8\lint-nt $(LINTOPT) generator.c
104 -c:\pclint8\lint-nt $(LINTOPT) html_generator.c