File: Makefile

package info (click to toggle)
socks4-server 4.3.beta2-20
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 399; sh: 52
file content (28 lines) | stat: -rw-r--r-- 1,336 bytes parent folder | download | duplicates (9)
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
# DO NOT start 'make' in this directory. Go to the top
# directory of the SOCKS package and do it from there!

#=======================================================
all: echocwd
	cd libtelnet; $(MAKE) $(OS) CC="$(CC)" OTHER_CFLAGS="$(OTHER_CFLAGS)" SOCKS="$(SOCKS)" SOCKS_LIB="$(SOCKS_LIB)" SOCKS_LIB_DEP=$(SOCKS_LIB_DEP) RESOLV_LIB="$(RESOLV_LIB)" OPTIMIZE="$(OPTIMIZE)"
	cd telnet; $(MAKE) $(OS) CC="$(CC)" OTHER_CFLAGS="$(OTHER_CFLAGS)" SOCKS="$(SOCKS)" SOCKS_LIB="$(SOCKS_LIB)" SOCKS_LIB_DEP=$(SOCKS_LIB_DEP) RESOLV_LIB="$(RESOLV_LIB)" OPTIMIZE="$(OPTIMIZE)"

install:  echocwd rtelnet
	$(INSTALL) -s -o bin -g bin -m 111 rtelnet $(CLIENTS_BIN_DIR)

install.man: echocwd
	$(INSTALL) -m 444 ../doc/socks_clients.1 $(MAN_DEST_DIR)/man1
	$(INSTALL) -m 444 ../doc/socks.conf.5 $(MAN_DEST_DIR)/man5
	$(INSTALL) -m 444 ../doc/rtelnet.1 $(MAN_DEST_DIR)/man1
	$(INSTALL) -m 444 telnet/telnet.1 $(MAN_DEST_DIR)/man1

clean: echocwd
	rm -f rtelnet
	cd libtelnet; $(MAKE) -f Makefile.generic clean
	cd telnet; $(MAKE) -f Makefile.generic clean

echocwd:
	@pwd

.DEFAULT:
	cd libtelnet; $(MAKE) $(OS) WHAT=$(WHAT) CC="$(CC)" SOCKS_LIB="$(SOCKS_LIB)" SOCKS_LIB_DEP=$(SOCKS_LIB_DEP) RESOLV_LIB="$(RESOLV_LIB)"
	cd telnet; $(MAKE) $(OS) WHAT=$(WHAT) CC="$(CC)" SOCKS_LIB="$(SOCKS_LIB)" SOCKS_LIB_DEP=$(SOCKS_LIB_DEP) RESOLV_LIB="$(RESOLV_LIB)"