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