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 16PROG = secmapper 17OBJS = secmapper.o 18 19# 20# These are so the common makefile targets will clean things up. 21# 22ALLOBJS = $(OBJS) 23PROGS64 = $(PROG) 24 25include $(SRC)/cmd/Makefile.cmd 26include $(SRC)/cmd/Makefile.cmd.64 27include ../Makefile.com 28 29ROOTOPTPROGS = $(PROG:%=$(ROOTOPTCORE)/%) 30 31LDLIBS += -lproc -lelf 32CSTD = $(GNU_C99) 33 34.KEEP_STATE: 35 36all: $(PROG) 37 38$(PROG): $(OBJS) 39 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 40 $(POST_PROCESS) 41 42install: $(ROOTOPTPROGS) 43 44$(ROOTOPTPROGS): $(ROOTOPTCORE) $(PROG) 45 46FRC: 47 48include ../Makefile.targ 49