summaryrefslogtreecommitdiff
path: root/src/compile.com
blob: 0a62638bf5529d4620ec6d0eac72a16095135b28 (plain)
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
$ set noverify
$ ! VMS command file to recompile all .C files which need recompilation.
$ ! These are all .C files that have no .OBJ files or that are newer
$ ! than the corresponding .OBJ files.  This file is self contained
$ ! and does not require you to do anything before running it.
$ !***
$ !***  Mukesh Prasad		compile.com	Nov. 18, 1985
$ !***
$ !***	Compile all .C files in the directory 'sourcedir'.
$ !***  If an argument is present, compiles all files, otherwise
$ !***  compiles only files modified since last compile.
$ !***
$
$! First we try to sense which C compiler we have available.
$!
$set noon		!do not bomb if an error occurs.
$assign nla0: sys$output
$assign nla0: sys$error  !so we do not get an error message about this.
$cc nla0:compiler_check.c
$if $status.eq.%x38090 then goto try_gcc
$goto have_compiler
$!
$try_gcc:
$gcc nla0:compiler_check.c
$if $status.eq.%x38090 then goto whoops
$ CC :== GCC
$goto have_compiler
$!
$whoops:
$write sys$output "You must have a C compiler to build Emacs.  Sorry."
$deassign sys$output
$deassign sys$error
$exit %x38090
$!
$!
$have_compiler:
$deassign sys$output
$deassign sys$error
$set on
$if f$search("compiler_check.obj").nes."" then dele/nolog compiler_check.obj;
$write sys$output "Building Emacs with the ''cc' compiler."
$
$    @precomp
$    @recomp dispnew.c
$    @recomp scroll.c
$    @recomp xdisp.c
$    @recomp window.c
$    @recomp term.c
$    @recomp cm.c
$    @recomp emacs.c
$    @recomp keyboard.c
$    @recomp macros.c
$    @recomp keymap.c
$    @recomp sysdep.c
$    @recomp buffer.c
$    @recomp filelock.c
$    @recomp insdel.c
$    @recomp marker.c
$    @recomp minibuf.c
$    @recomp fileio.c
$    @recomp dired.c
$    @recomp filemode.c
$    @recomp cmds.c
$    @recomp casefiddle.c
$    @recomp indent.c
$    @recomp search.c
$    @recomp regex.c
$    @recomp undo.c
$    @recomp alloc.c
$    @recomp data.c
$    @recomp doc.c
$    @recomp editfns.c
$    @recomp callint.c
$    @recomp eval.c
$    @recomp fns.c
$    @recomp print.c
$    @recomp lread.c
$    @recomp abbrev.c
$    @recomp syntax.c
$    @recomp mocklisp.c
$    @recomp bytecode.c
$    @recomp process.c
$    @recomp callproc.c
$    @recomp vmsfns.c
$    @recomp doprnt.c
$    @recomp vmsmap.c
$    @recomp termcap.c
$    @recomp tparam.c
$    @recomp lastfile.c
$    @recomp malloc.c
$    @recomp alloca.c