File: INSTALL

package info (click to toggle)
m2c 0.6-10
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,156 kB
  • ctags: 1,908
  • sloc: ansic: 18,136; sh: 1,561; makefile: 48
file content (120 lines) | stat: -rw-r--r-- 3,869 bytes parent folder | download | duplicates (5)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Installation in the same directory as one with sources files.
*************************************************************


  1. Run command file `configure' with a single argument which
     specifies the type of system to build the translator for. This
     argument looks as follows:

           CPU


     For example,

       configure vax

     All The possible values of the parameter are given in file
     MACHINES.

     `configure' outputs possible names of C compilers which may be
     used for the Modula-2 translator. After that enter one of the names
     (for example gcc).

     In the case of successful work `configure' in current directory
     generates Makefile (from file `Makefile.tmpl'), file `config.h'
     (from the relative file with suffix `.h' in the subdirectory
     `config') and possibly creates link `m2l_ascor.c' to assembler
     functions which implement Modula-2 coroutines. At the end of
     successful work `configure' write to standard output and file
     `config.status' configuration options were specified.

  2. Install the Modula-2 translator, run-time support and standard
     module library by the following command:

          make install

     This command create all object files and copies the translator
     `m2c' into the directory /usr/local/bin and file `m2c.1' to
     /usr/local/man/man1.  It also copies file `m2lib.a' (run-time
     support) , definition, implementation standard modules and its
     object files into directory /usr/local/lib/m2lib.

     If you wish to copy the files into other directories change
     values of Makefile variables `bindir', `libdir', `man1dir' and
     `prefix'. Use only full path name for the directories! For
     example, if you wish to copy the files into directories
     `/usr/users/VHDL/mak/bin', `/usr/users/VHDL/mak/lib' and
     `/usr/users/VHDL/mak/man/man1' specify

           make install prefix=/usr/users/VHDL/mak
     
                           or

           make install bindir=/usr/users/VHDL/mak/bin\
                libdir=/usr/users/VHDL/mak/lib\
                /usr/users/VHDL/mak/man/man1


Makefile contains following useful entries other than install:

  all       -- creation of all object and executable files;
  
  dist      -- unconditional creation of compressed distribution tar
	       file;

  modclean  -- deletion of object files of standard modules;

  clean     -- deletion of object files of the translator and executable
               file `m2c';

  realclean -- the same as entries `clean', `modclean' and also
               deletion of object files, library of run-time support
               and emacs TAGS table;
               
  TAGS      -- updating TAGS table for the `m2c' sources and run-time
               function sources;

  uninstall -- delete the installed files and empty installation
	       directories.



Installation in directory other than one with sources files.
************************************************************

    If you wish to build the object and executable files in a
subdirectory of the source directory make the same as in previous
sections. `configure' itself find out the sources.


In other case do follows:

  1. Go to that directory before running `configure':

          mkdir m2c-vax; cd m2c-vax

  2. Specify where to find `configure' when you run it:

          ../m2c-0.6/configure ...

  3. Specify where to find the sources, as an argument `+srcdir' to
     `configure':

          ../m2c-0.6/configure +srcdir=../m2c-0.6 vax


Other `configure' options.
**************************

   `configure' ignores following standard GNU options:
    
        `+nfp'     `+gas'     `+x'

   You can use option `+cc' if you wish that configure will not question
about C compiler name. For example,

      configure +cc=gcc vax

 
Vladimir Makarov 	(vmakarov@usa.net)