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 2013 Pluribus Networks Inc.
14# Copyright 2019 Joyent, Inc.
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		= viona
26OBJECTS	= $(VIONA_OBJS:%=$(OBJS_DIR)/%)
27ROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
28CONF_SRCDIR	= $(UTSBASE)/i86pc/io/viona
29MAPFILE		= $(UTSBASE)/i86pc/io/viona/viona.mapfile
30
31#
32# Include common rules.
33#
34include $(UTSBASE)/i86pc/Makefile.i86pc
35
36#
37# Define targets
38#
39ALL_TARGET	= $(BINARY) $(SRC_CONFILE)
40INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
41
42#
43# Overrides
44#
45
46# needs work
47SMOFF += all_func_returns
48
49ALL_BUILDS	= $(ALL_BUILDSONLY64)
50DEF_BUILDS	= $(DEF_BUILDSONLY64)
51
52CFLAGS		+= $(CCVERBOSE)
53LDFLAGS		+= -dy -Ndrv/dld -Nmisc/mac -Nmisc/dls -Ndrv/vmm -Nmisc/neti
54LDFLAGS		+= -Nmisc/hook
55LDFLAGS		+= -M $(MAPFILE)
56
57#
58#	Default build targets.
59#
60.KEEP_STATE:
61
62def:		$(DEF_DEPS)
63
64all:		$(ALL_DEPS)
65
66clean:		$(CLEAN_DEPS)
67
68clobber:	$(CLOBBER_DEPS)
69
70install:	$(INSTALL_DEPS)
71
72#
73#	Include common targets.
74#
75include $(UTSBASE)/i86pc/Makefile.targ
76