#!/bin/sh # Build and install options for qlibs # #******************************************************************************** # default compiler flags - usually this shouldn't be changed CFLAGS='-O2 -Iinclude -fPIC -fwrapv -Wall' # under OmniOS the binaries are build as 32 bit version; except enabling this: #CFLAGS='-O2 -Iinclude -Wall -fPIC -m64' # You can check the ELFCLASS while calling eg.: 'file open.o'. #******************************************************************************** # destination folder(s) (install options of qlibs) # # Define a destination where libs and/or header files will be installed into. If # a var is empty, then nothing will be installed (copied). The term 'libs' here # means all '*.a' files and additional all files given by $OFILES (see below). # Example 1: # LIBDIR=.. - copy all libs into the upper folder # HDRDIR= - don't copy header files ('*.h') # Example 2: # LIBDIR=/usr/local/lib - copy all libs into /usr/local/lib # HDRDIR=$LIBDIR/include - copy all header files into /usr/local/lib/include # LIBDIR=.. HDRDIR= #******************************************************************************** # Additional libs (object files, delimited by space, enclosed in "'") OFILES='base64.o byte.o fmt.o prot.o pathexec.o readclose.o scan.o constmap.o'