makefile
来自「eCos1.31版」· 代码 · 共 62 行
TXT
62 行
common_sources = \ ../../Utils/common/Properties.cpp \ ../../Utils/common/Collections.cpp \ ../../Utils/common/eCosStd.cpp \ ../../Utils/common/eCosThreadUtils.cpp \ ../../Utils/common/eCosTrace.cpp \ ../common/eCosTestUtils.cpp \ ../common/eCosTestSocket.cpp \ ../common/TestResource.cpp \ ../common/ResetAttributes.cpp \ ../common/eCosTest.cpp \ ../common/eCosTestSerial.cpp \ ../common/eCosTestDownloadFilter.cpp \ ../common/eCosTestSerialFilter.cppcommon_objects = $(notdir $(common_sources:.cpp=.o))all_sources = $(common_sources) ../common/ser_filter.cppprograms = ser_filterCXX=g++ifeq ($(shell uname), SunOS)# SunOSLIBS := -lpthread -lsocket -lxnet -lstdc++else# LinuxLIBS := -lpthread -efence -lstdc++endif# Look in these directories for source/make filesVPATH = .:../common:../../Utils/common# FlagsCPPFLAGS=-I../../Utils/common -I../commonCXXFLAGS=-g -O2 -Wall -D_REENTRANT -D_DEBUG $(CPPFLAGS)%.d: %.cpp $(SHELL) -ec '$(CC) -MM $(CPPFLAGS) $< \ | sed '\''s#\($*\)\.o[ :]*#\1.o $@ : #g'\'' > $@; \ [ -s $@ ] || rm -f $@'%.o: %.cpp $(CXX) -c $(CXXFLAGS) -o $@ $<.PHONY: allall: $(programs)ser_filter: $(common_objects) ser_filter.o $(CXX) -o $@ $(CXXFLAGS) $(LIBPATH) $(LIBS) $^.PHONY: cleanclean: rm -f *.o *.d rm -f $(programs)# include the dependency filesinclude $(notdir $(all_sources:.cpp=.d))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?