makefile

来自「STUN 协议源程序,已在LINUX上编译通过」· 代码 · 共 63 行

TXT
63
字号
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 + =
减小字号Ctrl + -
显示快捷键?