makefile
来自「this gives details of the network progra」· 代码 · 共 31 行
TXT
31 行
# Makefile for simple udp client and echo 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 SolarisLIBS= -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# 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 gcc -o server server.o ${LIBS}client: client.o gcc -o client client.o ${LIBS}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?