Imported Robodoc.
[robodoc.git] / Source / makefile.win32
1 #****h* ROBODoc/Makefile.win32
2 # FUNCTION
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++
6 # USAGE
7 #   nmake -f makefile.win32 
8 #   nmake -f makefile.win32 clean
9 # NOTES
10 #   run  vcvars32.bat    (part of VC++)
11 #   before using this file.
12 #*****
13
14 .SUFFIXES :
15 .SUFFIXES : .obj .c
16 .c.obj:
17         $(CC) $(CFLAGS) -c $<
18
19 CC = cl
20
21 #****v* Makefile.win32/CFLAGS
22 # FUNCTION
23 #   The flags feeded to the compiler to compile a .c file.
24 #
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.
30 # SOURCE
31 #
32
33 CFLAGS     = -c -I. -nologo -Zi -W3 -D RB_MSVC -D IGNORE_CASE_FILENAMES
34
35 #******
36
37 CLINK      = link
38 CLINKFLAGS = /nologo /debug
39
40 #****v* Makefile.win32/SOURCES
41 # FUNCTION
42 #   List of all the sources needed to compile ROBODoc.
43 # SOURCE
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 \
49         test_generator.c
50 #*****
51
52 OBJECTS=$(SOURCES:.c=.obj)
53
54
55 #****e* Makefile.win32/robodoc.trg
56 # FUNCTION
57 #   Compile the robodoc executable. This makefile is
58 #   missing a dependencies sections, so use this target
59 #   only once.
60 # SOURCE
61 #
62 robodoc.trg : $(OBJECTS)
63         $(CLINK) $(CLINKFLAGS) $(OBJECTS) /out:robodoc.exe
64 #******
65
66 #****v* Makefile.win32/clean
67 # FUNCTION
68 #   Delete all the files created in the build process.
69 # SOURCE
70 #
71 clean:
72         del $(OBJECTS)
73         del robodoc.exe
74         del *.pdb *.ilk
75         del tags
76 #*****
77
78
79 frans: robodoc.trg
80         copy robodoc.exe c:\pws\bin
81
82 LINTOPT = -ic:\pclint8\lnt -u std.lnt env-vc6.lnt -e715 +dRB_MSVC
83
84 # LINTOPT = -ic:\pclint8\lnt -u std.lnt env-vc6.lnt -e715 -e613 -e550 -e740 -e732 -e713 -e737 -e818 -e830 -e641 +dRB_MSVC
85
86 #****ie* Makefile.win32/lint
87 # FUNCTION
88 #   Runs lint on all the robodoc sources.
89 # SOURCE
90 #
91 lint:
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
105 #******