Previous Next
Specifying platform-specific Make information

SNiFF+ comes with a set of pre-configured Platform Makefiles. The correct Platform Makefile for your platform is automatically included by the General Makefile.
Your Platform Makefile contains macro definitions for the compilers, linkers, and archivers used by your Make utility during builds.
As an example, here are the C, C++ and Fortran macro definitions with their default values specified in the Platform Makefile for Solaris 2.x:
Language Macro definition Description
C/C++
CXX = gcc
CXXFLAGS = -g
OVERALL_OPTION_CXX = -c

LINK = $(CXX)

LD = ld -r
LDFLAGS =
AR = ar
ARFLAGS = rv

YACC = bison
YACCFLAGS = -yd

LEX = flex
LEXFLAGS =

C/C++ compiler
specifications

program for linking an executable

programs for linking relocatable object files

yacc compiler

lexical analysis generator

Fortran
FC = f77
FFLAGS =
OVERALL_OPTION_FC = -c
Fortran compiler
specifications

Procedures for specifying platform-specific information

  1. Determine your Platform Makefile using the following table:
    (All Platform Makefiles are located in your
    $SNIFF_DIR/make_support directory.)

    Platform Platform Makefile
    AIX 3.2 or newer
    rs6000-ibm-aix3.2.mk
    AIX 4.2 or newer
    rs6000-ibm-aix4.2.mk
    DEC-Unix 3.2C
    alpha-dec-osf3.0.mk
    HP-UX 9.x
    pa_risc-hp-hpux9.0.mk
    HP-UX 10.x or newer
    pa_risc-hp-hpux10.mk
    Irix 5.3
    mips-sgi-irix5.3.mk
    Linux 2.x (SuSE 6.x or newer, RedHat 5.x, Debian 2.x)
    i586-linux-glibc.mk
    Linux 2.x (SuSE 5.3 or older, RedHat 4.x, Debian 1.x)
    i586-linux-libc.mk
    SCO 3.2
    i386-unknown-sco3.2v4.2.mk
    Sinix 5.42
    mips-sni-sinix5.42.mk
    Solaris 2.x
    sparc-sun-solaris2.3.mk
    SunOS 4.1.3
    sparc-sun-solaris4.1.mk
    Unixware 2.1
    i386-unknown-sysv4.2MP.mk
    Unixware 7.x
    i386-unknown-unixware7.mk
    Windows NT 4.0
    i386-unknown-winnt4.mk
    Windows 95/98
    i386-unknown-win95.mk

  2. Make a backup of your Platform Makefile.
  3. Edit the Platform Makefile by changing the values of the macro definitions for your language (default values for C/C++/Fortran on Solaris 2.x given on Specifying platform-specific Make information).
  4. Save the Platform Makefile.
    The new values will be used the next time you build targets in SNiFF+.