import less(1)
[unleashed/tickless.git] / usr / src / uts / intel / usbgem / Makefile
blobd2617b2409db79497e47733fde0735d49b631b85
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) 2014 Joyent, Inc. All rights reserved.
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 LDFLAGS += -dy -N misc/mac -N drv/ip -N misc/usba
54 # Define targets
56 ALL_TARGET = $(BINARY)
57 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
60 # Default build targets.
62 .KEEP_STATE:
64 def: $(DEF_DEPS)
66 all: $(ALL_DEPS)
68 clean: $(CLEAN_DEPS)
70 clobber: $(CLOBBER_DEPS)
72 install: $(INSTALL_DEPS)
74 # Include common targets.
76 include $(UTSBASE)/intel/Makefile.targ