diff options
author | rsc <devnull@localhost> | 2004-03-01 19:36:29 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-01 19:36:29 +0000 |
commit | aa738614530c1525b2337a3812d238b9776d51f0 (patch) | |
tree | 0e989d3bfe7b0682fb3437429086048bef8a4d9c /unix/make/Makefile.regexp | |
parent | 63dd44c8ca13354de84c4da659454526ec6750db (diff) | |
download | plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.gz plan9port-aa738614530c1525b2337a3812d238b9776d51f0.tar.bz2 plan9port-aa738614530c1525b2337a3812d238b9776d51f0.zip |
Build Unix-friendly versions directly from library.
Diffstat (limited to 'unix/make/Makefile.regexp')
-rw-r--r-- | unix/make/Makefile.regexp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/unix/make/Makefile.regexp b/unix/make/Makefile.regexp new file mode 100644 index 00000000..ec528bd4 --- /dev/null +++ b/unix/make/Makefile.regexp @@ -0,0 +1,35 @@ +LIB=libregexp9.a +VERSION=2.0 +PORTPLACE=devel/libregexp9 +NAME=libregexp9 + +OFILES=\ + regcomp.$O\ + regerror.$O\ + regexec.$O\ + regsub.$O\ + regaux.$O\ + rregexec.$O\ + rregsub.$O\ + rregaux.$O\ + +HFILES=\ + regexp9.h\ + regcomp.h\ + +all: $(LIB) + +install: $(LIB) + test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3 + test -d $(PREFIX)/man/man7 || mkdir $(PREFIX)/man/man7 + install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3 + install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7 + install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB) + install -m 0644 regexp9.h $(PREFIX)/include/regexp9.h + +test: test.$O $(LIB) + $(CC) -o test test.$O $(LIB) -L/usr/local/lib -lfmt -lutf + +test2: test2.$O $(LIB) + $(CC) -o test2 test2.$O $(LIB) -L/usr/local/lib -lfmt -lutf + |