Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater#
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# uts/sparc/usb_as/Makefile
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# This makefile drives the production of the usb_audio driver
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# kernel module. sparc architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterUTSBASE = ../..
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Define the module and object file sets.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE = usb_as
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOBJECTS = $(USB_AS_OBJS:%=$(OBJS_DIR)/%)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterWARLOCK_OUT = $(USB_AS_OBJS:%.o=%.ll)
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterWARLOCK_OK = $(MODULE).ok
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntWLCMD_DIR = $(UTSBASE)/common/io/warlock
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(UTSBASE)/sparc/Makefile.sparc
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# lint pass one enforcement
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCFLAGS += $(CCVERBOSE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# do not remove depends on amsrc2. If removed, amsrc2 gets unloaded when
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# usb_ac_dacf gets unloaded
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonLDFLAGS += -dy -Nmisc/usba -Nmisc/audiosup -Nmisc/mixer -Nmisc/amsrc2
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Define targets
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsALL_TARGET = $(BINARY)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic UpdaterLINT_TARGET = $(MODULE).lint
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# For now, disable these lint checks; maintainers should endeavor
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# to investigate and remove these for maximum lint coverage.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Please do not carry these forward to new Makefiles.
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater#
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson.KEEP_STATE:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterall: $(ALL_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterdef: $(DEF_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean: $(CLEAN_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclobber: $(CLOBBER_DEPS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewslint: $(LINT_DEPS)
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updatermodlintlib: $(MODLINTLIB_DEPS)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontclean.lint: $(CLEAN_LINT_DEPS)
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updaterinstall: $(INSTALL_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Include common targets.
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater#
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater# Defines for local commands.
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews#
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsWARLOCK = warlock
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterWLCC = wlcc
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic UpdaterTOUCH = touch
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsSCCS = sccs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTEST = test
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# lock_lint rules
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater#
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic UpdaterUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic UpdaterMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Warlock targets
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews%.wlcmd:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterwarlock: $(WARLOCK_OK)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater warlock_standalone warlock_with_usba warlock_with_sada
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(TOUCH) $(WARLOCK_OK)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterwarlock_with_sada: usb_as_with_sada.wlcmd \
4104e236f71eb5108fcfda6711878a97f6f4a8e7Automatic Updater $(WARLOCK_OUT) \
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater warlock_audiosup.files warlock_amsrc2.files warlock_mixer.files
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_sada.wlcmd $(WARLOCK_OUT) \
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater -l ../warlock/ddi_dki_impl.ll
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater
f132a836c4e386b1af045dd8fe7106ae61b90bffAutomatic Updaterwarlock_with_usba: usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater warlock_ddi.files warlock_ohci.files warlock_usba.files \
c6a0f4ae1d7183a16ffb196b86b647f870694796Automatic Updater warlock_ehci.files warlock_uhci.files
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files usb_as.wlcmd
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater -l ../warlock/ddi_dki_impl.ll
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater
9c446b72069d0ab9f710502f4d7048e50875fccbAutomatic Updater%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_as/%.c
e85565067cf73f8cc21ee29b11761659f1d47ee9Automatic Updater $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterwarlock_usba.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../usba;pwd; $(MAKE) warlock
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterwarlock_ohci.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../ohci;pwd; $(MAKE) warlock
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updaterwarlock_uhci.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../uhci;pwd; $(MAKE) warlock
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updaterwarlock_ehci.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../ehci;pwd; $(MAKE) warlock
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterwarlock_ddi.files:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater @cd ../warlock; pwd; $(MAKE) warlock
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterwarlock_audiosup.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../audiosup; pwd; $(MAKE) warlock
5ecad47f69b3fd945472ab2900a9ff826a7ce2f6Automatic Updater
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updaterwarlock_amsrc2.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../amsrc2; pwd; $(MAKE) warlock
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updaterwarlock_mixer.files:
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updater @cd ../mixer; pwd; $(MAKE) warlock
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews