⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 TCP/IP详解
💻
字号:
# Change the following as required:
CC	= gcc

CFLAGS	= -ansi -Wall -Dsun -D__STDC__=0
# My flags for gcc/solaris 2.3:  -ansi -Wall -Dsun -D__STDC__=0
# Add in -DGCC_STRUCT_PROBLEM for gcc versions 1.x under SunOS 4.x
# Add in -D__STDC__=0 for gcc under Solaris 2 (for Sun's screwy headers)
# Add in -D_BSD=44 for AIX 3.2.2 (see <sys/socket.h>)
# Add in -D_SOCKADDR_LEN for DEC OSF/1 (see <sys/socket.h>)

# Following line for SVR4, Solaris 2.x
LIBS	= /usr/ucblib/libucb.a -lsocket -lnsl

# Following line for 4.4BSD, BSD/386, SunOS 4.x, AIX 3.2.2, OSF/1
#LIBS	=

PROGS =	sock
OBJS = buffers.o cliopen.o crlf.o error.o loop.o main.o \
	   servopen.o sockopts.o sourcesink.o strerror.o \
	   tellwait.o writen.o
# Can delete strerror.o on systems that already support it (4.4BSD)

all:	${PROGS}

${OBJS}: sock.h

sock:	${OBJS}
		${CC} ${CCFLAGS} -o $@ ${OBJS} ${LIBS}

clean:
		rm -f ${PROGS} core core.* *.o temp.* *.out typescript*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -