⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gnu.mpd

📁 ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识
💻 MPD
📖 第 1 页 / 共 2 页
字号:
ifneq ($(<%avoid%>),1)<%endfor%>ifeq ($(LIBCHECK), 1)BIN    = $(BIN_UNCHECKED)$(EXEEXT)else  all: lib_warningendif<%foreach(avoids)%>else  all: avoid_warningendif<%endfor%><%foreach(requires)%>else  all: require_warningendif<%endfor%># If it contains ../ at all use notdir.OBJS   = $(foreach var, $(addsuffix .$(OBJEXT), $(basename $(FILES)) $(RESOURCES)), $(if $(findstring ../,$(var)),$(notdir $(var)),$(var)))SRC    = $(FILES)<%endif%><%if(sharedname || staticname)%>LSRC   = $(FILES)<%endif%><%marker(circuit)%>include $(ACE_ROOT)/include/makeinclude/macros.GNUinclude $(ACE_ROOT)/include/makeinclude/rules.common.GNUinclude $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU<%if(exename)%>ifneq ($(OUTPUT_DIRECTORY),)ifneq ($(OUTPUT_DIRECTORY),.)  INSTALL = $(VBIN:%=$(INSBIN)/%)  CLEANUP_INSTALL += $(CLEANUP_BIN:%=$(INSBIN)/%$(VAR)$(EXEEXT))endifendif<%endif%><%if(sharedname || staticname)%>include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU<%endif%><%if(pch_source)%>ACE_PCH_SOURCE = <%pch_source%>ACE_PCH_FILE   = <%basename(pch_header)%>.gchifeq ($(pchsupport),1)<%if(pch_defines)%>CPPFLAGS +=<%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%>$(addprefix $(VDIR), $(OBJS)): $(VDIR)$(ACE_PCH_FILE)$(VSHOBJS): $(VSHDIR)$(ACE_PCH_FILE)endif<%endif%>include $(ACE_ROOT)/include/makeinclude/rules.local.GNUifeq ($(VXWORKSLINK),true)include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE)endif<%foreach(source_files)%><%if(flag_overrides(source_file, buildflags))%>$(VDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>	@$(MKDIR) $(VDIR)<%dirname(source_file)%>	<%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%flag_overrides(source_file, buildflags)%> $(ACE_USE_PCH_OPT) $(CC_OUTPUT_FLAG) $@ $<	${MVCMD}ifneq ($(VSHDIR), $(VDIR))$(VSHDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>	@$(MKDIR) $(VSHDIR)<%dirname(source_file)%>	<%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%flag_overrides(source_file, buildflags)%> $(ACE_USE_PCH_OPT) $(PIC) $(CC_OUTPUT_FLAG) $@ $<endif<%else%><%if(dirname(source_file) && !contains(source_file, \.\./))%><%if(starts_with(source_file, \$) || !ends_with(source_file, \.cpp))%>$(VDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>	@$(MKDIR) $(VDIR)<%dirname(source_file)%>	<%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%>$(ACE_USE_PCH_OPT) $(CC_OUTPUT_FLAG) $@ $<	${MVCMD}ifneq ($(VSHDIR), $(VDIR))$(VSHDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>	@$(MKDIR) $(VSHDIR)<%dirname(source_file)%>	<%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%>$(ACE_USE_PCH_OPT) $(PIC) $(CC_OUTPUT_FLAG) $@ $<endif<%endif%><%endif%><%endif%><%endfor%><%if(libpaths)%>ifeq ($(VXWORKSLINK),true)LDLIBPATH     =<%foreach(libpaths)%> <%if(targetoutdir)%>-L<%libpath%>/<%targetoutdir%> <%endif%>-L<%libpath%><%endfor%><%if(linkflags)%> <%linkflags%><%endif%>elseLDFLAGS      +=<%foreach(libpaths)%> <%if(targetoutdir)%>-L<%libpath%>/<%targetoutdir%> <%endif%>-L<%libpath%><%endfor%><%if(linkflags)%> <%linkflags%><%endif%>endif<%endif%><%if(includes)%>CPPFLAGS     +=<%foreach(includes)%> -I<%include%><%endfor%><%endif%><%if(macros)%>CPPFLAGS     +=<%foreach(macros)%> -D<%macro%><%endfor%><%endif%><%if(compile_flags)%>CPPFLAGS     += <%compile_flags%><%endif%><%if(dynamicflags)%>ifeq ($(shared_libs),1)  ifneq ($(SHLIB),)    CPPFLAGS +=<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>  endifendif<%endif%><%if(staticflags)%>ifeq ($(static_libs),1)  CPPFLAGS +=<%foreach(staticflags)%> -D<%staticflag%><%endfor%><%if(exename && link_groups)%>  ifeq ($(notdir $(CXX)), g++)    LDLIBS := -Wl,--start-group $(LDLIBS) -Wl,--end-group  endif<%endif%>endif<%endif%>#----------------------------------------------------------------------------#       Local targets#----------------------------------------------------------------------------<%marker(local)%>lib_warning:	@echo <%project_name%> will not be built due to the following missing library:	@echo $(LIBCHECK)<%if(requires)%>require_warning:	@echo <%project_name%> will not be built due to one of the following disabled make macros:	@echo<%foreach(requires)%> <%require%><%endfor%><%endif%><%if(avoids)%>avoid_warning:	@echo <%project_name%> will not be built due to one of the following enabled make macros:	@echo<%foreach(avoids)%> <%avoid%><%endfor%><%endif%><%if(custom_types)%>## Some OS's have /bin/test others only have /usr/bin/testifeq ($(wildcard /bin/test), /bin/test)  TEST_EXE = /bin/testelseifeq ($(wildcard /usr/bin/test), /usr/bin/test)  TEST_EXE = /usr/bin/testendifendif<%foreach(custom_types)%><%if(custom_type->libpath)%>DYLD_LIBRARY_PATH := $(DYLD_LIBRARY_PATH):<%custom_type->libpath%>LD_LIBRARY_PATH   := $(LD_LIBRARY_PATH):<%custom_type->libpath%>SHLIB_PATH        := $(SHLIB_PATH):<%custom_type->libpath%>LIBPATH           := $(LIBPATH):<%custom_type->libpath%>PATH              := $(PATH):<%custom_type->libpath%><%endif%><%foreach(custom_type->input_files)%><%if(custom_type->input_file->output_files)%>GENERATED_DIRTY +=<%foreach(custom_type->input_file->output_files)%> <%if(flag_overrides(custom_type->input_file, gendir))%><%if(!compares(flag_overrides(custom_type->input_file, gendir),.))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%><%if(custom_type->input_file->non_source_output_files)%>OBJS_DEPEND_ON_GENERATED = 1<%endif%><%foreach(custom_type->input_file->output_files)%><%if(forlast && !forfirst)%>## More than one file is generated by the command and therefore## it can not be run in parallel.  Unfortunately, there is no way to## say that only this rule can't be run in parallel.  However, we can## determine if the generated files have already been generated.  If that's## the case, then we don't need this special rule.ifeq ($(wildcard $(GENERATED_DIRTY)), $(GENERATED_DIRTY))  ## If we can find /bin/test, then we will continue  ifneq ($(TEST_EXE),)    ## If all of the generated files are there, then we need to check    ## and make sure that the generated files are up-to-date.  If they are not    ## then we need the special rule.    ifneq ($(shell<%foreach(custom_type->input_file->output_files)%> $(TEST_EXE) <%custom_type->input_file%> -nt <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%> 2> /dev/null &&<%endfor%> echo 0),)      .NOTPARALLEL:<%if(flag_overrides(custom_type->input_file, dependent))%>    else      ## By this point, all of the generated files are here and up-to-date      ## with respect to the source file.  Now we need to make sure that      ## they are up-to-date with respect to the generation tool.  If the tool      ## is newer than the generated files, then we need the special rule.      ifneq ($(shell<%foreach(dep, flag_overrides(custom_type->input_file, dependent))%><%foreach(custom_type->input_file->output_files)%> $(TEST_EXE) <%dep%> -nt <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%> 2> /dev/null &&<%endfor%><%endfor%> echo 0),)        .NOTPARALLEL:      endif<%else%><%if(custom_type->dependent)%>    else      ## By this point, all of the generated files are here and up-to-date      ## with respect to the source file.  Now we need to make sure that      ## they are up-to-date with respect to the generation tool.  If the tool      ## is newer than the generated files, then we need the special rule.      ifneq ($(shell<%foreach(custom_type->dependent)%><%foreach(custom_type->input_file->output_files)%> $(TEST_EXE) <%custom_type->dependent%> -nt <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%> 2> /dev/null &&<%endfor%><%endfor%> echo 0),)        .NOTPARALLEL:      endif<%endif%><%endif%>    endif  else    .NOTPARALLEL:  endifelse.NOTPARALLEL:endif<%endif%><%endfor%><%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%if(!compares(flag_overrides(custom_type->input_file, gendir),.))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%fornotlast(" ")%><%endfor%>: <%custom_type->input_file%><%if(custom_type->input_file->dependencies)%> <%custom_type->input_file->dependencies%><%endif%><%if(flag_overrides(custom_type->input_file, dependent))%> <%flag_overrides(custom_type->input_file, dependent)%><%else%><%if(custom_type->dependent)%> <%custom_type->dependent%><%endif%><%endif%><%if(flag_overrides(custom_type->input_file, gendir))%><%if(!compares(flag_overrides(custom_type->input_file, gendir),.))%>	$(MKDIR) <%flag_overrides(custom_type->input_file, gendir)%><%endif%><%endif%>	<%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%if(custom_type->output_option)%><%custom_type->input_file%> <%custom_type->output_option%> $@<%else%><%custom_type->input_file%><%endif%><%if(flag_overrides(custom_type->input_file, postcommand))%><%foreach(custom_type->input_file)%>	<%flag_overrides(custom_type->input_file, postcommand)%><%endfor%><%else%><%if(custom_type->postcommand)%><%foreach(custom_type->input_file)%>	<%custom_type->postcommand%><%endfor%><%endif%><%endif%><%if(pch_header)%><%if(custom_type->pch_postrule)%><%foreach(custom_type->input_file->source_output_files)%>	@echo '#include "<%pch_header%>"' > temp.$$$$ && cat <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%> >> temp.$$$$ && mv temp.$$$$ <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%><%endfor%><%endif%><%endif%><%endif%><%endfor%><%endfor%>ifneq ($(GENERATED_DIRTY),).PRECIOUS: $(GENERATED_DIRTY)<%if(source_files)%>## If the generated files are anything but source files, we need to## ensure that those files are generated before we attempt to build anything## else.ifeq ($(OBJS_DEPEND_ON_GENERATED),1)$(VDIR)$(ACE_PCH_FILE) $(addprefix $(VDIR), $(OBJS)): $(GENERATED_DIRTY)$(VSHDIR)$(ACE_PCH_FILE) $(VSHOBJS): $(GENERATED_DIRTY)endif<%else%><%foreach(requires)%>ifeq ($(<%require%>),1)<%endfor%><%foreach(avoids)%>ifneq ($(<%avoid%>),1)<%endfor%>all: $(GENERATED_DIRTY)<%foreach(avoids)%>endif<%endfor%><%foreach(requires)%>endif<%endfor%><%endif%>endif<%endif%><%if(idl_files)%>ADDITIONAL_IDL_TARGETS +=<%foreach(idl_files)%> <%if(flag_overrides(idl_file, gendir))%><%if(!compares(flag_overrides(idl_file, gendir),.))%><%flag_overrides(idl_file, gendir)%>/<%endif%><%basenoextension(idl_file)%>$(IDL_CLIENT_HDR_EXT)<%else%><%noextension(idl_file)%>$(IDL_CLIENT_HDR_EXT)<%endif%><%endfor%>idl_stubs: $(ADDITIONAL_IDL_TARGETS)<%if(source_files)%># This assignment forces make to run the idl_stubs# target before building any of the source files.FORCED_IDL_STUBS = <%source_files%>  <%if(pch_source)%>$(ACE_PCH_SOURCE)<%endif%><%foreach(custom_types)%><%foreach(custom_type->input_files)%><%if(custom_type->input_file->source_output_files)%><%foreach(custom_type->input_file->source_output_files)%>FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%if(flag_overrides(custom_type->input_file, gendir))%><%if(!compares(flag_overrides(custom_type->input_file, gendir),.))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>=)<%endfor%><%endif%><%endfor%><%endfor%>ifneq ($(FORCED_IDL_STUBS),)$(FORCED_IDL_STUBS): idl_stubsendif<%endif%><%endif%><%if(exename)%>ifneq ($(VXWORKSLINK),true)<%if(libs && libpaths)%>ifeq ($(static_libs_only), 1)  ifeq ($(use_dep_libs), 1)    DEPLIBS = $(foreach lib,<%foreach(libs)%> <%libname_prefix%><%lib%><%endfor%> <%lit_libs%>, $(foreach libpath,<%foreach(libpaths)%><%if(targetoutdir)%> <%libpath%>/<%targetoutdir%><%endif%> <%libpath%><%endfor%>, $(wildcard $(libpath)/lib$(lib).a)))  endifendif<%endif%>$(BIN): $(addprefix $(VDIR), $(OBJS)) $(DEPLIBS)	$(LINK.cc) $(LDFLAGS) $(CC_OUTPUT_FLAG) $@ $^ $(VLDLIBS) $(POSTLINK)endif<%endif%>realclean: cleanifneq ($(GENERATED_DIRTY),)	-$(RM) -r $(GENERATED_DIRTY)endif__prebuild__:<%if(prebuild)%>	@<%eval(prebuild)%><%else%>	@-:<%endif%><%if(postbuild)%>all: __postbuild____postbuild__:	@<%eval(postbuild)%><%endif%><%marker(bottom)%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -