| 1 | --- redir-2.2.1/Makefile 1999-12-26 12:51:55.000000000 -0800 |
| 2 | +++ src/Makefile 2017-02-15 13:07:10.577481896 -0800 |
| 3 | @@ -15,7 +15,8 @@ |
| 4 | # if your system needs any additional libraries (solaris, for example, |
| 5 | # needs the ones commented out below), edit this line. |
| 6 | |
| 7 | -EXTRA_LIBS = #-lnsl -lsocket |
| 8 | +#EXTRA_LIBS = #-lnsl -lsocket |
| 9 | +EXTRA_LIBS = -llog |
| 10 | |
| 11 | # add additional compiler flags here. Some useful ones are: |
| 12 | # |
| 13 | @@ -27,7 +28,7 @@ |
| 14 | ### end of user configuration section |
| 15 | |
| 16 | # redir requires gcc. if you're lucky, another compiler might work. |
| 17 | -CC = gcc |
| 18 | +#CC = gcc |
| 19 | |
| 20 | # if your system lacks getopt_long, remove the comment from this line |
| 21 | OBJS = redir.o $(GETOPT_OBJS) |
| 22 | @@ -51,6 +52,9 @@ |
| 23 | redir: ${OBJS} |
| 24 | ${CC} ${LDFLAGS} -o redir ${OBJS} ${LIBS} |
| 25 | |
| 26 | +install: all |
| 27 | + install redir $(PREFIX)/bin |
| 28 | + install redir.man $(PREFIX)/share/man/man1/redir.1 |
| 29 | |
| 30 | |
| 31 | |