equal
deleted
inserted
replaced
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # |
21 # |
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
22 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
23 # Use is subject to license terms. |
|
24 # |
23 # |
25 # uts/intel/audiohd/Makefile |
24 # uts/intel/audiohd/Makefile |
26 # |
25 # |
27 # This makefile drives the production of high definition audio |
26 # This makefile drives the production of high definition audio |
28 # driver (audiohd) kernel module. |
27 # driver (audiohd) kernel module. |
38 MODULE = audiohd |
37 MODULE = audiohd |
39 OBJECTS = $(AUDIOHD_OBJS:%=$(OBJS_DIR)/%) |
38 OBJECTS = $(AUDIOHD_OBJS:%=$(OBJS_DIR)/%) |
40 LINTS = $(AUDIOHD_OBJS:%.o=$(LINTS_DIR)/%.ln) |
39 LINTS = $(AUDIOHD_OBJS:%.o=$(LINTS_DIR)/%.ln) |
41 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) |
40 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) |
42 CONF_SRCDIR = $(UTSBASE)/common/io/audio/drv/audiohd |
41 CONF_SRCDIR = $(UTSBASE)/common/io/audio/drv/audiohd |
|
42 WARLOCK_OUT = $(AUDIOHD_OBJS:%.o=%.ll) |
|
43 WARLOCK_OK = $(MODULE).ok |
|
44 WLCMD_DIR = $(UTSBASE)/common/io/warlock |
43 |
45 |
44 # |
46 # |
45 # Include common rules. |
47 # Include common rules. |
46 # |
48 # |
47 include $(UTSBASE)/intel/Makefile.intel |
49 include $(UTSBASE)/intel/Makefile.intel |
81 |
83 |
82 clean: $(CLEAN_DEPS) |
84 clean: $(CLEAN_DEPS) |
83 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) |
85 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) |
84 |
86 |
85 clobber: $(CLOBBER_DEPS) |
87 clobber: $(CLOBBER_DEPS) |
|
88 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) |
86 |
89 |
87 lint: $(LINT_DEPS) |
90 lint: $(LINT_DEPS) |
88 |
91 |
89 modlintlib: $(MODLINTLIB_DEPS) |
92 modlintlib: $(MODLINTLIB_DEPS) |
90 |
93 |
94 |
97 |
95 # |
98 # |
96 # Include common targets. |
99 # Include common targets. |
97 # |
100 # |
98 include $(UTSBASE)/intel/Makefile.targ |
101 include $(UTSBASE)/intel/Makefile.targ |
|
102 |
|
103 # |
|
104 # Defines for local commands. |
|
105 # |
|
106 WARLOCK = warlock |
|
107 WLCC = wlcc |
|
108 TOUCH = touch |
|
109 TEST = test |
|
110 |
|
111 # |
|
112 # lock_lint rules |
|
113 # |
|
114 AUDIOHD_FILES = $(AUDIOHD_OBJS:%.o=../audiohd/%.ll) |
|
115 |
|
116 warlock: $(WARLOCK_OK) |
|
117 |
|
118 $(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/audiohd.wlcmd warlock_ddi.files |
|
119 $(WARLOCK) -c $(WLCMD_DIR)/audiohd.wlcmd $(WARLOCK_OUT) \ |
|
120 -l ../warlock/ddi_dki_impl.ll |
|
121 $(TOUCH) $@ |
|
122 |
|
123 %.ll: $(UTSBASE)/common/io/audio/drv/audiohd/audiohd.c \ |
|
124 $(UTSBASE)/common/io/audio/drv/audiohd/audiohd.h |
|
125 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< |
|
126 |
|
127 warlock_ddi.files: |
|
128 cd ../warlock; pwd; $(MAKE) warlock |