| # Select target OS. TARGET must match a system for which COPTS and LIBS are |
| # correctly defined below. |
| # You can set it on make's command line. eg: make TARGET=solaris |
| # This is for Linux 2.4 with netfilter |
| COPTS.linux24 = -O2 -DNETFILTER |
| COPTS.linux22 = -O2 -DUSE_GETSOCKNAME |
| COPTS.solaris = -O2 -fomit-frame-pointer -DSOLARIS |
| LIBS.solaris = -lnsl -lsocket |
| # This is for Solaris 8 on UltraSparc2 processor |
| COPTS.solarisv9 = -O6 -mcpu=v9 -fomit-frame-pointer -DSOLARIS |
| LIBS.solarisv9 = -lnsl -lsocket |
| # This is for OpenBSD 3.0 |
| # - use -DSTATTIME=0 to disable statistics, else specify an interval in |
| # - use -DTPROXY to compile with transparent proxy support. |
| CFLAGS = -Wall $(COPTS) $(DEBUG) -DSTATTIME=0 -DTPROXY |
| $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) |
| $(CC) $(CFLAGS) -c -o $@ $< |
| rm -f *.[oas] *~ core haproxy test nohup.out gmon.out |