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 = \ 17 minttl \ 18 minttl_err 19 20ROOTOPTDIR = $(ROOT)/opt/os-tests/tests 21ROOTOPTTTL = $(ROOTOPTDIR)/minttl 22ROOTOPTPROGS = $(PROGS:%=$(ROOTOPTTTL)/%) 23 24include $(SRC)/cmd/Makefile.cmd 25include $(SRC)/cmd/Makefile.cmd.64 26include $(SRC)/cmd/Makefile.ctf 27 28CSTD = $(GNU_C99) 29CTF_MODE = link 30LDLIBS += -lsocket 31CPPFLAGS += -D_XOPEN_SOURCE=700 -D__EXTENSIONS__ 32 33.KEEP_STATE: 34 35all: $(PROGS) 36 37install: $(ROOTOPTPROGS) 38 39clean: 40 $(RM) *.o 41 42$(ROOTOPTPROGS): $(PROGS) $(ROOTOPTTTL) 43 44$(ROOTOPTDIR): 45 $(INS.dir) 46 47$(ROOTOPTTTL): $(ROOTOPTDIR) 48 $(INS.dir) 49 50$(ROOTOPTTTL)/%: % 51 $(INS.file) 52 53clobber: clean 54 $(RM) $(PROGS) 55 56FRC: 57