Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / intel / udmf / Makefile
blob3abdafc261dfd8011b41f9f954530ff8213a457a
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 = udmf
25 OBJECTS = $(UDMF_OBJS:%=$(OBJS_DIR)/%)
26 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
29 # Include common rules.
31 include $(UTSBASE)/intel/Makefile.intel
33 CPPFLAGS += -I$(UTSBASE)/common/io/usbgem
34 CPPFLAGS += -DVERSION=\"2.0.0\"
35 CPPFLAGS += -DUSBGEM_CONFIG_GLDv3
36 LDFLAGS += -dy -N misc/mac -N drv/ip -N misc/usba -N misc/usbgem
38 CERRWARN += -Wno-unused-value
39 CERRWARN += -Wno-unused-function
40 CERRWARN += -Wno-unused-variable
41 CERRWARN += -Wno-unused-label
43 # needs work
44 $(OBJS_DIR)/udmf_usbgem.o := SMOFF += indenting
47 # Define targets
49 ALL_TARGET = $(BINARY)
50 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
53 # Default build targets.
55 .KEEP_STATE:
57 def: $(DEF_DEPS)
59 all: $(ALL_DEPS)
61 clean: $(CLEAN_DEPS)
63 clobber: $(CLOBBER_DEPS)
65 install: $(INSTALL_DEPS)
67 # Include common targets.
69 include $(UTSBASE)/intel/Makefile.targ