17
18 ROOTOPTPKG= $(ROOT)/opt/libc-tests
19 TESTDIR= $(ROOTOPTPKG)/tests/regex
20 DATADIR= $(TESTDIR)/data
21
22 PROG= testregex
23
24 SHPROG= regex_test
25
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
33
34 include $(SRC)/cmd/Makefile.cmd
35
36 CERRWARN += -_gcc=-Wno-parentheses
37 CERRWARN += -_gcc=-Wno-uninitialized
38 CERRWARN += -_gcc=-Wno-clobbered
39
40 # needs work
41 SMOFF += all_func_returns,testing_index_after_use
42
43 CMDS= $(PROG:%=$(TESTDIR)/%) $(SHPROG:%=$(TESTDIR)/%)
44 $(CMDS):= FILEMODE=0555
45 TESTDATA= $(DATA:%=$(DATADIR)/%)
46 $(TESTDATA):= FILEMODE=0444
47
48 .KEEP_STATE:
49
50 all: $(PROG)
51
52 $(CMDS): $(TESTDIR)
53
54 $(TESTDATA): $(DATADIR)
55
56 install: all $(CMDS) $(TESTDATA)
57
|
17
18 ROOTOPTPKG= $(ROOT)/opt/libc-tests
19 TESTDIR= $(ROOTOPTPKG)/tests/regex
20 DATADIR= $(TESTDIR)/data
21
22 PROG= testregex
23
24 SHPROG= regex_test
25
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
33
34 include $(SRC)/cmd/Makefile.cmd
35
36 CERRWARN += -_gcc=-Wno-parentheses
37 CERRWARN += $(CNOWARN_UNINIT)
38 CERRWARN += -_gcc=-Wno-clobbered
39
40 # needs work
41 SMOFF += all_func_returns,testing_index_after_use
42
43 CMDS= $(PROG:%=$(TESTDIR)/%) $(SHPROG:%=$(TESTDIR)/%)
44 $(CMDS):= FILEMODE=0555
45 TESTDATA= $(DATA:%=$(DATADIR)/%)
46 $(TESTDATA):= FILEMODE=0444
47
48 .KEEP_STATE:
49
50 all: $(PROG)
51
52 $(CMDS): $(TESTDIR)
53
54 $(TESTDATA): $(DATADIR)
55
56 install: all $(CMDS) $(TESTDATA)
57
|