File: Makefile

package info (click to toggle)
transproxy 0.3-7
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 116 kB
  • ctags: 30
  • sloc: ansic: 526; makefile: 50; sh: 21
file content (40 lines) | stat: -rw-r--r-- 759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
#	Makefile for tproxy.
#
#
# Currently supported OPTIONS flags are
#	DEBUG			Print some stuff to stdout.
#	DNS_LOOKUPS		Look up the hostnames via DNS to translate
#				the HTTP request.
#	USELESS_DNS_LOOKUPS	Look up the hostnames only needed for the log
#				files. Normally turned off.
#	PAY_THE_PENALTY		Slow down if they don't use proxy directly.
#

OPTIONS=-DDNS_LOOKUPS #-DUSELESS_DNS_LOOKUPS

CC=gcc
CFLAGS=-O2 -m486 -Wall $(OPTIONS)
LDFLAGS=-s
LIBS= #-lresolv

RM=rm -f
INSTALL=install

TARGETNAME=tproxyd

tproxy:		tproxy.o
	$(CC) $(LDFLAGS) tproxy.o -o $@ $(LIBS)

tproxy.o:	tproxy.c
	$(CC) $(CFLAGS) -c tproxy.c

clean:
	$(RM) tproxy.o

dist-clean:	clean
	$(RM) tproxy

install:	tproxy
	$(INSTALL) -m 755 tproxy $(DESTDIR)/usr/sbin/$(TARGETNAME)