📄 makefile
字号:
TARS= client.cxx server.cxx stun.cxx stun.h tlsServer.cxx udp.cxx udp.h \ Makefile rfc3489.txt\ client.sln client.vcproj server.sln server.vcproj Stun.sln \ id.pem id_key.pem root.pem \ nattestwarning.txt nattest wnattest.bat \ WinStun/resource.h WinStun/stdafx.cpp WinStun/stdafx.h \ WinStun/WinStun.cpp WinStun/WinStunDlg.cpp WinStun/WinStunDlg.h WinStun/WinStun.h \ WinStun/WinStun.rc WinStun/WinStun.vcproj \ WinStun/res/WinStun.ico WinStun/res/WinStun.manifest WinStun/res/WinStun.rc2 \ WinStunSetup/WinStunSetup.vdproj# if you chnage this version, change in stun.h too VERSION=0.96#CXXFLAGS+=-O2#LDFLAGS+=-O2 -lsslSTUNLIB=libstun.a## Alternatively, for debugging.#CXXFLAGS+=-g -O -WallLDFLAGS+=-g -O -Wall# for solaris#LDFLAGS+= -lnsl -lsocketall: server client clean: - rm *.o server client tlsServer tar: $(TARS) cd ..; tar cvfz `date +"stund/stund_$(VERSION)_$(PROG)%b%d.tgz"` \ $(addprefix stund/, $(TARS))server: server.o stun.o udp.o $(CXX) $(LDFLAGS) -o $@ $^tlsServer: tlsServer.o stun.o udp.o $(CXX) $(LDFLAGS) -o $@ $^client: client.o stun.o udp.o $(CXX) $(LDFLAGS) -o $@ $^%.o:%.cxx $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@libstun.a: stun.o udp.o ar rv $@ $<%:RCS/% co $@# Dependanciesserver.o: stun.h udp.h client.o: stun.h udp.h stun.o: stun.h udp.hudp.o: stun.h udp.h tlsServer.o: stun.h udp.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -