Changeset 8591


Ignore:
Timestamp:
02/16/05 19:47:14 (16 years ago)
Author:
piso
Message:

SunOS support (Manpreet Singh).

Location:
trunk/j/src/org/armedbear
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Platform.java

    r7061 r8591  
    22 * Platform.java
    33 *
    4  * Copyright (C) 1998-2004 Peter Graves
    5  * $Id: Platform.java,v 1.5 2004-06-09 23:44:24 piso Exp $
     4 * Copyright (C) 1998-2005 Peter Graves
     5 * $Id: Platform.java,v 1.6 2005-02-16 19:45:01 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    2626    private static final String osName = System.getProperty("os.name");
    2727    private static final boolean isPlatformLinux = osName.startsWith("Linux");
     28    private static final boolean isPlatformSunOS = osName.startsWith("SunOS");
    2829    private static final boolean isPlatformUnix =
    2930        isPlatformLinux || osName.startsWith("Mac OS X") ||
    30         osName.startsWith("Solaris") || osName.startsWith("SunOS") ||
     31        osName.startsWith("Solaris") || isPlatformSunOS ||
    3132        osName.startsWith("AIX");
    3233    private static final boolean isPlatformWindows =
     
    4243    {
    4344        return isPlatformLinux;
     45    }
     46
     47    public static final boolean isPlatformSunOS()
     48    {
     49        return isPlatformSunOS;
    4450    }
    4551
  • trunk/j/src/org/armedbear/lisp/Keyword.java

    r8526 r8591  
    33 *
    44 * Copyright (C) 2002-2005 Peter Graves
    5  * $Id: Keyword.java,v 1.39 2005-02-10 12:57:21 piso Exp $
     5 * $Id: Keyword.java,v 1.40 2005-02-16 19:46:17 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    9595        START               = internKeyword("START"),
    9696        STREAM              = internKeyword("STREAM"),
     97        SUNOS               = internKeyword("SUNOS"),
    9798        SUPERSEDE           = internKeyword("SUPERSEDE"),
    9899        TIME                = internKeyword("TIME"),
  • trunk/j/src/org/armedbear/lisp/Lisp.java

    r8546 r8591  
    33 *
    44 * Copyright (C) 2002-2005 Peter Graves
    5  * $Id: Lisp.java,v 1.319 2005-02-12 03:28:17 piso Exp $
     5 * $Id: Lisp.java,v 1.320 2005-02-16 19:47:14 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    15011501                                            Keyword.UNIX,
    15021502                                            Keyword.LINUX));
     1503        } else if (osName.startsWith("SunOS")) {
     1504            _FEATURES_.setSymbolValue(list6(Keyword.ARMEDBEAR,
     1505                                            Keyword.ABCL,
     1506                                            Keyword.COMMON_LISP,
     1507                                            Keyword.ANSI_CL,
     1508                                            Keyword.UNIX,
     1509                                            Keyword.SUNOS));
    15031510        } else if (osName.startsWith("Mac OS X")) {
    15041511            _FEATURES_.setSymbolValue(list6(Keyword.ARMEDBEAR,
  • trunk/j/src/org/armedbear/lisp/Makefile.in

    r8574 r8591  
    11# Makefile.in
    22
    3 # Copyright (C) 2003-2004 Peter Graves
    4 # $Id: Makefile.in,v 1.196 2005-02-14 19:08:50 piso Exp $
     3# Copyright (C) 2003-2005 Peter Graves
     4# $Id: Makefile.in,v 1.197 2005-02-16 19:45:46 piso Exp $
    55
    66# This program is free software; you can redistribute it and/or
     
    2424COMPILER_CLASSPATH = @COMPILER_CLASSPATH@
    2525LIBABCL=@LIBABCL@
     26
     27PLATFORM := $(shell uname)
    2628
    2729CLASSFILES =  AbstractArray.class \
     
    285287libabcl.so: Native.class native.c
    286288  cd ../../.. && $(JAVAH) -o org/armedbear/lisp/native.h org.armedbear.lisp.Native
    287   gcc -shared -o libabcl.so -O -D_REENTRANT -fpic -I$(JDK)/include -I$(JDK)/include/linux native.c
     289  if [ "X${PLATFORM}" = "XSunOS" ]; then \
     290      gcc -shared -o libabcl.so -O -D_REENTRANT -fpic -I$(JDK)/include -I$(JDK)/include/solaris native.c ; \
     291  else \
     292      gcc -shared -o libabcl.so -O -D_REENTRANT -fpic -I$(JDK)/include -I$(JDK)/include/linux native.c ; \
     293  fi
Note: See TracChangeset for help on using the changeset viewer.