-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 1.07 KB
/
Makefile
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
# Makefile for transconnect
CFLAGS = -Wall -fPIC
LDFLAGS = -shared
LINUX_LDLIBS = -ldl
SUN_LDFLAGS = -G
SUN_LDLIBS = -lsocket -lnsl
all: tconn.so tconn-localres.so tconn-tcpdns.so tconn-localtcp.so
tconn.so: tconn.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LINUX_LDLIBS) -o tconn.so tconn.c
tconn-localres.so: tconn.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LINUX_LDLIBS) -D USE_LOCAL_RESOLV_CONF -o tconn-localres.so tconn.c
tconn-tcpdns.so: tconn.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LINUX_LDLIBS) -D USE_TCP_FOR_DNS -o tconn-tcpdns.so tconn.c
tconn-localtcp.so: tconn.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LINUX_LDLIBS) -D USE_LOCAL_RESOLV_CONF -D USE_TCP_FOR_DNS -o tconn-localtcp.so tconn.c
bsd: tconn.c
$(CC) $(CFLAGS) $(LDFLAGS) -o tconn.so tconn.c -D_BSD_HACK_
sun: tconn.c
$(CC) $(SUN_LDFLAGS) $(SUN_LDLIBS) -o tconn.so tconn.c
install: all
mkdir -p $(HOME)/.tconn
chmod 700 $(HOME)/.tconn
cp -f tconn*so $(HOME)/.tconn/
cp -f --backup=t -S .bak tconn.conf $(HOME)/.tconn/
cp -f README.orig $(HOME)/.tconn/
cp -f INSTALL $(HOME)/.tconn/
cat tconn.cat
clean:
rm -f tconn*so
.PHONY: clean