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.
14 # Copyright 2022 Garrett D'Amore
18 # Path to the base of the uts directory tree (usually /usr/src/uts).
23 # Define the module and object file sets.
26 OBJECTS
= $(USBGEM_OBJS
:%=$(OBJS_DIR
)/%)
27 ROOTMODULE
= $(ROOT_MISC_DIR
)/$(MODULE
)
30 # Include common rules.
32 include $(UTSBASE
)/intel
/Makefile.intel
35 # The USBGEM has support for various different features. We use
36 # these pre-processor macros to define the set we care about.
42 CERRWARN
+= $(CNOWARN_UNINIT
)
43 CERRWARN
+= -_gcc
=-Wno-parentheses
44 CERRWARN
+= -_gcc
=-Wno-switch
45 CERRWARN
+= -_gcc
=-Wno-unused-variable
46 CERRWARN
+= -_gcc
=-Wno-unused-label
47 CERRWARN
+= -_gcc
=-Wno-unused-function
50 SMOFF
+= all_func_returns
53 LDFLAGS
+= -N misc
/mac
-N drv
/ip
-N misc
/usba
58 ALL_TARGET
= $(BINARY
)
59 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
)
62 # Default build targets.
72 clobber: $(CLOBBER_DEPS
)
74 install: $(INSTALL_DEPS
)
76 # Include common targets.
78 include $(UTSBASE
)/intel
/Makefile.targ