Make FreeBSD a "first class citizen" among femtolisp's build OSes.

It looks like FreeBSD should do what OpenBSD does in femtolisp's code.
The biggest change here (I think) is that of determining the correct
value of CC in the Makefile(s).  As of version 10, FreeBSD's base
compiler is clang; so there is now some logic in the Makefile(s) to
determine if the build is occurring on a FreeBSD system >= 10.0.  If
so, then the value of CC will be "clang"; otherwise, it will be "gcc",
as before.
This commit is contained in:
Rick Hanson
2019-08-08 18:09:02 +03:00
committed by lassik
parent 5f3e92a99a
commit fe6948e421
7 changed files with 16 additions and 9 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
CC = gcc
FREEBSD-GE-10 = $(shell test `uname` = FreeBSD -a `uname -r | cut -d. -f1` -ge 10 && echo YES)
CC = $(if $(FREEBSD-GE-10),clang,gcc)
NAME = lisp
SRC = $(NAME).c