xref: /titanic_41/usr/src/cmd/ipf/tools/Makefile (revision 0b42f15ac52b077791d4ba079e8c163c592c3fda)
17c478bd9Sstevel@tonic-gate#
233f2fefdSDarren Reed# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
433f2fefdSDarren Reed# The contents of this file are subject to the terms of the
533f2fefdSDarren Reed# Common Development and Distribution License (the "License").
633f2fefdSDarren Reed# You may not use this file except in compliance with the License.
733f2fefdSDarren Reed#
833f2fefdSDarren Reed# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
933f2fefdSDarren Reed# or http://www.opensolaris.org/os/licensing.
1033f2fefdSDarren Reed# See the License for the specific language governing permissions
1133f2fefdSDarren Reed# and limitations under the License.
1233f2fefdSDarren Reed#
1333f2fefdSDarren Reed# When distributing Covered Code, include this CDDL HEADER in each
1433f2fefdSDarren Reed# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1533f2fefdSDarren Reed# If applicable, add the following below this CDDL HEADER, with the
1633f2fefdSDarren Reed# fields enclosed by brackets "[]" replaced with your own identifying
1733f2fefdSDarren Reed# information: Portions Copyright [yyyy] [name of copyright owner]
1833f2fefdSDarren Reed#
1933f2fefdSDarren Reed# CDDL HEADER END
2033f2fefdSDarren Reed#
2133f2fefdSDarren Reed#
2233f2fefdSDarren Reed# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2333f2fefdSDarren Reed# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# cmd/ipf/tools/Makefile
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateLICENCE= IPFILTER.LICENCE
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate$(64ONLY)SUBDIRS= $(MACH)
347c478bd9Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64)
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gateUSRLIBIPF=		$(ROOTLIB)/ipf
377c478bd9Sstevel@tonic-gateUSRLIBIPFLICENCE=	$(LICENCE:%=$(USRLIBIPF)/%)
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateFILEMODE= 0755
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate$(USRLIBIPFLICENCE):=FILEMODE= 0644
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateall:=           TARGET= all
447c478bd9Sstevel@tonic-gateinstall:=       TARGET= install
457c478bd9Sstevel@tonic-gateclean:=         TARGET= clean
467c478bd9Sstevel@tonic-gateclobber:=       TARGET= clobber
477c478bd9Sstevel@tonic-gatelint:=          TARGET= lint
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate$(USRLIBIPF):
507c478bd9Sstevel@tonic-gate	$(INS.dir)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate$(USRLIBIPF)/% : %
537c478bd9Sstevel@tonic-gate	$(INS.file)
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gate.KEEP_STATE:
567c478bd9Sstevel@tonic-gate
57*b6805bf7SGordon Rossall clean clobber lint: $(SUBDIRS)
587c478bd9Sstevel@tonic-gate
59*b6805bf7SGordon Rossinstall: all $(SUBDIRS) install_local
607c478bd9Sstevel@tonic-gate
61*b6805bf7SGordon Rossinstall_local: $(USRLIBIPF) $(USRLIBIPFLICENCE)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC
647c478bd9Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gateFRC:
67