Topics / Index
Compilation with different Compilers (overview)
The source files of all programs of Hans-Jürgen Herberts /home/cc
- Programs
are held in subdirectories /home/cc/.... Download and unpack:
All files may be compiled by various compilers for various operating
systems:
It is common to all DOS and Windows-Dos-Prompt compilations that:
- pre usage of a compiler (from command line), a batch file from
C:\home\cc must be invoked to
set up the compilers environment and paths. The batch files can be :
tc.bat mdos50.bat dj.bat avr.bat.
- After this, a single xxx.cpp file is compiled (into .Object) by
invocation of ccs xxx. Where CCS.BAT is in the search path, in
/home/cc/tcbat, /home/cc/mdos50.b, /home/cc/msvc50.b, /home/cc/djbat.
- For each compiler the .obj files are hold in a different
subdirectory ./TC/*.OBJ ./DJ/*.o ./MDOS40/*.OBJ
- The whole library /home/cc/lq is compiled by invocation of
hmake, which interprets hmake.txt
- All utilities are compiled in subdirectory /home/cc/util by
invocation of hmake, which interprets hmake.txt
- Under LINUX all files are compiled by invocation of the shell
script tl (Translate) The makefile is not for Linux, but for
OS-9.
- Under OS-9 all files are compiled by invocation of make
which will use the makefile.
- After compilation all exe files will reside in a subdirectory
C:\EXxxxx (for DOS and Windows), in /h0/HOME/CC/CMDS for OS-9; and in
~/home/cc/bin for Linux.
- All unneccesary files (before saving to a tape, Network or CD)
may be deleted by alld cppclean where cppclean is a *.bat file
in my search path C:\EXTENDS
The C:\EXTENDS\cppclean.bat file :
del *.o
del *.obj
del *.opt
del *.pdb
del *.wsp
del *.bsc
del *.exe
del *.obj
del *.sbr
del *.vcw
del *.ncb
del *.ilk
del *.pch
del *.idb