File: Makefile

package info (click to toggle)
redir 2.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 144 kB
  • ctags: 82
  • sloc: ansic: 1,335; makefile: 49
file content (29 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (2)
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
CC = gcc

# if your system lacks getopt_long, remove the comment from this line
OBJS = redir.o # getopt/getopt.o getopt/getopt1.o

# if your system lacks strrchr() or strdup(), or you want TCP wrappers
# support, edit this line
CFLAGS = -O2 -Wall -DUSE_TCP_WRAPPERS # -DNEED_STRRCHR -DNEED_STRDUP
LDFLAGS = -s

# solaris, and others, may also need these libraries to link
# also edit here if you're using the TCP wrappers code
LIBS = -lwrap #-lnsl -lsocket
# 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 *.o redir core

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