Changeset 560 for CMT/HEAD


Ignore:
Timestamp:
Sep 7, 2010, 1:19:15 PM (14 years ago)
Author:
rybkin
Message:

See C.L. 443

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r559 r560  
     12010-09-07    <rybkin@lal.in2p3.fr> 443
     2
     3        * mgr/Unix.make: Derive mode/architecture from CMTBIN or from command line
     4        switch M32/M64 and specify it explicitly for g++
     5        * mgr/GNUmakefile: Do not recreate cmt->cmt.exe symlink if exists
     6       
    172010-09-04    <rybkin@lal.in2p3.fr> 442
    28
  • CMT/HEAD/mgr/GNUmakefile

    r559 r560  
    2626ifneq ($(wildcard $(cmtexe)),)
    2727all :: cmt
    28         $(silent)\cd $(bin) && \rm -f cmt && ln -s cmt.exe cmt
     28        $(silent)\cd $(bin) && { [ -L cmt ] || [ $(notdir $(cmtexe)) = cmt ] || \ln -s $(notdir $(cmtexe)) cmt; }
     29#       $(silent)\cd $(bin) && \rm -f cmt && ln -s cmt.exe cmt
    2930        $(echo) all ok
    3031else
     
    3940all :: cmt post_build done
    4041endif
    41         $(silent)\cd $(bin) && \rm -f cmt && ln -s cmt.exe cmt
     42        $(silent)\cd $(bin) && { [ -L cmt ] || [ $(notdir $(cmtexe)) = cmt ] || \ln -s $(notdir $(cmtexe)) cmt; }
     43#       $(silent)\cd $(bin) && \rm -f cmt && ln -s cmt.exe cmt
    4244        $(echo) all ok
    4345#@cd $(bin); /bin/rm -f cmt; cp cmt.exe cmt
  • CMT/HEAD/mgr/Unix.make

    r559 r560  
    99ifeq ($(STATIC),1)
    1010    cpplinkflags   += -static
    11 endif
    12 
    13 ifeq ($(M32),1)
    14     TARGET_ARCH = -m32
    15 endif
    16 ifeq ($(M64),1)
    17     TARGET_ARCH = -m64
    1811endif
    1912
     
    8174endif
    8275
     76#
     77# Derive mode/architecture from CMTBIN
     78#
     79ifneq (,$(findstring i386,$(CMTBIN)))
     80_mode = 32
     81else ifneq (,$(findstring i486,$(CMTBIN)))
     82_mode = 32
     83else ifneq (,$(findstring i586,$(CMTBIN)))
     84_mode = 32
     85else ifneq (,$(findstring i686,$(CMTBIN)))
     86_mode = 32
     87else ifneq (,$(findstring x86_64,$(CMTBIN)))
     88_mode = 64
     89endif
     90
     91#
     92# Use mode/architecture specified on command line explicitly
     93#
     94ifeq ($(M32),1)
     95_mode = 32
     96endif
     97ifeq ($(M64),1)
     98_mode = 64
     99endif
     100
     101#
     102# Specify mode explicitly for g++
     103# (on Mac OS X 10.6, uname -m may show i386
     104# while g++ builds for x86_64 by default)
     105#
     106ifneq (,$(findstring g++,$(cpp)))
     107ifeq ($(_mode),32)
     108    TARGET_ARCH = -m32
     109else ifeq ($(_mode),64)
     110    TARGET_ARCH = -m64
     111endif
     112endif
    83113
    84114src       = ../src/
Note: See TracChangeset for help on using the changeset viewer.