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 31*bb9475a1SRobert MustacchiCSTD= $(CSTD_GNU17) 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateall := TARGET= all 347c478bd9Sstevel@tonic-gateclean := TARGET= clean 357c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 367c478bd9Sstevel@tonic-gateinstall := TARGET= install 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate.KEEP_STATE: 397c478bd9Sstevel@tonic-gate 40241c90a0SRichard Loweall: $(HDRS) 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateinstall: all 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gateclean: 457c478bd9Sstevel@tonic-gate $(RM) $(HDRS) $(TMPHDRS) 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateclobber: clean 48b6805bf7SGordon Ross $(RM) make_os_version probe_ipv6 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate# os_version.h and port_ipv6.h should be rebuilt when you change OS 517c478bd9Sstevel@tonic-gate# revision. Since that's not easily expressed as a dependency, we 527c478bd9Sstevel@tonic-gate# rebuild them every time. 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gateos_version.h: make_os_version FRC 557c478bd9Sstevel@tonic-gate ./make_os_version 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gateport_ipv6.h: probe_ipv6 FRC 58*bb9475a1SRobert Mustacchi CC="$(CC)" CPPFLAGS="$(CPPFLAGS) $(CSTD)" ./probe_ipv6 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateFRC: 61