Changeset 134 in libcf


Ignore:
Timestamp:
07/11/13 17:59:38 (11 years ago)
Author:
cheese
Message:

#1 support mac osx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makeinclude/platform.mk

    r132 r134  
    8484endif
    8585
     86ifeq ($(UNAME_S), Darwin)
     87    ifeq ($(VER), 32)
     88        OS_DEF = mac
     89    else
     90        OS_DEF = mac_x86_64
     91    endif
     92endif
     93
    8694ifeq ($(filter $(UNAME_A),Cygwin),Cygwin)
    8795    # forced
     
    158166CDEFS           = $(DEFS) -D_LINUX -D_REENTRANT
    159167CFLAGS          = $(FLAG) -m$(VER) -Wall -Wconversion -Wpointer-arith -Wcast-align -fPIC
    160 LDFLAGS         = -m$(VER) -Wl,-Bsymbolic
     168LDFLAGS         = -m$(VER)
    161169SHARED_FLAGS    = $(LDFLAGS) -shared
    162170ARFLAGS         = rc
    163171LIBS            = -lpthread
    164172endif
     173
     174ifeq ($(OS_DEF), $(filter $(OS_DEF),mac mac_x86_64))
     175CC              = gcc
     176LD              = gcc
     177AR              = ar
     178CDEFS           = $(DEFS) -D_MAC -D_REENTRANT
     179CFLAGS          = $(FLAG) -m$(VER) -Wall -Wconversion -Wpointer-arith -Wcast-align -fPIC
     180LDFLAGS         = -m$(VER)
     181SHARED_FLAGS    = $(LDFLAGS) -shared
     182ARFLAGS         = rc
     183LIBS            = -lpthread
     184endif
Note: See TracChangeset for help on using the changeset viewer.