1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24 # Copyright 2015 Joyent, Inc. All rights reserved. 25 # 26 27 PROGS = lx_boot 28 PROGS += lx_boot_zone_redhat lx_boot_zone_ubuntu lx_boot_zone_debian 29 PROGS += lx_boot_zone_busybox 30 XMLDOCS = config.xml platform.xml 31 TEMPLATES = SUNWlx.xml SUNWlx26.xml 32 33 all: $(PROGS) 34 35 include $(SRC)/cmd/Makefile.cmd 36 include ../Makefile.lx 37 38 all := TARGET= all 39 install := TARGET= install 40 clobber := TARGET= clobber 41 42 POFILES= $(PROGS:%=%.po) 43 POFILE= lx_zone.po 44 45 $(POFILE): $(POFILES) 46 $(RM) $@ 47 $(BUILDPO.pofiles) 48 49 _msg: $(MSGDOMAINPOFILE) 50 51 install: $(PROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTPROGS) 52 mkdir -p $(ROOT)/usr/lib/brand/lx/ld/64 53 crle -c $(ROOT)/usr/lib/brand/lx/ld/ld.config \ 54 -l /native/lib:/native/usr/lib \ 55 -s /native/lib/secure:/native/usr/lib/secure 56 crle -64 -c $(ROOT)/usr/lib/brand/lx/ld/64/ld.config \ 57 -l /native/lib/64:/native/usr/lib/64 \ 58 -s /native/lib/secure/64:/native/usr/lib/secure/64 59 60 lint: 61 62 clean: 63 -$(RM) $(PROGS) 64 65 clobber: clean 66 -$(RM) $(ROOTXMLDOCS) $(ROOTPROGS) $(ROOTTEMPLATES) 67 68 FRC: 69 70 include $(SRC)/Makefile.msg.targ