File: Makefile

package info (click to toggle)
redir 2.2.1-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 292 kB
  • ctags: 146
  • sloc: ansic: 2,271; sh: 673; makefile: 54
file content (56 lines) | stat: -rw-r--r-- 1,527 bytes parent folder | download | duplicates (6)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
### user configuration section

# if your system lacks getopt_long(), remove the comment from this line
GETOPT_OBJS = # getopt/getopt.o getopt/getopt1.o

# if your system lacks strrchr() or strdup(), edit this line
STR_CFLAGS = # -DNEED_STRRCHR -DNEED_STRDUP

# if you would like support for TCP wrappers (and have libwrap.a
# installed), remove these comments.

WRAP_CFLAGS = # -DUSE_TCP_WRAPPERS 
WRAP_LIBS = # -lwrap

# if your system needs any additional libraries (solaris, for example, 
# needs the ones commented out below), edit this line.

EXTRA_LIBS = #-lnsl -lsocket

# add additional compiler flags here.  Some useful ones are:
#
# -DNO_SHAPER (doesn't compile in traffic shaping code)
# -DNO_FTP (doesn't compile in FTP redirection support)

EXTRA_CFLAGS = # -DNO_SHAPER -DNO_FTP

### end of user configuration section

# redir requires gcc.  if you're lucky, another compiler might work.
CC = gcc

# if your system lacks getopt_long, remove the comment from this line
OBJS = redir.o $(GETOPT_OBJS)

CFLAGS = -O2 -Wall $(STR_CFLAGS) $(WRAP_CFLAGS) $(EXTRA_CFLAGS)
LDFLAGS = -s

# solaris, and others, may also need these libraries to link
# also edit here if you're using the TCP wrappers code
LIBS =  $(WRAP_LIBS) $(EXTRA_LIBS)
# this line should build under os/2 using syslog from
# http://r350.ee.ntu.edu.tw/~hcchu/os2/ports/dev
# submitted by: Doug LaRue (dlarue@nosc.mil)
# LIBS = -lsyslog -lsocket

all: redir

clean:
	rm -f $(OBJS) redir core

redir:		${OBJS}
	${CC} ${LDFLAGS} -o redir ${OBJS} ${LIBS}