xref: /illumos-gate/usr/src/lib/libresolv2/include/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
4*7c478bd9Sstevel@tonic-gate#
5*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
6*7c478bd9Sstevel@tonic-gate#
7*7c478bd9Sstevel@tonic-gate
8*7c478bd9Sstevel@tonic-gateinclude		../../../Makefile.master
9*7c478bd9Sstevel@tonic-gate
10*7c478bd9Sstevel@tonic-gateHDRS=		os_version.h port_ipv6.h
11*7c478bd9Sstevel@tonic-gateTMPHDRS=	new_os_version.h new_port_ipv6.h
12*7c478bd9Sstevel@tonic-gate
13*7c478bd9Sstevel@tonic-gateall :=		TARGET= all
14*7c478bd9Sstevel@tonic-gateclean :=	TARGET= clean
15*7c478bd9Sstevel@tonic-gateclobber :=	TARGET= clobber
16*7c478bd9Sstevel@tonic-gateinstall :=	TARGET= install
17*7c478bd9Sstevel@tonic-gate
18*7c478bd9Sstevel@tonic-gate.KEEP_STATE:
19*7c478bd9Sstevel@tonic-gate
20*7c478bd9Sstevel@tonic-gateall lint: $(HDRS)
21*7c478bd9Sstevel@tonic-gate
22*7c478bd9Sstevel@tonic-gateinstall: all
23*7c478bd9Sstevel@tonic-gate
24*7c478bd9Sstevel@tonic-gateclean:
25*7c478bd9Sstevel@tonic-gate	$(RM) $(HDRS) $(TMPHDRS)
26*7c478bd9Sstevel@tonic-gate
27*7c478bd9Sstevel@tonic-gateclobber: clean
28*7c478bd9Sstevel@tonic-gate
29*7c478bd9Sstevel@tonic-gate# os_version.h and port_ipv6.h should be rebuilt when you change OS
30*7c478bd9Sstevel@tonic-gate# revision. Since that's not easily expressed as a dependency, we
31*7c478bd9Sstevel@tonic-gate# rebuild them every time.
32*7c478bd9Sstevel@tonic-gate
33*7c478bd9Sstevel@tonic-gateos_version.h: make_os_version FRC
34*7c478bd9Sstevel@tonic-gate	$(CHMOD) a+x make_os_version
35*7c478bd9Sstevel@tonic-gate	./make_os_version
36*7c478bd9Sstevel@tonic-gate
37*7c478bd9Sstevel@tonic-gateport_ipv6.h: probe_ipv6 FRC
38*7c478bd9Sstevel@tonic-gate	$(CHMOD) a+x probe_ipv6
39*7c478bd9Sstevel@tonic-gate	CC="$(CC)" ./probe_ipv6
40*7c478bd9Sstevel@tonic-gate
41*7c478bd9Sstevel@tonic-gateFRC:
42