diff options
Diffstat (limited to 'usr/src/uts/intel/wc')
| -rw-r--r-- | usr/src/uts/intel/wc/Makefile | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/usr/src/uts/intel/wc/Makefile b/usr/src/uts/intel/wc/Makefile index efdad561f7..b7461a4bed 100644 --- a/usr/src/uts/intel/wc/Makefile +++ b/usr/src/uts/intel/wc/Makefile @@ -23,7 +23,6 @@ # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -# ident "%Z%%M% %I% %E% SMI" # # This makefile drives the production of the wc driver # kernel module. @@ -44,6 +43,9 @@ OBJECTS = $(WC_OBJS:%=$(OBJS_DIR)/%) LINTS = $(WC_OBJS:%.o=$(LINTS_DIR)/%.ln) ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) CONF_SRCDIR = $(UTSBASE)/common/io +WARLOCK_OUT = $(WC_OBJS:%.o=%.ll) +WARLOCK_OK = $(MODULE).ok +WLCMD_DIR = $(UTSBASE)/common/io/warlock # # Include common rules. @@ -60,7 +62,7 @@ INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) # # Overrides. # -LDFLAGS += -dy -Nmisc/tem +LDFLAGS += -dy -Nmisc/tem -Ndacf/consconfig_dacf # # Default build targets. @@ -87,3 +89,37 @@ install: $(INSTALL_DEPS) # Include common targets. # include $(UTSBASE)/intel/Makefile.targ + +# +# Defines for local commands +# +TEST = test +WLCC = wlcc +TOUCH = touch +WARLOCK = warlock + +# +# warlock targets +# + +# +# vcons_conf.c is compile to genunix, add it to WARLOCK_OUT +# +WARLOCK_OUT += vcons_conf.ll + +warlock: $(WARLOCK_OUT) sdev_vtops.file warlock_ddi.files + $(WARLOCK) -c $(WLCMD_DIR)/wc.wlcmd $(WARLOCK_OUT) \ + -l ../../intel/warlock/ddi_dki_impl.ll + $(WARLOCK) -c $(WLCMD_DIR)/wc_devfs.wlcmd sdev_vtops.ll vcons_conf.ll \ + -l ../../intel/warlock/ddi_dki_impl.ll + $(TOUCH) $(WARLOCK_OK) + +%.ll: $(UTSBASE)/common/io/%.c + $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< + +sdev_vtops.file: + $(WLCC) $(CPPFLAGS) -DDEBUG -o sdev_vtops.ll -c \ + ../../common/fs/dev/sdev_vtops.c + +warlock_ddi.files: + @cd ../../intel/warlock; pwd; $(MAKE) warlock |
