Commit 9428ee96 authored by Krzysztof Klis's avatar Krzysztof Klis

Mac OS X compatibility

parent ecd4b1a4
CFLAGS=-O2 -std=c99 -s -Wall -DUSE_SPLICE
CFLAGS=-O2 -std=c99 -Wall
OPTFLAGS=-s -DUSE_SPLICE
LDFLAGS=
all:
gcc $(CFLAGS) -o proxy proxy.c $(LDFLAGS)
gcc $(CFLAGS) $(OPTFLAGS) -o proxy proxy.c $(LDFLAGS)
tomato:
mipsel-uclibc-gcc $(CFLAGS) -o proxy proxy.c $(LDFLAGS)
mipsel-uclibc-gcc $(CFLAGS) $(OPTFLAGS) -o proxy proxy.c $(LDFLAGS)
openwrt:
mipsel-linux-uclibc-gcc $(CFLAGS) -o proxy proxy.c $(LDFLAGS)
mipsel-linux-uclibc-gcc $(CFLAGS) $(OPTFLAGS) -o proxy proxy.c $(LDFLAGS)
backfire:
mipsel-openwrt-linux-uclibc-gcc $(CFLAGS) -o proxy proxy.c $(LDFLAGS)
mipsel-openwrt-linux-uclibc-gcc $(CFLAGS) $(OPTFLAGS) -o proxy proxy.c $(LDFLAGS)
darwin:
gcc $(CFLAGS) -o proxy proxy.c $(LDFLAGS)
clean:
rm -f proxy proxy.exe
......@@ -4,7 +4,7 @@ This is a simple proxy daemon that allows you to forward TCP requests hitting a
## Installation
On Linux compile the software using "make". On Windows use "make" from Cygwin (http://cygwin.com). MinGW will not work, as it does not support *fork()* and *waitpid()*.
On Linux compile the software using "make". On Mac OS X use "make darwin". On Windows use "make" from Cygwin (http://cygwin.com). MinGW will not work, as it does not support *fork()* and *waitpid()*.
To build an executable for Tomato firmware (http://www.polarcloud.com/tomato) you need to have the mipsel toolchain installed. Fetch it with git:
```
......
......@@ -44,7 +44,7 @@
#include <sys/socket.h>
#include <syslog.h>
#include <unistd.h>
#include <wait.h>
#include <sys/wait.h>
#ifdef USE_SYSTEMD
#include <systemd/sd-daemon.h>
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment