1# 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. 6# 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. 10# 11 12# 13# Copyright (c) 2018, Joyent, Inc. 14# 15 16# 17# Path to the base of the uts directory tree (usually /usr/src/uts). 18# 19UTSBASE = ../.. 20 21# 22# Define the module and object file sets. 23# 24MODULE = usbgem 25OBJECTS = $(USBGEM_OBJS:%=$(OBJS_DIR)/%) 26ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 27 28# 29# Include common rules. 30# 31include $(UTSBASE)/intel/Makefile.intel 32 33# 34# The USBGEM has support for various different features. We use 35# these pre-processor macros to define the set we care about. 36# 37CPPFLAGS += \ 38 -DUSBGEM_CONFIG_GLDv3 \ 39 -DMODULE \ 40 -DGEN_CONFIG_FMA \ 41 -DUSBGEM_CONFIG_MAC_PROP \ 42 -DVERSION=\"1.6\" 43 44CERRWARN += $(CNOWARN_UNINIT) 45CERRWARN += -_gcc=-Wno-parentheses 46CERRWARN += -_gcc=-Wno-switch 47CERRWARN += -_gcc=-Wno-unused-variable 48CERRWARN += -_gcc=-Wno-unused-label 49CERRWARN += -_gcc=-Wno-unused-function 50 51# needs work 52SMOFF += all_func_returns 53 54 55LDFLAGS += -dy -N misc/mac -N drv/ip -N misc/usba 56 57# 58# Define targets 59# 60ALL_TARGET = $(BINARY) 61INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 62 63# 64# Default build targets. 65# 66.KEEP_STATE: 67 68def: $(DEF_DEPS) 69 70all: $(ALL_DEPS) 71 72clean: $(CLEAN_DEPS) 73 74clobber: $(CLOBBER_DEPS) 75 76install: $(INSTALL_DEPS) 77 78# Include common targets. 79# 80include $(UTSBASE)/intel/Makefile.targ 81