17c478bd9Sstevel@tonic-gate#
20c44d000Sstevel# CDDL HEADER START
30c44d000Sstevel#
40c44d000Sstevel# The contents of this file are subject to the terms of the
50c44d000Sstevel# Common Development and Distribution License (the "License").
60c44d000Sstevel# You may not use this file except in compliance with the License.
70c44d000Sstevel#
80c44d000Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90c44d000Sstevel# or http://www.opensolaris.org/os/licensing.
100c44d000Sstevel# See the License for the specific language governing permissions
110c44d000Sstevel# and limitations under the License.
120c44d000Sstevel#
130c44d000Sstevel# When distributing Covered Code, include this CDDL HEADER in each
140c44d000Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150c44d000Sstevel# If applicable, add the following below this CDDL HEADER, with the
160c44d000Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
170c44d000Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
180c44d000Sstevel#
190c44d000Sstevel# CDDL HEADER END
200c44d000Sstevel#
210c44d000Sstevel
220c44d000Sstevel#
230c44d000Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gateinclude		../../../Makefile.master
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateHDRS=		os_version.h port_ipv6.h
307c478bd9Sstevel@tonic-gateTMPHDRS=	new_os_version.h new_port_ipv6.h
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateall :=		TARGET= all
337c478bd9Sstevel@tonic-gateclean :=	TARGET= clean
347c478bd9Sstevel@tonic-gateclobber :=	TARGET= clobber
357c478bd9Sstevel@tonic-gateinstall :=	TARGET= install
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gate.KEEP_STATE:
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateall lint: $(HDRS)
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateinstall: all
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateclean:
447c478bd9Sstevel@tonic-gate	$(RM) $(HDRS) $(TMPHDRS)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gateclobber: clean
47*b6805bf7SGordon Ross	$(RM) make_os_version probe_ipv6
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate# os_version.h and port_ipv6.h should be rebuilt when you change OS
507c478bd9Sstevel@tonic-gate# revision. Since that's not easily expressed as a dependency, we
517c478bd9Sstevel@tonic-gate# rebuild them every time.
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gateos_version.h: make_os_version FRC
547c478bd9Sstevel@tonic-gate	./make_os_version
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gateport_ipv6.h: probe_ipv6 FRC
577c478bd9Sstevel@tonic-gate	CC="$(CC)" ./probe_ipv6
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateFRC:
60