Changeset 911 in Sophya


Ignore:
Timestamp:
Apr 13, 2000, 5:56:03 PM (25 years ago)
Author:
ansari
Message:

Nouveaux flags (SOPHYA_DEBUG,_SGI64) et correction mkmfxxx - Reza 13/4/2000

Location:
trunk/SophyaLib/Mgr
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Mgr/Makefile.h

    r740 r911  
    177177CPPFLAGS     :=  -I${INC} $(EXTINCPI) -D${MACHEROSD} $(MODULECPPFLAGS)
    178178
     179#  Si la variable d'environnement SOPHYA_DEBUG est definie : Activation des
     180#  compilations conditionnelles pour le debug/bound-checking/... ds le code
     181ifdef SOPHYA_DEBUG
     182  CPPFLAGS   := $(CPPFLAGS) -DSOPHYA_DEBUG
     183endif
     184
    179185# Les options selon les divers compilateurs
    180186# GNU
     
    329335ifeq ($(CXX), KCC)
    330336  CXXFLAGS     :=  --exceptions --rtti  --auto_instantiation --one_instantiation_per_object -D__KCC__
     337  CXXFLAGS  := $(CXXFLAGS) $(OPTFLAG) $(DBGFLAG) $(MYCFLAGS)
     338  CFLAGS := $(OPTFLAG) $(DBGFLAG) $(MYCFLAGS)
    331339# Flag --one_instantiation_per_object mis - Reza 02/03/99
    332340# -DCOMPILER_EXCEPTIONS -D__ANSI_TEMPLATES__  definis ds defs.h
    333341endif
    334342
     343# --- Systeme IRIX64 de Silixon Graphics (SGI)
     344ifeq ($(MACHEROS), IRIX64)
    335345# --- Compilateur natif CC de SGI
    336 ifeq ($(MACHEROS), IRIX64)
    337346  ifeq ($(CXX), CC)
    338     CXXFLAGS     :=  -prelink -D__SGICC__
     347    CFLAGS  := $(OPTFLAG) $(DBGFLAG) $(MYCFLAGS)
     348    CXXFLAGS := -prelink -D__SGICC__ $(OPTFLAG) $(DBGFLAG) $(MYCFLAGS)
    339349    LINK.cc := CC $(CPPFLAGS) -D__SGICC__ $(DBGFLAG) $(OPTFLAG)
     350#  sur SGI, les libs/executables ont deux formats 32 et 64 bits (trois avec o32)
     351#  -n32 Generates a (new) 32-bit object default to -mips3 if -mips4 has not been specified
     352#  -64 Generates a 64-bit object - defaults to -mips4 if -mips3 has not been specified
     353#  La variable d'environnement SOPHYA_SGI64 controle cette option
     354    ifdef SOPHYA_SGI64
     355      CFLAGS  := -64 $(OPTFLAG) $(DBGFLAG) $(MYCFLAGS)
     356      CXXFLAGS := -64 -prelink -D__SGICC__ $(OPTFLAG) $(DBGFLAG) $(MYCFLAGS)
     357      LINK.cc := CC -64 $(CPPFLAGS) -D__SGICC__ $(DBGFLAG) $(OPTFLAG)
     358    endif
    340359  endif
    341360endif
  • trunk/SophyaLib/Mgr/mkmfPI

    r868 r911  
    11#!/bin/csh
    2 # $Id: mkmfPI,v 1.4 2000-04-10 17:37:51 ansari Exp $
     2# $Id: mkmfPI,v 1.5 2000-04-13 15:56:03 ansari Exp $
    33
    44set makefname = 'GNUmakefile'
     
    7272set inc = $DPCDEVREP/Include
    7373set incext = $EXTLIBDIR/Include
     74set nomsys = `uname`
    7475
    7576foreach f ( $ccfiles )
    76   gcc -MM -I$inc -I$incext $f  \
     77  gcc -MM -D$nomsys -I$inc -I$incext $f  \
    7778       | sed -e 's/.*\.o/\$(OBJ)&/'  \
    7879       | sed -e 's?'$inc/'?$(INC)?g'  \
  • trunk/SophyaLib/Mgr/mkmflib

    r868 r911  
    11#!/bin/csh
    2 # $Id: mkmflib,v 1.7 2000-04-10 17:37:51 ansari Exp $
     2# $Id: mkmflib,v 1.8 2000-04-13 15:56:03 ansari Exp $
    33
    44cd ../$1
     
    6969# set incxx = $inc/CxxInc
    7070set incext = $EXTLIBDIR/Include
     71set nomsys = `uname`
    7172
    7273foreach f ( *.cc )
    7374  grep -q '^'$f'$' exclude && continue
    74   gcc -MM -I$inc -I$incext $f  \
     75  gcc -MM -D$nomsys -I$inc -I$incext $f  \
    7576       | sed -e 's/.*\.o/\$(OBJ)&/'  \
    7677       | sed -e 's?'$inc/'?$(INC)?g'  \
     
    8081foreach f ( *.c )
    8182  grep -q '^'$f'$' exclude && continue
    82   gcc -MM -I$inc -I$incext $f  \
     83  gcc -MM -D$nomsys -I$inc -I$incext $f  \
    8384       | sed -e 's/.*\.o/\$(OBJ)&/'  \
    8485       | sed -e 's?'$inc/'?$(INC)?g' \
  • trunk/SophyaLib/Mgr/mkmfprog

    r868 r911  
    11#!/bin/csh
    2 # $Id: mkmfprog,v 1.3 2000-04-10 17:37:51 ansari Exp $
     2# $Id: mkmfprog,v 1.4 2000-04-13 15:56:03 ansari Exp $
    33
    44# $1 : nom du repertoire
     
    8080set inc = $DPCDEVREP/Include
    8181set incext = $EXTLIBDIR/Include
    82 
     82set nomsys = `uname`
    8383
    8484foreach f ( *.cc )
    85   gcc -MM -I$inc -I$incext $f  \
     85  gcc -MM -D$nomsys -I$inc -I$incext $f  \
    8686       | grep -v $incext \
    8787       | sed -e 's/.*\.o/\$(OBJ)&/' \
Note: See TracChangeset for help on using the changeset viewer.