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 2026 Oxide Computer Company 14# 15 16PROGS = \ 17 strftime_18091 \ 18 tznames \ 19 tzload \ 20 zoneinfo_dump 21 22SCRIPTS = \ 23 basic_tzs \ 24 tz_dump \ 25 tzname_17947 26 27PROGS32 = $(PROGS:%=%.32) 28PROGS64 = $(PROGS:%=%.64) \ 29 tzparams.64 \ 30 tzlist.64 31 32ROOTOPTDIR = $(ROOT)/opt/tz-tests 33ROOTOPTTESTS = $(ROOTOPTDIR)/tests 34ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTTESTS)/%) \ 35 $(PROGS64:%=$(ROOTOPTTESTS)/%) \ 36 $(SCRIPTS:%=$(ROOTOPTTESTS)/%) 37 38include $(SRC)/cmd/Makefile.cmd 39include $(SRC)/cmd/Makefile.ctf 40 41CSTD = $(CSTD_GNU17) 42CTF_MODE = link 43CPPFLAGS += -D_REENTRANT 44 45zoneinfo_dump.32 := LDLIBS += -lzoneinfo 46zoneinfo_dump.64 := LDLIBS64 += -lzoneinfo 47tzlist.64 := LDLIBS64 += -lzoneinfo 48 49.KEEP_STATE: 50 51all: $(PROGS32) $(PROGS64) 52 53install: $(ROOTOPTTESTS) .WAIT $(ROOTOPTPROGS) 54 55$(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR) 56 57$(ROOTOPTDIR): 58 $(INS.dir) 59 60$(ROOTOPTTESTS): $(ROOTOPTDIR) 61 $(INS.dir) 62 63$(ROOTOPTTESTS)/%: % 64 $(INS.file) 65 66$(ROOTOPTTESTS)/%: %.ksh 67 $(INS.rename) 68 69%.64: %.c 70 $(LINK64.c) -o $@ $< $(LDLIBS64) 71 $(POST_PROCESS) 72 73%.32: %.c 74 $(LINK.c) -o $@ $< $(LDLIBS) 75 $(POST_PROCESS) 76 77clobber: $(SUBDIRS) 78 $(RM) $(PROGS32) $(PROGS64) 79 80$(SUBDIRS): FRC 81 @cd $@; pwd; $(MAKE) $(TARGET) 82 83FRC: 84