makefile
来自「Linux下的socks的程序源程序,用于socks的代理服务」· 代码 · 共 113 行
TXT
113 行
# Indicate your system:OS=sun4.1# Available choices are :# 4.4bsd 4.3reno 4.3tahoe 4.3bsd# unicos5.0 unicos5.1 unicos6.0 unicos6.1 unicos7.0# sun3.5 sun4.0 sun4.0.3c sun4.1 sun5.2 solaris2.2# dynix3.0.12 dynix3.0.17# ultrix3.1 ultrix4.0# alphaOSF osf1.3# next1.0# convex# irix4# hpux9# aix3.2 aix_ps2# netBSD0.9# dgux5.4# linux# UnixWare# uts2.1 ust4# sco# bsdi## sun5.2 is the same as solaris2.2# If your system is not on this list, either pick one that's closest# and try it, or creat a new entry in the file Config.local.# make SOCKSified clientSOCKS_LIB=../../lib/libsocks.aSOCKS=-DSOCKS# or#SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect# Directory into which rtelnet program will be installed:CLIENTS_BIN_DIR=/usr/local/bin# Directory into which rtelnet's man page file will be installed:MAN_DEST_DIR=/usr/local/man# SunOS should use#RESOLV_LIB=-lresolvOTHER_CFLAGS= $(SHORTENED_RBIND) $(SOCKS)# IRIX should use the next two lines:#RESOLV_LIB=-lsun#OTHER_CFLAGS=-cckr $(SHORTENED_RBIND) $(SOCKS)# AIX should use#RESOLV_LIB=-lbsd#OTHER_CFLAGS=-D_BSD -D_NONSTD_TYPES -D_NO_PROTO -DAIX $(SHORTENED_RBIND) $(SOCKS)# SOLARIS should use#RESOLV_LIB=-lresolv -lnsl -lsocket#OTHER_CFLAGS=-DSOLARIS -Dindex=strchr -Drindex=strrchr -DUSE_DIRENT $(SHORTENED_RBIND) $(SOCKS)# Interactive Systems Unix should use# OTHER_CFLAGS = -DISC $(SHORTENED_RBIND) $(SOCKS)# LINUX should use#CC=gcc#RESOLV_LIB=#OTHER_CFLAGS=-traditional -DLINUX $(SHORTENED_RBIND) $(SOCKS)# UnixWare should use#RESOLV_LIB=-lresolv -lnsl -lsocket#OTHER_CFLAGS= -DSOLARIS -Dindex=strchr -Drindex=strrchr -DUSE_DIRENT $(SHORTENED_RBIND) $(SOCKS)#RANLIB=/bin/true#INSTALL=/usr/ucb/install# >>>---------------- Others:# Define RESOLV_LIB if your system (e.g., SunOS before 4.1.1)# doesn't search resolver library automatically.# Leave it undefined otherwise.#RESOLV_LIB=-lresolv# If your compiler or loader complains about _res_init being# an undefined symbol, then you must define RESOLV_LIB.# <<<----------------# The 'install' command is assumed to be the BSD variety (using -m to# set the file mode). If the default 'install' on your system doesn't# do that, you have to either specify an alternative one in the line below# (e.g., /usr/ucb/install) or modify the install instructions.INSTALL= installOPTIMIZE=-g#=======================================================all: echocwd cd libtelnet; ${MAKE} ${OS} CC="${CC}" OTHER_CFLAGS="$(OTHER_CFLAGS)" SOCKS="${SOCKS}" SOCKS_LIB=${SOCKS_LIB} RESOLV_LIB="${RESOLV_LIB}" OPTIMIZE="${OPTIMIZE}" cd telnet; ${MAKE} ${OS} CC="${CC}" OTHER_CFLAGS="$(OTHER_CFLAGS)" SOCKS="${SOCKS}" SOCKS_LIB=${SOCKS_LIB} 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)/man1clean: echocwd rm -f rtelnet cd libtelnet; ${MAKE} -f Makefile.generic clean cd telnet; ${MAKE} -f Makefile.generic cleanechocwd: @pwd.DEFAULT: cd libtelnet; ${MAKE} ${OS} WHAT=${WHAT} CC="${CC}" SOCKS_LIB=${SOCKS_LIB} RESOLV_LIB="${RESOLV_LIB}" cd telnet; ${MAKE} ${OS} WHAT=${WHAT} CC="${CC}" SOCKS_LIB=${SOCKS_LIB} RESOLV_LIB="${RESOLV_LIB}"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?