Mercurial > hg > truffle
comparison make/defs.make @ 3960:f08d439fab8c
7089790: integrate bsd-port changes
Reviewed-by: kvn, twisti, jrose
Contributed-by: Kurt Miller <kurt@intricatesoftware.com>, Greg Lewis <glewis@eyesbeyond.com>, Jung-uk Kim <jkim@freebsd.org>, Christos Zoulas <christos@zoulas.com>, Landon Fuller <landonf@plausible.coop>, The FreeBSD Foundation <board@freebsdfoundation.org>, Michael Franz <mvfranz@gmail.com>, Roger Hoover <rhoover@apple.com>, Alexander Strange <astrange@apple.com>
author | never |
---|---|
date | Sun, 25 Sep 2011 16:03:29 -0700 |
parents | b76d12f4ab2d |
children | 436b4a3231bf |
comparison
equal
deleted
inserted
replaced
3959:eda6988c0d81 | 3960:f08d439fab8c |
---|---|
116 endif | 116 endif |
117 | 117 |
118 # Windows should have OS predefined | 118 # Windows should have OS predefined |
119 ifeq ($(OS),) | 119 ifeq ($(OS),) |
120 OS := $(shell uname -s) | 120 OS := $(shell uname -s) |
121 ifneq ($(findstring BSD,$(OS)),) | |
122 OS=bsd | |
123 endif | |
124 ifeq ($(OS), Darwin) | |
125 OS=bsd | |
126 endif | |
121 HOST := $(shell uname -n) | 127 HOST := $(shell uname -n) |
122 endif | 128 endif |
123 | 129 |
124 # If not SunOS and not Linux, assume Windows | 130 # If not SunOS, not Linux and not BSD, assume Windows |
125 ifneq ($(OS), Linux) | 131 ifneq ($(OS), Linux) |
126 ifneq ($(OS), SunOS) | 132 ifneq ($(OS), SunOS) |
127 OSNAME=windows | 133 ifneq ($(OS), bsd) |
134 OSNAME=windows | |
135 else | |
136 OSNAME=bsd | |
137 endif | |
128 else | 138 else |
129 OSNAME=solaris | 139 OSNAME=solaris |
130 endif | 140 endif |
131 else | 141 else |
132 OSNAME=linux | 142 OSNAME=linux |