newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: TedWalther on June 14, 2009, 03:39:31 PM

Title: Any reason for defining SPARC?
Post by: TedWalther on June 14, 2009, 03:39:31 PM
I notice that in the Solaris makefiles, both SOLARIS and SPARC are defined.  SPARC is only used in ns-filesys.c, and I see no reason why SOLARIS wouldn't do equally as well.  Is there something hardware specific going on?



Ted
Title:
Post by: TedWalther on June 14, 2009, 08:34:04 PM
I think I found the reason; OpenSolaris doesn't need SPARC defined.  Perhaps someone was testing on an i386 build of Solaris?  I think SUNOS only ran on Sparc... owait, I"m wrong, there were some Motorola 6800 chipsets in the beginning, but the SPARC define seems like it is an OS dependant thing, not a hardware dependant thing.



Shouldn't we replace the current SOLARIS/SPARC define set with SUNOS, and use SOLARIS just for SOLARIS?



Ted
Title:
Post by: Lutz on June 15, 2009, 05:19:39 AM
Yes, I should propbably rename it to makefile_sunos and i'll put



#ifdef SUNOS

#define SOLARIS

#define SPARC

#endif



and use only SUNOS in the makefile.