1*8222814eSRichard Lowe# 2*8222814eSRichard Lowe# This file and its contents are supplied under the terms of the 3*8222814eSRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0. 4*8222814eSRichard Lowe# You may only use this file in accordance with the terms of version 5*8222814eSRichard Lowe# 1.0 of the CDDL. 6*8222814eSRichard Lowe# 7*8222814eSRichard Lowe# A full copy of the text of the CDDL should have accompanied this 8*8222814eSRichard Lowe# source. A copy of the CDDL is also available via the Internet at 9*8222814eSRichard Lowe# http://www.illumos.org/license/CDDL. 10*8222814eSRichard Lowe# 11*8222814eSRichard Lowe 12*8222814eSRichard Lowe# Copyright 2019, Richard Lowe. 13*8222814eSRichard Lowe 14*8222814eSRichard Loweinclude $(SRC)/cmd/Makefile.cmd 15*8222814eSRichard Loweinclude $(SRC)/test/Makefile.com 16*8222814eSRichard Lowe 17*8222814eSRichard LowePROG = test-parser 18*8222814eSRichard Lowe 19*8222814eSRichard LoweDATAFILES= mapfile.addrsize.good \ 20*8222814eSRichard Lowe mapfile.addrsize.mult \ 21*8222814eSRichard Lowe mapfile.addrsize.substring \ 22*8222814eSRichard Lowe mapfile.addrsize.superstring \ 23*8222814eSRichard Lowe mapfile.addrsize.wrong \ 24*8222814eSRichard Lowe mapfile.sizemult.good \ 25*8222814eSRichard Lowe mapfile.sizemult.noterm \ 26*8222814eSRichard Lowe mapfile.sizemult.overflow \ 27*8222814eSRichard Lowe mapfile.sizemult.twobegin \ 28*8222814eSRichard Lowe mapfile.sizemult.wrong \ 29*8222814eSRichard Lowe object.c 30*8222814eSRichard Lowe 31*8222814eSRichard LoweROOTOPTPKG = $(ROOT)/opt/elf-tests 32*8222814eSRichard LoweTESTDIR = $(ROOTOPTPKG)/tests/mapfiles/parser 33*8222814eSRichard Lowe 34*8222814eSRichard LoweCMDS = $(PROG:%=$(TESTDIR)/%) 35*8222814eSRichard Lowe$(CMDS) := FILEMODE = 0555 36*8222814eSRichard Lowe 37*8222814eSRichard LoweDATA = $(DATAFILES:%=$(TESTDIR)/%) 38*8222814eSRichard Lowe$(DATA) := FILEMODE = 0444 39*8222814eSRichard Lowe 40*8222814eSRichard Loweall: $(PROG) 41*8222814eSRichard Lowe 42*8222814eSRichard Loweinstall: all $(CMDS) $(DATA) 43*8222814eSRichard Lowe 44*8222814eSRichard Loweclobber: clean 45*8222814eSRichard Lowe -$(RM) $(PROG) 46*8222814eSRichard Lowe 47*8222814eSRichard Loweclean: 48*8222814eSRichard Lowe -$(RM) $(CLEANFILES) 49*8222814eSRichard Lowe 50*8222814eSRichard Lowe$(CMDS): $(TESTDIR) $(PROG) 51*8222814eSRichard Lowe 52*8222814eSRichard Lowe$(TESTDIR): 53*8222814eSRichard Lowe $(INS.dir) 54*8222814eSRichard Lowe 55*8222814eSRichard Lowe$(TESTDIR)/%: % 56*8222814eSRichard Lowe $(INS.file) 57