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 16PROGS = dumper 17 18PROGS32 = $(PROGS:%=%.32) 19PROGS64 = $(PROGS:%=%.64) 20ALLOBJS = $(PROGS32:%=%.o) $(PROGS64:%=%.o) 21 22include $(SRC)/cmd/Makefile.cmd 23include $(SRC)/cmd/Makefile.ctf 24include ../Makefile.com 25 26ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTCORE)/%) \ 27 $(PROGS64:%=$(ROOTOPTCORE)/%) 28 29LDLIBS += -lproc -L$(ROOTOPTCORE) -ldumper -R\$$ORIGIN 30LDLIBS64 += -lproc -L$(ROOTOPTCORE)/$(MACH64) -ldumper -R\$$ORIGIN/$(MACH64) 31 32# 33# We need to explicitly set the objects for some of our programs with 34# CTF so that way we can make sure that we have what we need. 35# 36dumper.32 := OBJS = dumper.32.o 37dumper.64 := OBJS = dumper.32.o 38 39# 40# This is admittedly, a bit gross. In particular we need to make sure 41# that we have debug information in the following programs. 42# 43STRIP_STABS = /bin/true 44 45.KEEP_STATE: 46 47all: $(PROGS32) $(PROGS64) 48 49install: $(ROOTOPTPROGS) 50 51clean: 52 53$(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTCORE) 54 55FRC: 56 57include ../Makefile.targ 58