- log on as user hjh (home directory will be /home/hjh)
The source files of all programs should be in /home/hjh/home/cc...
- Have the DOS/Windows source files in /c/home/cc/... (I have
mounted my DOS partition on /c, others will perfer to use /media/dos or /mnt/hda1 or
what else. See ../../linux/mount.htm
or see [man mount] or see file /etc/fstab
cp /c/home/cc/bashrc.bin ~/.bashrc
log off and log on again (as hjh). Then in the search path will be
/home/hjh/home/cc/linux:/home/hjh/home/cc/bin
mkdir ~/home
mkdir ~/home/cc
mkdir ~/home/cc/bin
cp -a /c/home/cc/bin/syncdir ~/home/cc/bin
chmod ugo+x ~/home/cc/bin/syncdir
syncdir -k -nl -r /c/home/cc ~/home/cc
chmod ugo+x ~/home/cc/bin/*
chmod ugo+x ~/home/cc/linux/*
chmod ugo+x ~/home/cc/lq/tl
chmod ugo+x ~/home/cc/lq/tll
This calls syncdir, which should be in /home/hjh/home/cc/bin
,
see util/syncdir.htm
- Compile the library
cd ~/home/cc/lq
hmake
This invokes hmake, which should be in /home/hjh/home/cc/bin
,
hmake invokes the shell scripts see utils/hmake.htm
- Compile, link and run a test program (qqmain)
cd ~/home/cc/qq
g++ qqmain.cpp
cp a.out ~/bin
a.out my first test
- Compile and link syncdir
cd ~/home/cc/util
ccs syncdir
lnk syncdir
- Changes have been neccesary? Copy them back. Use syncdir to copy
all newer files from the linux directory to the dos (Windows) directory
syncdir -12 -r ~/home/cc /c/home/cc
Aufruf des gnu-Compilers, um eine Assembler-Quelle aus einer C-Quelle
zu erzeugen: