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 (c) 2018, Joyent, Inc.
17 # Path to the base of the uts directory tree (usually /usr/src/uts).
22 # Define the module and object file sets.
25 OBJECTS
= $(USBGEM_OBJS
:%=$(OBJS_DIR
)/%)
26 ROOTMODULE
= $(ROOT_MISC_DIR
)/$(MODULE
)
29 # Include common rules.
31 include $(UTSBASE
)/intel
/Makefile.intel
34 # The USBGEM has support for various different features. We use
35 # these pre-processor macros to define the set we care about.
38 -DUSBGEM_CONFIG_GLDv3 \
41 -DUSBGEM_CONFIG_MAC_PROP \
44 CERRWARN
+= -Wno-uninitialized
45 CERRWARN
+= -Wno-parentheses
46 CERRWARN
+= -Wno-switch
47 CERRWARN
+= -Wno-unused-variable
48 CERRWARN
+= -Wno-unused-label
49 CERRWARN
+= -Wno-unused-function
52 SMOFF
+= all_func_returns
54 LDFLAGS
+= -dy
-N misc
/mac
-N drv
/ip
-N misc
/usba
59 ALL_TARGET
= $(BINARY
)
60 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
)
63 # Default build targets.
73 clobber: $(CLOBBER_DEPS
)
75 install: $(INSTALL_DEPS
)
77 # Include common targets.
79 include $(UTSBASE
)/intel
/Makefile.targ