File: makefile.win32

package info (click to toggle)
robodoc 4.0.18-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 924 kB
  • ctags: 669
  • sloc: ansic: 8,386; xml: 953; sh: 335; makefile: 144; perl: 68
file content (104 lines) | stat: -rw-r--r-- 2,743 bytes parent folder | download
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
#****h* ROBODoc/Makefile.win32
# FUNCTION
#   A makefile for win32.
#   Well it is not really a proper makefile since the dependencies are
#   missing, but it will compile robodoc using VC++
# SYNOPSIS
#   nmake -f makefile.win32 
#   nmake -f makefile.win32 clean
# NOTES
#   run  vcvars32.bat    (part of VC++)
#   before using this file.
#*****

.SUFFIXES :
.SUFFIXES : .obj .c
.c.obj:
	$(CC) $(CFLAGS) -c $<

CC = cl

#****v* Makefile.win32/CFLAGS
# FUNCTION
#   The flags feeded to the compiler to compile a .c file.
#
#   -I.   look for include files in the current directory
#   -Zi   enable debugging information.
#   -W3 turns on warnings,
#   -D RB_MSVC  defines the symbol RB_MSVC which is needed
#               to compile the OS dependend parts of robodoc.
# SOURCE
#

CFLAGS     = -c -I. -nologo -Zi -W3 -D RB_MSVC

#******

CLINK      = link
CLINKFLAGS = /nologo /debug

#****v* Makefile.win32/SOURCES
# FUNCTION
#   List of all the sources needed to compile ROBODoc.
# SOURCE
SOURCES=analyser.c generator.c items.c util.c folds.c headers.c \
        headertypes.c links.c robodoc.c directory.c part.c file.c path.c \
        html_generator.c latex_generator.c rtf_generator.c \
        troff_generator.c sgmldocbook_generator.c ascii_generator.c \
        globals.c document.c roboconfig.c xmldocbook_generator.c
#*****

OBJECTS=$(SOURCES:.c=.obj)


#****e* Makefile.win32/robodoc.trg
# FUNCTION
#   Compile the robodoc executable. This makefile is
#   missing a dependencies sections, so use this target
#   only once.
# SOURCE
#
robodoc.trg : $(OBJECTS)
	$(CLINK) $(CLINKFLAGS) $(OBJECTS) /out:robodoc.exe
#******

#****v* Makefile.win32/clean
# FUNCTION
#   Delete all the files created in the build process.
# SOURCE
#
clean:
	del $(OBJECTS)
	del robodoc.exe
	del *.pdb *.ilk
	del *.html
#*****


frans: robodoc.trg
	copy robodoc.exe c:\project\bin

LINTOPT = -ic:\pclint8\lnt -u std.lnt env-vc6.lnt -e715 +dRB_MSVC

# LINTOPT = -ic:\pclint8\lnt -u std.lnt env-vc6.lnt -e715 -e613 -e550 -e740 -e732 -e713 -e737 -e818 -e830 -e641 +dRB_MSVC

#****ie* Makefile.win32/lint
# FUNCTION
#   Runs lint on all the robodoc sources.
# SOURCE
#
lint:
	-c:\pclint8\lint-nt $(LINTOPT) globals.c
	-c:\pclint8\lint-nt $(LINTOPT) latex_generator.c 
	-c:\pclint8\lint-nt $(LINTOPT) rtf_generator.c 
	-c:\pclint8\lint-nt $(LINTOPT) document.c
	-c:\pclint8\lint-nt $(LINTOPT) file.c
	-c:\pclint8\lint-nt $(LINTOPT) headers.c
	-c:\pclint8\lint-nt $(LINTOPT) directory.c 
	-c:\pclint8\lint-nt $(LINTOPT) headertypes.c
	-c:\pclint8\lint-nt $(LINTOPT) util.c
	-c:\pclint8\lint-nt $(LINTOPT) roboconfig.c
	-c:\pclint8\lint-nt $(LINTOPT) robodoc.c
	-c:\pclint8\lint-nt $(LINTOPT) generator.c
	-c:\pclint8\lint-nt $(LINTOPT) html_generator.c
#******