Changeset 81

Show
Ignore:
Timestamp:
03/24/07 12:13:46 (20 months ago)
Author:
pguyot
Message:

New switch for configure to configure contrib packages.
New contrib package: inwt (interactive NEWT/0).

Location:
NEWT0/trunk
Files:
5 added
3 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/Makefile.in

    r78 r81  
    6565                $(ext)/protoREGEX 
    6666 
    67 CONTRIBLIBS   = $(contrib)/NewtObjC \ 
    68         $(contrib)/NativeCalls 
     67CONTRIBLIBS   = $(contrib)/inwt \ 
     68                $(contrib)/NewtObjC \ 
     69                $(contrib)/NativeCalls 
    6970 
    7071OBJS          = $(MAINOBJ) $(UTILSOBJS) $(PARSEROBJS) $(COREOBJS) 
     
    199200### CLEAN 
    200201 
     202clean_contrib:: 
     203    @for subdir in $(CONTRIBLIBS); do \ 
     204        (cd $$subdir && $(MAKE) clean) || exit 1; \ 
     205    done 
     206 
    201207clean: 
    202208    rm -rf build/* 
     209    test "x@MAKE_CONTRIB@" = x || $(MAKE) clean_contrib 
     210 
  • NEWT0/trunk/configure

    r79 r81  
    852852  --enable-compat         enable compatibility with the Newton, and break many 
    853853                          features on the desktop 
     854  --enable-contrib        include contrib packages (inwt, NativeCalls, and 
     855                          NewtObjC) 
    854856 
    855857Optional Packages: 
     
    48844886    LIBNEWT_LDSHARED='$(CC) -dynamic -bundle -undefined suppress -flat_namespace' 
    48854887    DLEXT='dylib' 
    4886     MAKE_CONTRIB='contrib' 
    48874888    ;; 
    48884889  cygwin*|mingw*) 
     
    49724973fi; 
    49734974 
     4975# Check whether --enable-contrib or --disable-contrib was given. 
     4976if test "${enable_contrib+set}" = set; then 
     4977  enableval="$enable_contrib" 
     4978  MAKE_CONTRIB='contrib' 
     4979fi; 
     4980 
    49744981test "x$compat" = xno && cat >>confdefs.h <<\_ACEOF 
    49754982#define __NAMED_MAGIC_POINTER__ 1 
     
    50065013 
    50075014 
    5008                                                   ac_config_files="$ac_config_files Makefile ext/protoFILE/Makefile ext/protoREGEX/Makefile contrib/NativeCalls/Makefile contrib/NewtObjC/Makefile" 
     5015                                                            ac_config_files="$ac_config_files Makefile ext/protoFILE/Makefile ext/protoREGEX/Makefile contrib/inwt/Makefile contrib/NativeCalls/Makefile contrib/NewtObjC/Makefile" 
    50095016 
    50105017cat >confcache <<\_ACEOF 
     
    55355542  "ext/protoFILE/Makefile" ) CONFIG_FILES="$CONFIG_FILES ext/protoFILE/Makefile" ;; 
    55365543  "ext/protoREGEX/Makefile" ) CONFIG_FILES="$CONFIG_FILES ext/protoREGEX/Makefile" ;; 
     5544  "contrib/inwt/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/inwt/Makefile" ;; 
    55375545  "contrib/NativeCalls/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/NativeCalls/Makefile" ;; 
    55385546  "contrib/NewtObjC/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/NewtObjC/Makefile" ;; 
  • NEWT0/trunk/configure.in

    r79 r81  
    104104    LIBNEWT_LDSHARED='$(CC) -dynamic -bundle -undefined suppress -flat_namespace' 
    105105    DLEXT='dylib' 
    106     MAKE_CONTRIB='contrib' 
    107106    ;; 
    108107  cygwin*|mingw*) 
     
    174173        [compat='yes'], 
    175174        [compat='no']) 
     175 
     176AC_ARG_ENABLE(contrib, 
     177    AS_HELP_STRING([--enable-contrib], 
     178        [include contrib packages (inwt, NativeCalls, and NewtObjC)]), 
     179        [MAKE_CONTRIB='contrib']) 
    176180 
    177181test "x$compat" = xno && AC_DEFINE(__NAMED_MAGIC_POINTER__) 
     
    200204                 ext/protoFILE/Makefile 
    201205                 ext/protoREGEX/Makefile 
     206                 contrib/inwt/Makefile 
     207                 contrib/inwt/inwt 
    202208                 contrib/NativeCalls/Makefile 
    203209                 contrib/NewtObjC/Makefile])