Makefile revision f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01
82bdf8ce36ccfe1b6ff389a9c9c7e2b2d049a43dTom Gundersen# CDDL HEADER START
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# The contents of this file are subject to the terms of the
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# Common Development and Distribution License (the "License").
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# You may not use this file except in compliance with the License.
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# See the License for the specific language governing permissions
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# and limitations under the License.
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# When distributing Covered Code, include this CDDL HEADER in each
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# If applicable, add the following below this CDDL HEADER, with the
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# fields enclosed by brackets "[]" replaced with your own identifying
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# information: Portions Copyright [yyyy] [name of copyright owner]
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# CDDL HEADER END
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# Use is subject to license terms.
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen# ident "%Z%%M% %I% %E% SMI"
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom GundersenCLEAN_SCRIPTS = $(CLEANfd) $(CLEANsr) $(CLEANst) $(CLEANaudio) $(CLEANdisk)
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom GundersenWDW_LINKS = $(CLEANaudio) $(CLEANdisk) $(CLEANst)
6436165dbc500f14abfec738af28f87a71f6a12aLennart PoetteringPROG = $(PROGalloc) $(PROGmkdevalloc) $(PROGdminfo) \
8612e9365333d35773a08509b1d80a98911acb44Lennart PoetteringPOFILES = $(OBJS:%.o=%.po) $(ALLSCRIPTS:%.sh=%.po)
3df9bec57c3e2d96f7e2a25961585cfa609b61ebLennart PoetteringROOTSCRIPTS = $(SCRIPTS:%=$(ROOTSECLIB)/%)
03cc0fd1431b82e59c11ae12a274c1f2df23169dLennart PoetteringROOTWDWLINKS = $(WDW_LINKS:%=$(ROOTSECLIB)/%.windowing)
8434fd5cf23f998a0f3a0f947a4308a8c18ba7a5Tom GundersenROOTPROG = $(PROGallocate:%=$(ROOTUSRSBIN)/%) \
8434fd5cf23f998a0f3a0f947a4308a8c18ba7a5Tom GundersenROOTLINKalloc = $(LINKPROGalloc:%=$(ROOTUSRSBIN)/%)
8434fd5cf23f998a0f3a0f947a4308a8c18ba7a5Tom GundersenROOTLINKmkdevalloc = $(LINKPROGmkdevalloc:%=$(ROOTUSRSBIN)/%)
deb2e5230b4dcbc0e2e02cc47a0b2d0d7179a044Tom GundersenROOTLINKaddalloc = $(LINKPROGaddalloc:%=$(ROOTUSRSBIN)/%)
deb2e5230b4dcbc0e2e02cc47a0b2d0d7179a044Tom GundersenROOTLINKS = $(ROOTLINKalloc) $(ROOTLINKmkdevalloc) $(ROOTLINKaddalloc)
03cc0fd1431b82e59c11ae12a274c1f2df23169dLennart Poetteringlint := LDLIBS += -lbsm -lsec -lsecdb -ltsol -ldevinfo
03cc0fd1431b82e59c11ae12a274c1f2df23169dLennart Poettering$(PROGalloc) := LDLIBS += -lbsm -lsec -lsecdb -ldevinfo $(LAZYLIBS)
d6731e4c7964ee2860d4f5abdb0b52acd7a66960Tom Gundersen$(PROGaddalloc) := LDLIBS += -lbsm -lsecdb $(LAZYLIBS)
aaa297d4e5401fd4466632555432774863457f1dLennart Poetteringinstall : $(PROG) $(ROOTDIRS) $(ROOTPROG) $(ROOTLOCKS) \
aaa297d4e5401fd4466632555432774863457f1dLennart Poettering $(ROOTSCRIPTS) $(ROOTLINKS) $(ROOTWDWLINKS) $(ROOTETCTSOLFILES)
8a516214c4412e8a40544bd725a6d499a30cbbbfLennart Poettering $(LINK.c) $(PROGallocOBJS) -o $@ $(LDLIBS)
8a516214c4412e8a40544bd725a6d499a30cbbbfLennart Poettering $(LINK.c) $(PROGaddallocOBJS) -o $@ $(LDLIBS)
3df9bec57c3e2d96f7e2a25961585cfa609b61ebLennart Poettering $(LINK.c) $(PROGmkdevallocOBJS) -o $@ $(LDLIBS)
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen$(ROOTLINKalloc) : $(PROGalloc:%=$(ROOTUSRSBIN)/%)
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen$(ROOTLINKaddalloc) : $(PROGaddalloc:%=$(ROOTUSRSBIN)/%)
fe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2Tom Gundersen$(ROOTLINKmkdevalloc) : $(PROGmkdevalloc:%=$(ROOTUSRSBIN)/%)
4afd3348c7506dd1d36305b7bcb9feb8952b9d6bLennart Poettering $(LN) $(PROGmkdevalloc:%=$(ROOTUSRSBIN)/%) $@
$(SYMLINK) $< $@
$(RM) $@
clean :
strip :