I have been compiling all Unix/Linux/QNX platform variations using shell scripts. I know I should be using make but its syntax drives me crazy.
Before you look at the scripts, you should also understand the assumed directory structure of the Future Lab GPL software.
Instead of hard coding the directories involved, I have am using environment variables to represent the various required directories. At the top of each script, there is a dot execute of two, what I call include scripts. The first is generic and applies to all compile/link scripts. The second is specific to the target platform. Before reading the scripts, take a look at the two include scripts called include.generic and include.linux.
The scripts that I use to build Future Lab GPL software are documented here:
# Generic variable defines that apply # to all compilations. # Apr/2000, Rick Smereka # # base directory to all source, object # and executable files DIRBASE="/home/rick/gpl"
This script contains any variables that do not change from one platform to another. This script is dot executed (included) in all other scripts.
# Linux compile variables. # Apr/2000, Rick Smereka # # Added location of C++ # library files. Sep/2000, # Rick Smereka # # Moved multi variable here from # 'include.generic'. Oct/2001, # Rick Smereka # # Split multi variable into multi # and IPC type. Dec/2001, # Rick Smereka # # Added pre-processor defines 'OS_UNIX_LINUX' to # represent any flavour of Linux and # 'OS_UNIX_LINUX_DEBIAN' to represent any # Debian Linux specific code. Oct/2002, # Rick Smereka # # Added level 2 optimization option on production code. # Jan/2003, Rick Smereka # # Added compiler define 'HAS_SYSLOG' used to indicate # an application that includes the 'sys_log' object # module. Aug/2004, Rick Smereka # # Changed 'LIBASE' to point to new compiler directory. # Jan/2005, Rick Smereka # # compilation command COMP="gcc" # # pre-processor defines and compiler options DEFS="-O2 -DOS_UNIX -DOS_UNIX_LINUX -DSUB_PLATFORM_STRING" # # sub platform string PLAT="\"Ubuntu Linux\"" # # location of C++ library files LIBASE="/usr/lib/gcc/i486-linux-gnu/4.0.3" # # multiuser defines # (not always used) MULTI="-DMULTIUSER" IPC="-DIPC_TCP" # # define to indicate that application has 'sys_log' # interface linked into it HASYSLOG="-DHAS_SYSLOG"
This script contains definitions specifc to a single platform. This script is specific to the Lunux platform.
# Compile only (using GNU) # . include.generic . include.linux # $COMP $DEFS="$PLAT" -I$DIRBASE/include -c $1.c
This script will compile the supplied source file and place the object code in the current directory.
# Compile only (using GNU) # with multiuser and IPC # Sep/2001, Rick Smereka # # Added IPC variable. # Dec/2001, Rick Smereka # . include.generic . include.linux # $COMP $DEFS="$PLAT" $MULTI $IPC -I$DIRBASE/include -c $1.c
This script will compile the supplied source file using the MULTI and IP defines and place the object code in the current directory.
# Compile C++ only (using GNU) # Sep/2000, Rick Smereka # . include.generic . include.linux # $COMP $DEFS="$PLAT" -I$DIRBASE/include -c $1.cpp
This script will compile the supplied C++ source file and place the object code in the current directory.
# Compile all clib source modules # to Linux object files. # Jan/99, Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Added file 'ip.c' # Jul/2000, Rick Smereka # # Added file 'dscan.c' # Feb/2001, Rick Smereka # # Changed compile type from # 'c' to 'cmulti' for multiuser # modules. Sep/2001, # Rick Smereka # # Added file 'timesapi.c' # and 'tlogcode.c' # Dec/2001, Rick Smereka # # Added files 'fxp.c' # and 'conv.c'. # Apr/2002, Rick Smereka # # Added files 'datime.c' # and 'appinit.c'. # May/2002, Rick Smereka # # Added file 'wlib.c'. # Mar/2003, Rick Smereka # # Added file 'misc.c'. # Jun/2003, Rick Smereka # # Added file 'logman.c'. # Mar/2004, Rick Smereka # # Added file 'armtree.c'. # Jul/2004, Rick Smereka # # Added file 'path.c'. # Feb/2006, Rick Smereka # . include.generic # cd $DIRBASE/clib # c fio cmulti ipclient cmulti ipcomm cmulti ipconfig cmulti ipcsrv c logger c parse cmulti slogcode cmulti sys_log cmulti ip cmulti timesapi cmulti tlogcode c dscan c fxp c conv c datime cmulti appinit c wlib c misc c logman c armtree c path
This script will compile all the Future Lab GPL C library modules.
# Compile all C++ clib source modules # to Linux object files. # Sep/2000, Rick Smereka # # Added 'wstring'. # Oct/2000, Rick Smereka # # Changed 'csocket' and 'ssocket' # to compile for multiuser. # Nov/2001, Rick Smereka # . include.generic # cd $DIRBASE/clib # ppcmulti csocket ppcmulti ssocket ppc wstring
This script will compile all the Future Lab GPL C++ library modules.
# Compile all dbeng source modules # to Linux object files. # Jan/99, Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Changed compile type from # 'c' to 'cmulti' for # multiuser modules. # Sep/2001, Rick Smereka # # Added modules 'dbengses' and # 'dbengcat'. Nov/2001, # Rick Smereka # # Added module 'dbengrep'. # Jan/2002, Rick Smereka # # Added module 'dbfxp'. # Jul/2002, Rick Smereka # # Added module 'dbengsrt'. # Aug/2002, Rick Smereka # # Added module 'iexlib'. # Mar/2003, Rick Smereka # . include.generic # cd $DIRBASE/dbeng # c dbeng c dblocal cmulti dbcs c dbiocode c dbengcfg c dblocfg cmulti dbcscfg c dbengses c dbengcat cmulti dbengrep c dbfxp c dbengsrt c iexlib
This script will compile all the database modules.
# Compile and link a Linux program # with the C library. # Jan/99, Rick Smereka # # Removed the 'sys_log', 'ipcomm' # and 'ipconfig' object files. # Added environment vars. # Apr/2000, Rick Smereka # # Added files 'fxp.o' # and 'conv.o'. # Apr/2002, Rick Smereka # # Added file 'datime.o' # May/2002, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" \ -I$DIRBASE/include -o$DIRBASE/bin/$1 $1.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/fxp.o $DIRBASE/clib/conv.o $DIRBASE/clib/datime.o
This script will compile a C source file and link with the GPL library.
# Compile and link a C++ Linux program # with the C library. # Sep/2000, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" \ -I$DIRBASE/include -o$DIRBASE/bin/$1 $1.cpp \ $DIRBASE/clib/fio.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o
This script will compile a C++ source file and link with the C GPL library.
# Compile all socloc source modules # to Linux object files. # Jan/99, Rick Smereka # # Added 'sconnect', Feb/2000 # Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Changed compile type to # include multiuser and # IPC. Sep/2001, Rick Smereka # . include.generic # cd $DIRBASE/socloc cmulti slconfig cmulti sliocode cmulti sloc cmulti sconnect
This script will compile all socloc source modules.
# Compile all 'clib' and 'dbeng' modules # and make all applications. Feb/99, Rick Smereka # # Changed name of c/s database stress program. # Sep/99, Rick Smereka # # Added 'socloc' builds. Dec/99, Rick Smereka # # Added C++ compiles and builds. Sep/2000, # Rick Smereka # # Added builds of 'timesync' and 'datimec'. # Dec/2001, Rick Smereka # # Added build of 'dbgen' and 'dbgenm'. Jan/2002, # Rick Smereka # # Added build of 'datagen' and 'dos2unix'. # Dec/2002, Rick Smereka # # Added build of 'iex', 'iexm'. # Mar/2003, Rick Smereka # # Added build of 'rmtree'. # Jul/2004, Rick Smereka # # Added build of 'daymvdel'. # Feb/2006, Rick Smereka # # Added build of 'ialive' and # 'ialivem'. Aug/2006, Rick Smereka # # Added build of 'sched' and # 'schedm'. Sep/2006, Rick Smereka # echo '***compile clib primatives' cclib echo '***compile C++ clib classes' ppcclib echo '***compile dbeng primatives' cdbeng echo '***compile socloc primatives' csocloc echo '***make stand-alone database command line program' mkdb echo '***make c/s database command line program' mkdbm echo '***make new database server' mkdbsrv echo '***make stand-alone database stress program' mkdbstress echo '***make c/s database stress program' mkdbstresm echo '***make dbgen' mkdbgen echo '***make dbgenm' mkdbgenm echo '***make system log server' mksys_log echo '***make timesync server' mktimesync echo '***make datimec client' mkdatimec echo '***make socloc server' mksocloc echo '***make dumsocks server' mkdumsocks echo '***make dumsocks client' mkdumsockc echo '***make sockc client' mksockc echo '***make iresolve' mkiresolve echo '***make testcs' mktestcs echo '***make testss' mktestss echo '** make iex' mkiex echo '** make iexm' mkiexm echo '** make rmtree' mkrmtree echo '** make ialive' mkialive echo '** make ialivem' mkialivem echo '** make sched' mksched echo '** make schedm' mkschedm echo '** make daymvdel' mkdaymvdel echo '*** make fixed point stress program' cl fxpstres echo '** make datagen' cl datagen echo '** make dos2unix' cl dos2unix
This script will build all current Future Lab GPL software including GPL library, database modules, socloc modules, TCP servers, client programs and single user programs.
# Compile and link the 'db' # stand-alone database command line program. # Jan/99, Rick Smereka # # Added config modules. Mar/99, Rick Smereka # # Added 'socloc' API object files. Modified to # use environment vars. Removed 'ipconfig' # library file. Apr/2000, Rick Smereka # # Added new 'clib' object file 'ip.o' # Jul/2000, Rick Smereka # # Added variable IPC for 'socloc' and # system logger use. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added module 'dbengsrt.o'. # Aug/2002, Rick Smereka # # Added module 'dbengcat.c'. # Dec/2003, Rick Smereka # # Added modules 'appinit.o' and # 'logman.o'. Apr/2004, # Rick Smereka # # Changed module 'logman.o' to # 'logman.c', removed modules # 'sys_log.o', 'ip.o', and the # entire socloc interface. Removed # define 'IPC'. Nov/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" -I$DIRBASE/include -o$DIRBASE/bin/db db.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/logman.c $DIRBASE/dbeng/dbeng.c \ $DIRBASE/dbeng/dblocal.o $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbengcfg.c $DIRBASE/dbeng/dblocfg.c \ $DIRBASE/dbeng/dbengsrt.o $DIRBASE/dbeng/dbengcat.c
This script will build (compile and link) the db single user, database command line program.
# Compile and link the 'dbm' # c/s database command line. # Jan/99, Rick Smereka # # Added 'socloc' API object files # and modified to use environment # vars. Removed library file # 'ipconfig'. Apr/2000, Rick Smereka # # Added new 'clib' object file 'ip.o'. # Jul/2000, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added modules 'appinit.o' and 'logman.o'. # Apr/2004, Rick Smereka # # Changed module 'logman.o' to 'logman.c' and # added define of 'HASYSLOG'. Nov/2004, # Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/dbm db.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/slogcode.o $DIRBASE/clib/datime.o \ $DIRBASE/dbeng/dbcs.o $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbcscfg.o $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the dbm client/server database command line program.
# Compile and link the 'dbsrv' # TCP server program. # Jan/99, Rick Smereka # # Added 'socloc' API files and # removed the library file # 'ipconfig' as it is no longer # used. Modified to use # environment vars. # Apr/2000, Rick Smereka # # Added 'clib' object file # 'ip.o'. Jul/2000, # Rick Smereka # # Added object files 'dbengses' # and 'dbengcat'. Nov/2001, # Rick Smereka # # Added IPC variable. # Dec/2001, Rick Smereka # # Added object file 'dbengrep'. # Jan/2002, Rick Smereka # # Added 'clib' object files # 'appinit.o' and 'datime.o'. # May/2002, Rick Smereka # # Added object file 'dbengsrt.o'. # Sep/2002, Rick Smereka # # Added module 'logman.o'. # Apr/2004, Rick Smereka # # Changed module 'logman.o' to 'logman.c' # and added define 'HASYSLOG'. Nov/2004, # Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/dbsrv \ dbsrv.c $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcsrv.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/slogcode.o \ $DIRBASE/clib/appinit.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/logman.c \ $DIRBASE/dbeng/dbeng.c $DIRBASE/dbeng/dblocal.c \ $DIRBASE/dbeng/dbiocode.c $DIRBASE/dbeng/dbengcfg.c \ $DIRBASE/dbeng/dblocfg.c $DIRBASE/dbeng/dbengses.c \ $DIRBASE/dbeng/dbengcat.c $DIRBASE/dbeng/dbengrep.c \ $DIRBASE/dbeng/dbengsrt.o $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the dbsrv database server.
# Compile and link the 'dbstress' # stand-alone database stress program. # Jan/99, Rick Smereka # # Added 'socloc' API object files # and changed 'Bbuuzzb' file to use # source code instead of object code. # Modified to use environment vars. # Removed library file 'ipconfig'. # Apr/2000, Rick Smereka # # Added new 'clib' object file 'ip.o'. # Jul/2000, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added object file 'dbengsrt.o'. # Sep/2002, Rick Smereka # # Added object file 'misc.o'. # Jun/2003, Rick Smereka # # Added module 'dbengcat.c'. # Feb/2004, Rick Smereka # # Added modules 'appinit.o' and # 'logman.c'. May/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $IPC -I$DIRBASE/include -o$DIRBASE/bin/dbstress \ dbstress.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/misc.o \ $DIRBASE/clib/appinit.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/slogcode.o $DIRBASE/dbeng/dbeng.c \ $DIRBASE/dbeng/dblocal.c $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbengcfg.c $DIRBASE/dbeng/dblocfg.c \ $DIRBASE/dbeng/dbengsrt.o $DIRBASE/dbeng/dbengcat.c \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the dbstress single user database stress program.
# Compile and link the 'dbstresm' # c/s database stress program. # Jan/99, Rick Smereka # # Changed name to 'dbstresm'. # Sep/99, Rick Smereka # # Added 'socloc' API object files # and changed 'Bbuuzzb' files to # use source instead of object # code. Modified to use environment # vars. Removed library file 'ipconfig'. # Apr/2000, Rick Smereka # # Added new 'clib' object file 'ip.o'. # Jul/2000, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added object file 'misc.o'. # Jun/2003, Rick Smereka # # Added modules 'appinit.o' and # 'logman.c'. May/2004, Rick Smereka # # Added define 'HASYSLOG'. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/dbstresm dbstress.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/misc.o \ $DIRBASE/clib/slogcode.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/logman.c \ $DIRBASE/dbeng/dbcs.c $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbcscfg.c $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the dbstresm client/server database stress program.
# Compile and link the 'dbgen' # stand-alone database program. # Jan/2002, Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added module 'dbengcat.c'. # Feb/2004, Rick Smereka # # Added modules 'appinit.o' and 'logman.o'. # Apr/2004, Rick Smereka # # Changed module 'logman.o' to # 'logman.c', removed modules # 'sys_log.o', 'ip.o', and the # entire socloc interface. Removed # define 'IPC'. Nov/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" -I$DIRBASE/include -o$DIRBASE/bin/dbgen dbgen.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/logman.c $DIRBASE/dbeng/dbeng.c \ $DIRBASE/dbeng/dblocal.o $DIRBASE/dbeng/dbiocode.o \ $DIRBASE/dbeng/dbengcfg.o $DIRBASE/dbeng/dblocfg.o \ $DIRBASE/dbeng/dbengsrt.c $DIRBASE/dbeng/dbengcat.c
This script will build (compile and link) the dbgen single user random database generator application.
# Compile and link the 'dbgenm' # c/s database program. # Jan/2002, Rick Smereka # # Added 'clib' object file 'datime.o' # May/2002, Rick Smereka # # Added modules 'appinit.o' and 'logman.o'. # Apr/2004, Rick Smereka # # Changed module 'logman.o' to 'logman.c' and # added define 'HASYSLOG'. Nov/2004, # Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/dbgenm dbgen.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/slogcode.o $DIRBASE/clib/logman.c \ $DIRBASE/dbeng/dbcs.c $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbcscfg.c $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build the dbgenm client/server random database generator application.
# Compile and link the 'dumsockc' # client program for Linux. # Feb/2000, Rick Smereka # # Modified to use environment # vars. Apr/2000 # # Added new 'clib' object file 'ip.o'. # Jul/2000, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added modules 'logman.o', 'appinit.o' # 'sys_log.o' and 'slogcode.o'. May/2004, Rick Smereka # # Changed 'logman.o' to 'logman.c' and added # define 'HASYSLOG'. Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/dumsockc dumsockc.c $DIRBASE/clib/fio.o \ $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipclient.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/appinit.o $DIRBASE/clib/sys_log.o \ $DIRBASE/clib/slogcode.o \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the dumsockc client application.
# Compile and link the 'dumsocks' # TCP server program for Linux. # Dec/99, Rick Smereka # # Added 'sconnect', Feb/2000 # Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Added 'clib' object file # 'ip.o'. Jul/2000, # Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' files 'appinit.o' # and 'datime.o'. May/2002, # Rick Smereka # # Added modules 'sys_log.o', # 'slogcode.o' and 'logman.c'. # Added define 'HASYSLOG'. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/dumsocks \ dumsocks.c $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcsrv.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/appinit.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/slogcode.o \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the dumsocks TCP server application.
# Build the 'iresolve' program for # Linux. Apr/2000, Rick Smereka # # Added new 'clib' object file 'ip.o'. # Jul/2000, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC -I$DIRBASE/include \ -o$DIRBASE/bin/iresolve iresolve.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/parse.o \ $DIRBASE/clib/logger.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/datime.o
This script will build (compile and link) the iresolve application.
# Compile and link the 'sockc' # client program for Linux. # Feb/2000, Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Added new 'clib' object file 'ip.o' # Jul/2000, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added modules 'logman.c', 'sys_log.o' # and 'slogcode.o'. Added define 'HASYSLOG'. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/sockc sockc.c $DIRBASE/clib/fio.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ip.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/ipclient.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/sys_log.o \ $DIRBASE/clib/slogcode.o \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the sockc client application.
# Compile and link the 'socloc' # TCP server program. # Dec/99, Rick Smereka # # Added 'sconnect', Feb/2000 # Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Added 'clib' object file # 'ip.o'. Jul/2000, # Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object files # 'appinit.o' and 'datime.o'. # May/2002, Rick Smereka # # Removed 'sloc' object file # and added 'slocsrv' object file. # May/2003, Rick Smereka # # Added module 'logman.c' which is not # directly used but needed for linking. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC -I$DIRBASE/include -o$DIRBASE/bin/socloc \ socloc.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcsrv.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/logman.c \ $DIRBASE/socloc/slocsrv.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the socloc TCP server application.
# Compile and link the 'sys_log' # TCP server program for Linux. # Jan/99, Rick Smereka # # Modified to use environment # vars. Apr/2000, Rick Smereka # # Added 'clib' object file # 'ip.o'. Jul/2000, # Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # # Added 'clib' object files # 'appinit.o' and 'datime.o' # May/2002, Rick Smereka # # Added module 'logman.c' which is not # directly used but needed for linking. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC -I$DIRBASE/include -o$DIRBASE/bin/sys_log \ sys_log.c $DIRBASE/clib/fio.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcsrv.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/slogcode.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/datime.o $DIRBASE/clib/ip.o \ $DIRBASE/socloc/sloc.o $DIRBASE/clib/appinit.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the sys_log TCP system log server.
# Compile and link the 'testcs' C++ # client socket application. # Sep/2000, Rick Smereka # # Changed to compile/link for multiuser. # Nov/2001, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC -I$DIRBASE/include -o$DIRBASE/bin/testcs \ testcs.cpp $DIRBASE/clib/csocket.o $LIBASE/libstdc++.a
This script will build (compile and link) the testcs C++ socket client application.
# Compile and link the 'testss' C++ # server socket application. # Sep/2000, Rick Smereka # # Changed to compile/link for multiuser. # Nov/2001, Rick Smereka # # Added IPC variable. Dec/2001, # Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC -I$DIRBASE/include -o$DIRBASE/bin/testss \ testss.cpp $DIRBASE/clib/ssocket.o $LIBASE/libstdc++.a
This script will build (compile and link) the testss C++ server application.
# Compile and link the 'timesync' # TCP server program for Linux. # Dec/2001, Rick Smereka # # Added 'clib' object files # 'appinit.o' and 'datime.o'. # May/2002, Rick Smereka # # Added modules 'logman.c' and 'sys_log.o'. # Added define 'HASYSLOG'. Dec/2004, # Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/timesync timesync.c $DIRBASE/clib/tlogcode.o \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcsrv.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/appinit.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/sys_log.o \ $DIRBASE/clib/slogcode.o $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the timesync server application.
# Make the 'datimec' client # Dec/2001, Rick Smereka # # Added 'clib' object file 'datime.o'. # May/2002, Rick Smereka # # Added object files 'sys_log.o', # 'slogcode.o' and 'logman.o'. Mar/2004, Rick Smereka # # Added define 'HASYSLOG'. Nov/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/datimec datimec.c \ $DIRBASE/clib/timesapi.o $DIRBASE/clib/tlogcode.o $DIRBASE/clib/fio.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ip.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/ipclient.o $DIRBASE/clib/ipcomm.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/slogcode.o \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the datimec client application.
# Compile and link the 'iex' # single user database program. # Mar/2003, Rick Smereka # # Added module 'dbengcat.c'. # Feb/2004, Rick Smereka # # Removed modules 'sys_log.o', # 'slogcode.o', 'ip.o', 'sloc.o', # 'slconfig.o', 'sliocode.o' and # 'sconnect.o'. Added modules 'logman.c', # and 'appinit.o'. Removed define 'IPC'. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" -I$DIRBASE/include -o../bin/iex iex.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/datime.o $DIRBASE/clib/wlib.o \ $DIRBASE/clib/fxp.o \ $DIRBASE/dbeng/dbeng.c $DIRBASE/dbeng/dbfxp.o \ $DIRBASE/dbeng/dblocal.c $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbengcfg.c $DIRBASE/dbeng/dblocfg.c \ $DIRBASE/dbeng/dbengsrt.c $DIRBASE/dbeng/iexlib.o \ $DIRBASE/dbeng/dbengcat.c
This script will build (compile and link) the iex single user, database import application.
# Compile and link the 'iexm' # client/server database program. # Mar/2003, Rick Smereka # # Added modules 'logman.c' and # 'appinit.o'. Added define # 'HASYSLOG'. Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $IPC $MULTI $HASYSLOG -I$DIRBASE/include \ -o../bin/iexm iex.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/sys_log.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/wlib.o \ $DIRBASE/clib/slogcode.o $DIRBASE/clib/fxp.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/appinit.o \ $DIRBASE/dbeng/dbcs.o $DIRBASE/dbeng/dbfxp.o \ $DIRBASE/dbeng/dbcscfg.o $DIRBASE/dbeng/dbiocode.o \ $DIRBASE/dbeng/iexlib.o \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the iexm client/server database import client application.
# Compile only (using GNU) # with IPC and HAS_SYSLOG # Aug/2004, Rick Smereka # . include.generic . include.linux # $COMP $DEFS="$PLAT" $IPC $HASYSLOG -I$DIRBASE/include -c $1.c
This script will compile the supplied source file with the IPC and HASYSLOG defines.
# Compile and link the 'rmtree' program. # Jul/2004,Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" -I$DIRBASE/include -o$DIRBASE/bin/rmtree rmtree.c \ $DIRBASE/clib/fio.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/dscan.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/armtree.o
This script will build (compile and link) the rmtree application.
# Compile and link the 'daymvdel' program. # Dec/2005, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/daymvdel daymvdel.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/armtree.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/dscan.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/ip.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/slogcode.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/path.o \ $DIRBASE/socloc/sloc.o $DIRBASE/socloc/slconfig.o \ $DIRBASE/socloc/sliocode.o $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the daymvdel application.
# Compile and link the 'ialive' # program with single-user database support. # Aug/2006, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" -I$DIRBASE/include -o$DIRBASE/bin/ialive ialive.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/logman.c $DIRBASE/dbeng/dbeng.c \ $DIRBASE/dbeng/dblocal.o $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbengcfg.c $DIRBASE/dbeng/dblocfg.c \ $DIRBASE/dbeng/dbengsrt.o $DIRBASE/dbeng/dbengcat.c
This script will build (compile and link) the ialive application.
# Compile and link the 'ialivem' program # with c/s database support # Aug/2006, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/ialivem ialive.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/logman.c \ $DIRBASE/clib/slogcode.o $DIRBASE/clib/datime.o \ $DIRBASE/dbeng/dbcs.o $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbcscfg.o $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and link) the ialivem application.
# Compile and link the 'sched' # single user database program. # May/2004, Rick Smereka # # Removed modules 'ip.o', 'ipcomm.o', # 'sys_log.o', 'slogcode.o', 'sloc.o', # 'slconfig.o', 'sliocode.o' and # 'sconnect.o'. Changed 'logman.o' to # 'logman.c'. Removed define 'IPC'. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" -I$DIRBASE/include -o$DIRBASE/bin/sched sched.c \ $DIRBASE/clib/fio.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/datime.o $DIRBASE/clib/appinit.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/fxp.o \ $DIRBASE/dbeng/dbeng.c \ $DIRBASE/dbeng/dblocal.c $DIRBASE/dbeng/dbiocode.c \ $DIRBASE/dbeng/dbengcfg.c $DIRBASE/dbeng/dblocfg.c \ $DIRBASE/dbeng/dbengsrt.c $DIRBASE/dbeng/dbengcat.c \ $DIRBASE/dbeng/dbfxp.o
This script will build (compile and line) the sched application.
# Compile and link the 'schedm' # c/s database program. # Jan/2004, Rick Smereka # # Added define 'HASYSLOG'. Changed # module 'logman.o' to 'logman.c'. # Dec/2004, Rick Smereka # . include.generic . include.linux # cd $DIRBASE/source $COMP $DEFS="$PLAT" $MULTI $IPC $HASYSLOG -I$DIRBASE/include \ -o$DIRBASE/bin/schedm sched.c \ $DIRBASE/clib/fio.o $DIRBASE/clib/ip.o \ $DIRBASE/clib/parse.o $DIRBASE/clib/logger.o \ $DIRBASE/clib/ipcomm.o $DIRBASE/clib/datime.o \ $DIRBASE/clib/sys_log.o $DIRBASE/clib/fxp.o \ $DIRBASE/clib/logman.c $DIRBASE/clib/appinit.o \ $DIRBASE/clib/slogcode.o $DIRBASE/dbeng/dbfxp.o \ $DIRBASE/dbeng/dbcs.o $DIRBASE/dbeng/dbiocode.o \ $DIRBASE/dbeng/dbcscfg.o $DIRBASE/socloc/sloc.o \ $DIRBASE/socloc/slconfig.o $DIRBASE/socloc/sliocode.o \ $DIRBASE/socloc/sconnect.o
This script will build (compile and line) the schedm application.