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 2021 Oxide Computer Company
14#
15
16LIBRARY =	libdumper.a
17VERS =		.1
18OBJECTS =	libdumper.o
19
20include $(SRC)/lib/Makefile.lib
21include ../../Makefile.com
22
23ROOTLIBDIR = $(ROOTOPTCORE)
24ROOTLIBDIR64 = $(ROOTOPTCORE)/$(MACH64)
25
26LIBS =		$(DYNLIB)
27LDLIBS +=	-lc
28SRCDIR =	../common
29
30#
31# This program needs to deliver DWARF data for debug purposes. Therefore
32# we override the strip to make sure that we can get that.
33#
34STRIP_STABS = /bin/true
35
36
37$(ROOTLIBDIR64): $(ROOTLIBDIR)
38	$(INS.dir)
39
40.KEEP_STATE:
41
42all:	$(LIBS)
43
44include $(SRC)/lib/Makefile.targ
45