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

📄 makefile

📁 this gives details of the network programming
💻
字号:
# Makefile for simple tcp client and server# This rule describes how to build a .o file from a .c file# -Wall tells gcc to print all warnings!.c.o:	gcc -c -Wall $<# on solaris we need to explicitly include the socket and name server# libraries, this because sockets are not supported by the O.S. directly,# but are a library that calls the native (XTI) network API. # Leave this commented out unless you are on a Sun running Solaris#LIBS= -lsocket -lnsl# by default Make will build the first target - so here we define the# first target "all", which depends on targets "client" and "server"all: server client client1# Here are the rules that tell make how to build the executables# named "client" and "server". If LIBS is not defined, including it# does no harm!server: server.o wrappers.o	gcc -o server wrappers.o server.o ${LIBS}client: client.o wrappers.o	gcc -o client wrappers.o client.o ${LIBS}client1: client1.o 	gcc -o client1 client1.o ${LIBS}clean: 	rm *.o server client client1 *~

⌨️ 快捷键说明

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