BUILD: add explicit support for Mac OS/X
The "osx" target may now be passed in the TARGET variable. It supports the same features as FreeBSD and allows its users to use the GNU makefile instead of the platform-specific makefile which lacks some features.
This commit is contained in:
parent
32e65ef625
commit
8624cab29c
8
Makefile
8
Makefile
|
@ -269,6 +269,13 @@ ifeq ($(TARGET),freebsd)
|
||||||
USE_TPROXY = implicit
|
USE_TPROXY = implicit
|
||||||
USE_LIBCRYPT = implicit
|
USE_LIBCRYPT = implicit
|
||||||
else
|
else
|
||||||
|
ifeq ($(TARGET),osx)
|
||||||
|
# This is for Mac OS/X
|
||||||
|
USE_POLL = implicit
|
||||||
|
USE_KQUEUE = implicit
|
||||||
|
USE_TPROXY = implicit
|
||||||
|
USE_LIBCRYPT = implicit
|
||||||
|
else
|
||||||
ifeq ($(TARGET),openbsd)
|
ifeq ($(TARGET),openbsd)
|
||||||
# This is for OpenBSD >= 3.0
|
# This is for OpenBSD >= 3.0
|
||||||
USE_POLL = implicit
|
USE_POLL = implicit
|
||||||
|
@ -291,6 +298,7 @@ ifeq ($(TARGET),cygwin)
|
||||||
endif # cygwin
|
endif # cygwin
|
||||||
endif # aix52
|
endif # aix52
|
||||||
endif # openbsd
|
endif # openbsd
|
||||||
|
endif # osx
|
||||||
endif # freebsd
|
endif # freebsd
|
||||||
endif # solaris
|
endif # solaris
|
||||||
endif # linux2628
|
endif # linux2628
|
||||||
|
|
1
README
1
README
|
@ -28,6 +28,7 @@ and assign it to the TARGET variable :
|
||||||
- linux2628 for Linux 2.6.28 and above (enables splice and tproxy)
|
- linux2628 for Linux 2.6.28 and above (enables splice and tproxy)
|
||||||
- solaris for Solaris 8 or 10 (others untested)
|
- solaris for Solaris 8 or 10 (others untested)
|
||||||
- freebsd for FreeBSD 5 to 8.0 (others untested)
|
- freebsd for FreeBSD 5 to 8.0 (others untested)
|
||||||
|
- osx for Mac OS/X
|
||||||
- openbsd for OpenBSD 3.1 to 5.2 (others untested)
|
- openbsd for OpenBSD 3.1 to 5.2 (others untested)
|
||||||
- aix52 for AIX 5.2
|
- aix52 for AIX 5.2
|
||||||
- cygwin for Cygwin
|
- cygwin for Cygwin
|
||||||
|
|
Loading…
Reference in New Issue