Unleashed v1.4
[unleashed.git] / usr / src / test / libc-tests / tests / regex / Makefile
blob81eb44efec5c96bc9f9df3baf60d287ce174161d
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.
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.
13 # Copyright 2018 Nexenta Systems, Inc.
16 include $(SRC)/Makefile.master
18 ROOTOPTPKG= $(ROOT)/opt/libc-tests
19 TESTDIR= $(ROOTOPTPKG)/tests/regex
20 DATADIR= $(TESTDIR)/data
22 PROG= testregex
24 SHPROG= regex_test
26 DATA= basic.dat basic.out \
27 categorize.dat categorize.out \
28 forcedassoc.dat forcedassoc.out \
29 leftassoc.dat leftassoc.out \
30 nullsubexpr.dat nullsubexpr.out \
31 repetition.dat repetition.out \
32 rightassoc.dat rightassoc.out
34 include $(SRC)/cmd/Makefile.cmd
36 CERRWARN += -Wno-parentheses
37 CERRWARN += -Wno-uninitialized
38 CERRWARN += -Wno-clobbered
40 # needs work
41 SMOFF += all_func_returns,testing_index_after_use
43 CMDS= $(PROG:%=$(TESTDIR)/%) $(SHPROG:%=$(TESTDIR)/%)
44 $(CMDS):= FILEMODE=0555
45 TESTDATA= $(DATA:%=$(DATADIR)/%)
46 $(TESTDATA):= FILEMODE=0444
48 .KEEP_STATE:
50 all: $(PROG)
52 $(CMDS): $(TESTDIR)
54 $(TESTDATA): $(DATADIR)
56 install: all $(CMDS) $(TESTDATA)
58 clean:
60 $(TESTDIR) $(DATADIR):
61 $(INS.dir)
63 $(TESTDIR)/%: %
64 $(INS.file)
66 $(TESTDIR)/%: %.sh
67 $(INS.rename)
69 $(DATADIR)/%: data/%
70 $(INS.file)
72 include $(SRC)/cmd/Makefile.targ