forked from pabuhr/uCPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
141 lines (78 loc) · 3.4 KB
/
README.txt
File metadata and controls
141 lines (78 loc) · 3.4 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
This file contains instructions on how to build the latest version of uC++.
REQUIREMENTS
uC++ requires at least:
* g++-7.0 or greater. uC++ does NOT compile using other compilers or operating systems.
* gmake-3.79.1 or greater, which is available by anonymous ftp from any FSF mirror
site. (All instructions below assume the "make" command is "gmake".)
DOWNLOAD
Option 1: from GitHub
* if git not installed, download and set up Git
https://help.github.com/articles/set-up-git
* clone repository to local directory
$ git clone https://github.com/pabuhr/uCPP.git
* change to build directory
$ cd uCPP
Option 2: from Waterloo
* create build directory
$ mkdir uCPP
* change to build directory
$ cd uCPP
* copy repository to build directory
$ wget http://plg.uwaterloo.ca/~usystem/pub/uSystem/u++-7.0.0.sh
AUTOMATIC uC++ BUILD
Option 1:
* into local directory ./u++-7.0.0 with u++ command installed in ./u++-7.0.0/bin
$ sh u++-7.0.0.sh
Option 2:
* into non-local directory /usr/local with u++ command installed in /usr/local/bin
$ sudo sh u++-7.0.0.sh
Option 3:
* into specified directory /software/local with u++ command installed in
/software/local/bin
$ sh u++-7.0.0.sh -p /software/local -c /software/local/bin
MANUAL uC++ BUILD
Option 1: GitHub
* change to source directory
$ cd source
Option 2: Shellball
* extract tarball
$ sh u++-7.0.0.sh -e
* change to source directory
$ cd u++-7.0.0
* Read the comments and edit the variables in the top level make file,
./Makefile.
* Type "make" to get a list of supported configurations or read the list in
the top level make file.
* Type "make xxx", where xxx is one of the listed configurations, e.g.,
"make linux-x86_64" to configure for a 64-bit x86 processor running linux.
A CONFIG file is created and all Makefiles are modified with appropriate
path names.
* Type "make install" to compile and install uC++. To compile and install
separately, type "make" to compile uC++ and then "make install" to move the
necessary executables and libraries to the install location.
* After installation is complete, the executable "u++" is created in the
directory defined by INSTALLBINDIR in the top level make file. Add this
directory to your command path to access the compilation command u++. While
the "u++" command can be moved to any location, do not move the "lib" or
"inc" directories, as the "u++" command contains hard-coded references to
them, which are set at installation time.
* Type "make clean" to remove any temporary files created during
installation.
* Directory INSTALLPREFIX/src/examples has a number of example uC++ programs.
Type "make bench" in this directory to do a basic test of the installation.
UNINSTALL uC++
Option 1:
* remove local build directory
$ rm -rf uCPP
Option 2:
* remove non-local directories
$ [sudo] u++-uninstall
NOTES
The file CONFIG is generated by the Makefile. It contains definitions that are
specific to an installation on this type of machine. This file is included by
many of the Makefiles in directories below this one. Do not modify the CONFIG
file directly, rather, remove the CONFIG, modify the file ./Makefile, and start
at step 3 for building uC++.
AUTHORS
P. A. Buhr
and many others