User`s manual
ThinkCore IA241/240 Linux User’s Manual Development Tool Chains
5-9
/
Mkpasswd –l [-d] > /etc/passwd
Mkgroup –l [-d] > /etc/group
Note that the –d switch is necessary for domain users.
Jared_Wu@Jared_Wu ~
$ cd /
Jared_Wu@Jared_Wu /
$ ls –al
total 9
drwxrwx--- 9 Jared_Wu 4294967295 0 Nov 4 18:11 .
drwxrwx--- 9 Jared_Wu 4294967295 0 Nov 4 18:11 .
drwxrwx--- 2 Jared_Wu 4294967295 0 Nov 4 11:10 bin
drwxrwx--- 7 Jared_Wu 4294967295 0 Nov 4 11:10 etc
drwx------ 2 Jared_Wu mkpasswd 0 Nov 4 18:07 hello
-rwxr-x--- 1 Jared_Wu 4294967295 3262 Nov 4 11:12 insight.ico
drwxrwx--- 5 Jared_Wu 4294967295 0 Nov 4 11:10 lib
-rwxr-x--- 1 Jared_Wu 4294967295 53 Nov 4 10:12 moxa.bat
-rwxr-x--- 1 Jared_Wu 4294967295 3262 Nov 4 11:12 moxa.ico
drwxrwx--- 4 Jared_Wu 4294967295 0 Nov 4 18:11 tmp
drwxrwx--- 13 Jared_Wu 4294967295 0 Nov 4 11:06 usr
drwxrwx--- 6 Jared_Wu 4294967295 0 Nov 4 11:06 var
Jared_Wu@Jared_Wu /
$
Next, enter the hello directory and invoke the make program that will execute the compilation
instructions written in the Makefile to compile the hello project.
/hello
drwxrwx--- 7 Jared_Wu 4294967295 0 Nov 4 11:10 etc
drwx------ 2 Jared_Wu mkpasswd 0 Nov 4 18:07 hello
-rwxr-x--- 1 Jared_Wu 4294967295 3262 Nov 4 11:12 insight.ico
drwxrwx--- 5 Jared_Wu 4294967295 0 Nov 4 11:10 lib
-rwxr-x--- 1 Jared_Wu 4294967295 53 Nov 4 10:12 moxa.bat
-rwxr-x--- 1 Jared_Wu 4294967295 3262 Nov 4 11:12 moxa.ico
drwxrwx--- 4 Jared_Wu 4294967295 0 Nov 4 18:11 tmp
drwxrwx--- 13 Jared_Wu 4294967295 0 Nov 4 11:06 usr
drwxrwx--- 6 Jared_Wu 4294967295 0 Nov 4 11:06 var
Jared_Wu@Jared_Wu /
$ cd hello/
Jared_Wu@Jared_Wu /hello
$ make
/usr/local/mxscaleb/bin/mxscaleb-gcc –o hello-release hello.c
/usr/local/mxscaleb/bin/mxscaleb-strip –s hello-release
/usr/local/mxscaleb/bin/mxscaleb-gcc –ggdb -o hello-debug hello.c
Jared_Wu@Jared_Wu /hello
$ ls
Makefile README hello-debug hello-release hello.c
Jared_Wu@Jared_Wu /hello
$