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 2024 Oxide Computer Company 14# 15 16PROGS = mkobj checker 17SCRIPTS = overwrite 18 19ROOTOPTDIR = $(ROOT)/opt/util-tests/tests 20ROOTOPTCML = $(ROOTOPTDIR)/cpmvln 21ROOTOPTPROGS = $(PROGS:%=$(ROOTOPTCML)/%) $(SCRIPTS:%=$(ROOTOPTCML)/%) 22 23include $(SRC)/cmd/Makefile.cmd 24include $(SRC)/cmd/Makefile.cmd.64 25include $(SRC)/cmd/Makefile.ctf 26 27CSTD = $(GNU_C99) 28CTF_MODE = link 29mkobj := LDLIBS += -lsocket 30 31.KEEP_STATE: 32 33all: $(PROGS) 34 35install: $(ROOTOPTPROGS) 36 37clean: 38 $(RM) *.o 39 40$(ROOTOPTPROGS): $(PROGS) $(ROOTOPTCML) 41 42$(ROOTOPTDIR): 43 $(INS.dir) 44 45$(ROOTOPTCML): $(ROOTOPTDIR) 46 $(INS.dir) 47 48$(ROOTOPTCML)/%: % 49 $(INS.file) 50 51$(ROOTOPTCML)/%: %.ksh 52 $(INS.rename) 53 54clobber: clean 55 $(RM) $(PROGS) 56 57FRC: 58