Changeset 73 in libcf for trunk/test/makefile


Ignore:
Timestamp:
04/15/13 14:43:13 (11 years ago)
Author:
cheese
Message:

#1 fix makefile for multi-platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/makefile

    r38 r73  
    22# platform
    33#----------------------------------------------------------
    4 PLATFORM    = 64
    5 DEBUG       = true
    6 
    7 #----------------------------------------------------------
    8 # load system info
    9 #----------------------------------------------------------
    10 ifeq ($(PLATFORM), 64)
    11     PLATFORM    = -m64
    12 else
    13     PLATFORM    = -m32
    14 endif
    15 
    16 UNAME_A     := $(shell uname -a)
    17 EXT_EXECUTE = ex
    18 EXT_SHARED  = so
    19 EXT_STATIC  = a
    20 
    21 ifeq ($(findstring CYGWIN,$(UNAME_A)),CYGWIN)
    22     # forced
    23     PLATFORM    = -m32
    24     EXT_EXECUTE = exe
    25     EXT_SHARED  = dll
    26     EXT_STATIC  = lib
    27 endif
    28 
    29 ifeq ($(DEBUG), true)
    30     DEFS = -D_DEBUG
    31     FLAG = -g
    32 else
    33     DEFS =
    34     FLAG =
    35 endif
     4include ../makeinclude/userdefine.mk
     5include ../makeinclude/platform.mk
    366
    377#----------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.