Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / intel / usbgem / Makefile
blob17994e8ed3c9070e80e16ea7eeb48b7064179434
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
5 # 1.0 of the CDDL.
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).
19 UTSBASE = ../..
22 # Define the module and object file sets.
24 MODULE = usbgem
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.
37 CPPFLAGS += \
38 -DUSBGEM_CONFIG_GLDv3 \
39 -DMODULE \
40 -DGEN_CONFIG_FMA \
41 -DUSBGEM_CONFIG_MAC_PROP \
42 -DVERSION=\"1.6\"
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
51 # needs work
52 SMOFF += all_func_returns
54 LDFLAGS += -dy -N misc/mac -N drv/ip -N misc/usba
57 # Define targets
59 ALL_TARGET = $(BINARY)
60 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
63 # Default build targets.
65 .KEEP_STATE:
67 def: $(DEF_DEPS)
69 all: $(ALL_DEPS)
71 clean: $(CLEAN_DEPS)
73 clobber: $(CLOBBER_DEPS)
75 install: $(INSTALL_DEPS)
77 # Include common targets.
79 include $(UTSBASE)/intel/Makefile.targ