Changeset 54 for trunk/Makefile


Ignore:
Timestamp:
04/05/09 03:24:04 (14 years ago)
Author:
smurzch2
Message:

Preliminary support for Mac OS X.

Now, it compile, but it will not work with the serial port.
Thanks rorothetroll for this patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r45 r54  
    1     SHELL   = /bin/sh
     1SHELL   = /bin/sh
    22
    33VER = $(subst ",,$(filter-out \#define CS_VERSION,$(shell grep CS_VERSION globals.h)))
     
    99win:    cross-i386-pc-cygwin
    1010cygwin: i386-pc-cygwin
     11macosx: macosx-native
    1112
    1213std:    linux \
     14   macosx \
    1315    cross-i386-pc-cygwin \
    1416    cross-powerpc-tuxbox-linux \
     
    6870######################################################################
    6971#
     72#       MacOSX native
     73#
     74######################################################################
     75macosx-native:
     76    @-$(MAKE) --no-print-directory \
     77        -f Maketype TYP=$(subst cross-,,$@) \
     78        OS_LIBS="-lcrypto" \
     79        OS_CULI="-lncurses" \
     80        OS_PTLI="-lpthread" \
     81        DS_OPTS="-O2 -DOS_MACOSX" \
     82        DS_CFLAGS="-c" \
     83        DS_LDFLAGS="" \
     84        DS_ARFLAGS="-rvsl" \
     85        DS_CC=gcc \
     86        DS_AR=ar \
     87        DS_LD=ld \
     88        DS_RL=ranlib \
     89        DS_ST=strip
     90
     91
     92######################################################################
     93#
    7094#   FreeBSD native
    7195#
Note: See TracChangeset for help on using the changeset viewer.