rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 1 | LIB=libregexp9.a |
| 2 | VERSION=2.0 |
| 3 | PORTPLACE=devel/libregexp9 |
| 4 | NAME=libregexp9 |
| 5 | |
| 6 | OFILES=\ |
| 7 | regcomp.$O\ |
| 8 | regerror.$O\ |
| 9 | regexec.$O\ |
| 10 | regsub.$O\ |
| 11 | regaux.$O\ |
| 12 | rregexec.$O\ |
| 13 | rregsub.$O\ |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 14 | |
| 15 | HFILES=\ |
| 16 | regexp9.h\ |
| 17 | regcomp.h\ |
| 18 | |
| 19 | all: $(LIB) |
| 20 | |
| 21 | install: $(LIB) |
rsc | d3a2506 | 2005-01-16 21:32:01 +0000 | [diff] [blame] | 22 | mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7 |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 23 | install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3 |
| 24 | install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7 |
rsc | d3a2506 | 2005-01-16 21:32:01 +0000 | [diff] [blame] | 25 | mkdir -p $(PREFIX)/lib |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 26 | install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB) |
rsc | 7e91400 | 2005-01-21 06:51:27 +0000 | [diff] [blame] | 27 | mkdir -p $(PREFIX)/include |
rsc | aa73861 | 2004-03-01 19:36:29 +0000 | [diff] [blame] | 28 | install -m 0644 regexp9.h $(PREFIX)/include/regexp9.h |
| 29 | |
| 30 | test: test.$O $(LIB) |
| 31 | $(CC) -o test test.$O $(LIB) -L/usr/local/lib -lfmt -lutf |
| 32 | |
| 33 | test2: test2.$O $(LIB) |
| 34 | $(CC) -o test2 test2.$O $(LIB) -L/usr/local/lib -lfmt -lutf |
| 35 | |