📄 makefile
字号:
#### Uncomment one of the following:
## Visual C++
CFLAGS = -GX -Os
CC = cl
LIBS = wsock32.lib
## Borland C++
#CFLAGS =
#CC = bcc32
#LIBS =
.SUFFIXES: .cpp
.cpp.obj:
$(CC) -c $(CFLAGS) $<
#### Major targets #####################################################
all: basic-client.exe basic-server.exe
ctags:
ctags *.cpp *.h
clean:
rm -f *.obj *.bak
distclean: clean
rm -f *.exe *.swp
#### Common dependencies ###############################################
main.obj: main.cpp
ws-util.obj: ws-util.cpp ws-util.h
#### Basic Winsock client ##############################################
BASIC_CLIENT_OBJS = basic-client.obj main.obj ws-util.obj
basic-client.exe: $(BASIC_CLIENT_OBJS)
$(CC) $(BASIC_CLIENT_OBJS) $(LIBS)
basic-client.obj: basic-client.cpp ws-util.h
#### Basic Winsock server ##############################################
BASIC_SERVER_OBJS = basic-server.obj main.obj ws-util.obj
basic-server.exe: $(BASIC_SERVER_OBJS)
$(CC) $(BASIC_SERVER_OBJS) $(LIBS)
basic-server.obj: basic-server.cpp ws-util.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -