4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 # This makefile drives the production of the wc driver
30 # intel implementation architecture independent
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
39 # Define the module and object file sets.
42 OBJECTS
= $(WC_OBJS
:%=$(OBJS_DIR
)/%)
43 LINTS
= $(WC_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
44 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
45 CONF_SRCDIR
= $(UTSBASE
)/common
/io
46 WARLOCK_OUT
= $(WC_OBJS
:%.o
=%.ll
)
47 WARLOCK_OK
= $(MODULE
).ok
48 WLCMD_DIR
= $(UTSBASE
)/common
/io
/warlock
51 # Include common rules.
53 include $(UTSBASE
)/intel
/Makefile.intel
58 ALL_TARGET
= $(BINARY
) $(SRC_CONFILE
)
59 LINT_TARGET
= $(MODULE
).lint
60 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
65 LDFLAGS
+= -dy
-Nmisc
/tem
-Ndacf
/consconfig_dacf
67 CERRWARN
+= -_gcc
=-Wno-uninitialized
70 # Default build targets.
80 clobber: $(CLOBBER_DEPS
)
84 modlintlib
: $(MODLINTLIB_DEPS
)
86 clean.lint
: $(CLEAN_LINT_DEPS
)
88 install: $(INSTALL_DEPS
)
91 # Include common targets.
93 include $(UTSBASE
)/intel
/Makefile.targ
96 # Defines for local commands
108 # vcons_conf.c is compile to genunix, add it to WARLOCK_OUT
110 WARLOCK_OUT
+= vcons_conf.ll
112 warlock
: $(WARLOCK_OUT
) sdev_vtops.file warlock_ddi.files
113 $(WARLOCK
) -c
$(WLCMD_DIR
)/wc.wlcmd
$(WARLOCK_OUT
) \
114 -l ..
/..
/intel
/warlock
/ddi_dki_impl.ll
115 $(WARLOCK
) -c
$(WLCMD_DIR
)/wc_devfs.wlcmd sdev_vtops.ll vcons_conf.ll \
116 -l ..
/..
/intel
/warlock
/ddi_dki_impl.ll
117 $(TOUCH
) $(WARLOCK_OK
)
119 %.ll
: $(UTSBASE
)/common
/io
/%.c
120 $(WLCC
) $(CPPFLAGS
) -DDEBUG
-o
$@
$<
123 $(WLCC
) $(CPPFLAGS
) -DDEBUG
-o sdev_vtops.ll
-c \
124 ..
/..
/common
/fs
/dev
/sdev_vtops.c
127 @cd ..
/..
/intel
/warlock
; pwd
; $(MAKE
) warlock