xref: /titanic_51/usr/src/uts/sun4u/i2c_svc/Makefile (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
3*7c478bd9Sstevel@tonic-gate#
4*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
5*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
6*7c478bd9Sstevel@tonic-gate
7*7c478bd9Sstevel@tonic-gate#	This makefile drives the production of the i2c_svc misc module.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
10*7c478bd9Sstevel@tonic-gate
11*7c478bd9Sstevel@tonic-gateUTSBASE	= ../..
12*7c478bd9Sstevel@tonic-gate
13*7c478bd9Sstevel@tonic-gate#
14*7c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
15*7c478bd9Sstevel@tonic-gate#
16*7c478bd9Sstevel@tonic-gateMODULE		= i2c_svc
17*7c478bd9Sstevel@tonic-gateOBJECTS		= $(I2C_SVC_OBJS:%=$(OBJS_DIR)/%)
18*7c478bd9Sstevel@tonic-gateLINTS		= $(I2C_SVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
19*7c478bd9Sstevel@tonic-gateROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
20*7c478bd9Sstevel@tonic-gate
21*7c478bd9Sstevel@tonic-gate#
22*7c478bd9Sstevel@tonic-gate#	Include common rules.
23*7c478bd9Sstevel@tonic-gate#
24*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.sun4u
25*7c478bd9Sstevel@tonic-gate
26*7c478bd9Sstevel@tonic-gate#
27*7c478bd9Sstevel@tonic-gate# lint pass one enforcement
28*7c478bd9Sstevel@tonic-gate#
29*7c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
30*7c478bd9Sstevel@tonic-gate
31*7c478bd9Sstevel@tonic-gateLDFLAGS += -dy
32*7c478bd9Sstevel@tonic-gate
33*7c478bd9Sstevel@tonic-gate#
34*7c478bd9Sstevel@tonic-gate#	Define targets
35*7c478bd9Sstevel@tonic-gate#
36*7c478bd9Sstevel@tonic-gateALL_TARGET	= $(BINARY)
37*7c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
38*7c478bd9Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
39*7c478bd9Sstevel@tonic-gate
40*7c478bd9Sstevel@tonic-gate.KEEP_STATE:
41*7c478bd9Sstevel@tonic-gate
42*7c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
43*7c478bd9Sstevel@tonic-gate
44*7c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
45*7c478bd9Sstevel@tonic-gate
46*7c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
47*7c478bd9Sstevel@tonic-gate
48*7c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
49*7c478bd9Sstevel@tonic-gate
50*7c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
51*7c478bd9Sstevel@tonic-gate
52*7c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
53*7c478bd9Sstevel@tonic-gate
54*7c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
55*7c478bd9Sstevel@tonic-gate
56*7c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
57*7c478bd9Sstevel@tonic-gate
58*7c478bd9Sstevel@tonic-gate#
59*7c478bd9Sstevel@tonic-gate#	Include common targets.
60*7c478bd9Sstevel@tonic-gate#
61*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sun4u/Makefile.targ
62*7c478bd9Sstevel@tonic-gate
63*7c478bd9Sstevel@tonic-gate#
64*7c478bd9Sstevel@tonic-gate#	Defines for local commands.
65*7c478bd9Sstevel@tonic-gate#
66*7c478bd9Sstevel@tonic-gateWLCC		= wlcc
67*7c478bd9Sstevel@tonic-gateTOUCH		= touch
68*7c478bd9Sstevel@tonic-gateWARLOCK		= warlock
69*7c478bd9Sstevel@tonic-gate
70*7c478bd9Sstevel@tonic-gate#
71*7c478bd9Sstevel@tonic-gate#	Warlock targets
72*7c478bd9Sstevel@tonic-gate#
73*7c478bd9Sstevel@tonic-gate
74*7c478bd9Sstevel@tonic-gateI2C_SVC_FILES = $(I2C_SVC_OBJS:%.o=%.ll)
75*7c478bd9Sstevel@tonic-gate
76*7c478bd9Sstevel@tonic-gatewarlock: $(MODULE).ok
77*7c478bd9Sstevel@tonic-gate
78*7c478bd9Sstevel@tonic-gate%.ok:	$(I2C_SVC_FILES)
79*7c478bd9Sstevel@tonic-gate	$(TOUCH) $@
80*7c478bd9Sstevel@tonic-gate
81*7c478bd9Sstevel@tonic-gate%.ll: $(UTSBASE)/sun4u/io/i2c/misc/%.c
82*7c478bd9Sstevel@tonic-gate	$(WLCC) $(CFLAGS) $(CPPFLAGS) -DDEBUG -o $@ $<
83