1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at 9# http://www.illumos.org/license/CDDL. 10# 11 12# 13# Copyright 2016 Gordon Ross <gordon.w.ross@gmail.com> 14# 15 16# 17# This Makefile is intentionally very simple, and should work with 18# any make implementation (BSD, GNU, Sun). Just a convenience for 19# people unfamiliar with illumos-gate (ON) builds (bldenv etc). 20# Customizations happen via the myenv.sh file. 21# 22ONBLD_TOOLS=/opt/onbld 23 24# Do both debug and non-debug build in uts, in that order, so 25# (a) we know the debug code builds, and (b) install non-debug. 26install: FRC 27 /usr/bin/ksh93 tools/bldenv myenv.sh \ 28 "cd usr/src ; $(MAKE) setup" 29 /usr/bin/ksh93 tools/bldenv -d myenv.sh \ 30 "cd usr/src/uts ; $(MAKE) install" 31 /usr/bin/ksh93 tools/bldenv myenv.sh \ 32 "cd usr/src ; $(MAKE) install" 33 34debug: FRC 35 /usr/bin/ksh93 tools/bldenv -d myenv.sh \ 36 "cd usr/src ; $(MAKE) install" 37 38clean: FRC 39 /usr/bin/ksh93 tools/bldenv myenv.sh \ 40 "cd usr/src ; $(MAKE) clobber" 41 42package: FRC 43 /usr/bin/ksh93 tools/bldenv myenv.sh \ 44 "cd usr/src/pkg ; $(MAKE) install" 45 46FRC: 47