2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
17 # This makefile drives the production of the iwn driver kernel module.
19 # intel architecture dependent
23 # Path to the base of the uts directory tree (usually /usr/src/uts).
28 # Define firmware location & files
30 FWDIR
= $(UTSBASE
)/common
/io
/iwn
/fw-iw
31 FWFILES
= iwlwifi-100-5.ucode iwlwifi-1000-3.ucode iwlwifi-105-6.ucode \
32 iwlwifi-135-6.ucode iwlwifi-2000-6.ucode iwlwifi-2030-6.ucode \
33 iwlwifi-4965-2.ucode iwlwifi-5000-2.ucode iwlwifi-5150-2.ucode \
34 iwlwifi-6000-4.ucode iwlwifi-6000g2a-6.ucode iwlwifi-6000g2b-6.ucode \
38 # Define the module and object file sets.
41 OBJECTS
= $(IWN_OBJS
:%=$(OBJS_DIR
)/%)
42 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
43 ROOTFIRMWARE
= $(FWFILES
:%=$(ROOT_FIRMWARE_DIR
)/$(MODULE
)/%)
46 # Include common rules.
48 include $(UTSBASE
)/intel
/Makefile.intel
53 ALL_TARGET
= $(BINARY
) $(CONFMOD
) $(ITUMOD
)
54 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOTFIRMWARE
)
56 LDFLAGS
+= -dy
-Nmisc
/mac
-Nmisc
/net80211
-Ndrv
/random
-Ndrv
/ip
59 # Default build targets.
69 clobber: $(CLOBBER_DEPS
)
75 install: $(INSTALL_DEPS
)
78 # Include common targets.
80 include $(UTSBASE
)/intel
/Makefile.targ