-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.in
88 lines (69 loc) · 2.37 KB
/
Makefile.in
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Makefile used by configure to create real Makefile
CC=@CC@
SHLIB_EXT=@SHLIB_EXT@
prefix=@prefix@
exec_prefix = @exec_prefix@
libexecdir = @libexecdir@
sysconfdir = @sysconfdir@
libdir = @libdir@
bindir = @bindir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
SHELL = /bin/sh
MKINSTALLDIRS = ${SHELL} mkinstalldirs
SHCC = ${CC} -fPIC
INSPECT = inspectsocks
SAVE = saveme
LIB_NAME = libtsocks
COMMON = common
PARSER = parser
VALIDATECONF = validateconf
SCRIPT = tsocks
SHLIB_MAJOR = 1
SHLIB_MINOR = 8
SHLIB = ${LIB_NAME}.${SHLIB_EXT}.${SHLIB_MAJOR}.${SHLIB_MINOR}
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
INCLUDES = -I.
LIBS = @LIBS@
SPECIALLIBS = @SPECIALLIBS@
SHOBJS = ${OBJS:.o=.so}
OBJS= tsocks.o
TARGETS= ${SHLIB} ${UTIL_LIB} ${SAVE} ${INSPECT} ${VALIDATECONF}
all: ${TARGETS}
${VALIDATECONF}: ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o
${SHCC} ${CFLAGS} ${INCLUDES} -o ${VALIDATECONF} ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o ${LIBS}
${INSPECT}: ${INSPECT}.c ${COMMON}.o
${SHCC} ${CFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS}
${SAVE}: ${SAVE}.c
${SHCC} ${CFLAGS} ${INCLUDES} -o ${SAVE} ${SAVE}.c
${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o
${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib ${LDFLAGS} -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS}
ln -sf ${SHLIB} ${LIB_NAME}.${SHLIB_EXT}
%.so: %.c
${SHCC} ${CFLAGS} ${INCLUDES} -c ${CC_SWITCHES} $< -o $@
%.o: %.c
${SHCC} ${CFLAGS} ${INCLUDES} -c ${CC_SWITCHES} $< -o $@
install: ${TARGETS} installscript installlib installman
installscript:
${MKINSTALLDIRS} "${DESTDIR}${bindir}"
${INSTALL} ${SCRIPT} ${DESTDIR}${bindir}
installlib:
${MKINSTALLDIRS} "${DESTDIR}${libdir}"
${INSTALL} ${SHLIB} ${DESTDIR}${libdir}
ln -sf ${SHLIB} ${DESTDIR}${libdir}/${LIB_NAME}.${SHLIB_EXT}.${SHLIB_MAJOR}
ln -sf ${LIB_NAME}.${SHLIB_EXT}.${SHLIB_MAJOR} ${DESTDIR}${libdir}/${LIB_NAME}.${SHLIB_EXT}
installman:
${MKINSTALLDIRS} "${DESTDIR}${mandir}/man1"
${INSTALL_DATA} tsocks.1 ${DESTDIR}${mandir}/man1/
${MKINSTALLDIRS} "${DESTDIR}${mandir}/man8"
${INSTALL_DATA} tsocks.8 ${DESTDIR}${mandir}/man8/
${MKINSTALLDIRS} "${DESTDIR}${mandir}/man5"
${INSTALL_DATA} tsocks.conf.5 ${DESTDIR}${mandir}/man5/
clean:
-rm -f *.so *.so.* *.dylib *.dylib.* *.o *~ ${TARGETS}
distclean: clean
-rm -f config.cache config.log config.h Makefile