📄 gnu.mpd
字号:
# -*- Makefile -*-
#----------------------------------------------------------------------------
# GNU Makefile
#
# @file <%project_file%>
#
# gnu.mpd,v 1.81 2004/03/29 14:04:51 elliott_c Exp
#
# This file was automatically generated by MPC. Any changes made directly to
# this file will be lost the next time it is generated.
#
#----------------------------------------------------------------------------
<%marker(top)%>
MAKEFILE = <%project_file%>
DEPENDENCY_FILE = .depend.<%project_file%>
<%if(exename)%>
BIN_UNCHECKED = <%exename%>
<%endif%>
<%if(staticname)%>
## LIB may be set to empty later on in this file
LIB_UNCHECKED = lib<%staticname%>.a
LIB = $(LIB_UNCHECKED)
<%if(!sharedname)%>
static_libs_only = 1
<%endif%>
<%endif%>
<%if(sharedname)%>
## SHLIB may be set to empty later on in this file
SHLIB_UNCHECKED = lib<%sharedname%>.$(SOEXT)
SHLIB = $(SHLIB_UNCHECKED)
<%endif%>
<%if(tao)%>
ifndef TAO_ROOT
TAO_ROOT = $(ACE_ROOT)/TAO
endif
ifndef CIAO_ROOT
CIAO_ROOT = $(TAO_ROOT)/CIAO
endif
<%endif%>
<%if(grouped_source_files)%>
<%foreach(grouped_source_files)%>
<%grouped_source_file%> = \
<%foreach(grouped_source_file->files)%>
<%noextension(grouped_source_file->file)%><%fornotlast(" \\")%>
<%endfor%>
<%endfor%>
FILES += \
<%foreach(grouped_source_files)%>
$(<%grouped_source_file%>)<%fornotlast(" \\")%>
<%endfor%>
<%else%>
FILES = \
<%foreach(source_files)%>
<%noextension(source_file)%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%if(resource_files)%>
RESOURCES += \
<%foreach(resource_files)%>
<%resource_file%><%fornotlast(" \\")%>
<%endfor%>
<%endif%>
<%vpath%>
#----------------------------------------------------------------------------
# Include macros and targets
#----------------------------------------------------------------------------
<%marker(macros)%>
<%if(exename)%>
LDLIBS =<%foreach(libs)%> -l<%lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%>
<%else%>
<%if(sharedname)%>
ACE_SHLIBS =<%foreach(libs)%> -l<%lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%>
<%endif%>
<%endif%>
include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
## We don't need the ACELIB setting from wrapper_macros.GNU
ACELIB =
<%if(tao)%>
tao_dont_use_idl_make_rule = 1
include $(TAO_ROOT)/rules.tao.GNU
<%endif%>
# To build multiple executables in the same directory on AIX, it works
# best to have a template directory per project.
# The compiler/linker isn't too smart about instantiating templates...
ifdef TEMPINCDIR
TEMPINCDIR := $(TEMPINCDIR)/<%project_name%>
all: $(TEMPINCDIR)
endif
<%if(exename)%>
OUTPUT_DIRECTORY = <%if(install)%><%install%><%else%>.<%endif%>
<%else%>
OUTPUT_DIRECTORY = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
<%endif%>
all: $(OUTPUT_DIRECTORY)
$(OUTPUT_DIRECTORY):
-@mkdir -p "$(OUTPUT_DIRECTORY)"
<%if(sharedname || staticname || exename)%>
<%if(libs && libpaths)%>
LIBCHECK = $(shell for lib in <%libs%>; do for libpath in <%libpaths%>; do full="`echo $$libpath/lib$$lib.* $$libpath/$$lib.lib | tr ' ' '\012' | grep -v \* | head -1`"; if [ -r "$$full" ]; then break; else full=; fi; done; if [ -z "$$full" ]; then echo $$lib; exit; fi; done; echo 1)
<%else%>
LIBCHECK = 1
<%endif%>
<%else%>
LIBCHECK = 1
<%endif%>
<%if(!exename)%>
<%foreach(requires)%>
ifeq ($(<%require%>),1)
<%endfor%>
<%foreach(avoids)%>
ifneq ($(<%avoid%>),1)
<%endfor%>
ifneq ($(LIBCHECK), 1)
<%if(staticname)%>
LIB =
<%endif%>
<%if(sharedname)%>
SHLIB =
<%endif%>
all: lib_warning
endif
<%foreach(avoids)%>
else
<%if(staticname)%>
LIB =
<%endif%>
<%if(sharedname)%>
SHLIB =
<%endif%>
all: avoid_warning
endif
<%endfor%>
<%foreach(requires)%>
else
<%if(staticname)%>
LIB =
<%endif%>
<%if(sharedname)%>
SHLIB =
<%endif%>
all: require_warning
endif
<%endfor%>
<%if(tagname)%>
ifeq (,$(<%tagname%>))
<%endif%>
<%foreach(requires)%>
ifeq ($(<%require%>),1)
<%endfor%>
<%foreach(avoids)%>
ifneq ($(<%avoid%>),1)
<%endfor%>
<%foreach(avoids)%>
else
<%if(staticname)%>
LIB =
<%endif%>
<%if(sharedname)%>
SHLIB =
<%endif%>
all: avoid_warning
endif
<%endfor%>
<%foreach(requires)%>
else
<%if(staticname)%>
LIB =
<%endif%>
<%if(sharedname)%>
SHLIB =
<%endif%>
all: require_warning
endif
<%endfor%>
<%if(tagname)%>
else
<%foreach(requires)%>
ifeq ($(<%require%>),1)
<%endfor%>
<%foreach(avoids)%>
ifneq ($(<%avoid%>),1)
<%endfor%>
<%foreach(tagchecks)%>
ifeq (<%tagcheck%>, $(findstring <%tagcheck%>, $(<%tagname%>)))
<%endfor%>
<%foreach(tagchecks)%>
else
LIB =
SHLIB =
endif
<%endfor%>
<%foreach(avoids)%>
else
LIB =
SHLIB =
all: avoid_warning
endif
<%endfor%>
<%foreach(requires)%>
else
LIB =
SHLIB =
all: require_warning
endif
<%endfor%>
endif
<%endif%>
<%endif%>
<%if(exename)%>
<%foreach(requires)%>
ifeq ($(<%require%>),1)
<%endfor%>
<%foreach(avoids)%>
ifneq ($(<%avoid%>),1)
<%endfor%>
ifeq ($(LIBCHECK), 1)
BIN = $(BIN_UNCHECKED)
else
all: lib_warning
endif
<%foreach(avoids)%>
else
all: avoid_warning
endif
<%endfor%>
<%foreach(requires)%>
else
all: require_warning
endif
<%endfor%>
OBJS = $(addsuffix .o, $(notdir $(FILES)))
SRC = $(addsuffix .cpp, $(FILES))
<%endif%>
ifneq (,$(RC))
FILES += $(RESOURCES)
endif
<%if(sharedname || staticname)%>
LSRC = $(addsuffix .cpp, $(FILES))
<%endif%>
<%marker(circuit)%>
include $(ACE_ROOT)/include/makeinclude/macros.GNU
include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
<%if(install)%>
INSTALL_CHECK = <%install%>
ifeq ($(INSTALL_CHECK),)
INSTALL = $(INSTALL_CHECK)
else
ifneq ($(INSTALL_CHECK),.)
<%if(exename)%>
INSBIN = $(INSTALL_CHECK)
INSTALL = $(VBIN:%=$(INSBIN)/%$(EXEEXT))
CLEANUP_INSTALL += $(CLEANUP_BIN:%=$(INSBIN)/%$(EXEEXT))
<%endif%>
endif
endif
<%else%>
<%if(!exename)%>
INSTALL_CHECK = <%if(dllout)%><%dllout%><%else%><%libout%><%endif%>
ifeq ($(INSTALL_CHECK),.)
ifeq ($(PWD),)
PWD=$(shell pwd)
endif
INSLIB = $(PWD)
else
INSLIB = $(INSTALL_CHECK)
endif
<%endif%>
<%endif%>
<%if(sharedname || staticname)%>
include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU
<%endif%>
include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
<%if(tao)%>
include $(TAO_ROOT)/taoconfig.mk
<%endif%>
<%if(libpaths)%>
LDFLAGS +=<%foreach(libpaths)%> -L<%libpath%><%endfor%>
<%endif%>
<%if(includes)%>
CPPFLAGS +=<%foreach(includes)%> -I<%include%><%endfor%>
<%endif%>
<%if(macros)%>
CPPFLAGS +=<%foreach(macros)%> -D<%macro%><%endfor%>
<%endif%>
<%if(dynamicflags)%>
ifeq ($(shared_libs),1)
ifneq ($(SHLIB),)
CPPFLAGS +=<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
endif
endif
<%endif%>
<%if(staticflags)%>
ifeq ($(static_libs),1)
CPPFLAGS +=<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
endif
<%endif%>
#----------------------------------------------------------------------------
# Local targets
#----------------------------------------------------------------------------
<%marker(local)%>
lib_warning:
@echo This project will not be built due to the following missing library:
@echo $(LIBCHECK)
<%if(requires)%>
require_warning:
@echo This project will not be built due to one of the following missing features:
@echo<%foreach(requires)%> <%require%><%endfor%>
<%endif%>
<%if(avoids)%>
avoid_warning:
@echo This project will not be built due to one of the following enabled features:
@echo<%foreach(avoids)%> <%avoid%><%endfor%>
<%endif%>
<%if(custom_types)%>
<%foreach(custom_types)%>
<%if(custom_types->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))%><%flag_overrides(custom_type->input_file, gendir)%>/<%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%>
<%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.
.NOTPARALLEL:
<%endif%>
<%endfor%>
<%foreach(custom_type->input_file->output_files)%><%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%><%fornotlast(" ")%><%endfor%>: <%custom_type->input_file%><%if(custom_type->dependent)%> <%custom_type->command%>$(EXEEXT)<%endif%>
<%custom_type->command%> <%if(pch_header)%><%if(custom_type->pch_option)%><%custom_type->pch_option%><%pch_header%> <%endif%><%endif%><%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%custom_type->input_file%> <%if(custom_type->output_option)%><%custom_type->output_option%> $@<%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.
ifneq ($(shell echo $(GENERATED_DIRTY) | tr ' ' '\012' | egrep -vi '\.c(c|pp|xx)?$$'),)
$(addprefix $(VDIR), $(OBJS)): $(GENERATED_DIRTY)
$(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)%>
<%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%>
ADDITIONAL_IDL_TARGETS +=<%foreach(idl_files)%> <%if(flag_overrides(idl_file, gendir))%><%flag_overrides(idl_file, gendir)%>/<%basenoextension(idl_file)%>$(IDL_CLIENT_HDR_EXT)<%else%><%noextension(idl_file)%>$(IDL_CLIENT_HDR_EXT)<%endif%><%endfor%>
## We really only want the generated source files, but there's no
## way to get just the cpp files from the custom_type output files in MPC
<%foreach(custom_types)%>
<%foreach(custom_type->input_files)%>
<%if(custom_type->input_file->output_files)%>
<%foreach(custom_type->input_file->output_files)%>
FORCED_IDL_STUBS := $(FORCED_IDL_STUBS:<%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%>=)
<%endfor%>
<%endif%>
<%endfor%>
<%endfor%>
idl_stubs: $(ADDITIONAL_IDL_TARGETS)
ifneq ($(FORCED_IDL_STUBS),)
$(FORCED_IDL_STUBS): idl_stubs
endif
<%endif%>
<%endif%>
<%if(exename)%>
ifndef kylix
$(BIN): $(addprefix $(VDIR), $(OBJS))
$(LINK.cc) $(LDFLAGS) $(CC_OUTPUT_FLAG) $@ $^ $(VLDLIBS) $(POSTLINK)
else
$(BIN): $(addprefix $(VDIR), $(OBJS))
$(LINK.cc) $(LDFLAGS) $(CC_OUTPUT_FLAG) $(VLDLIBS) $(BORINITEXEOBJ) $(POSTLINK) $^, $@,,
endif
<%endif%>
realclean: clean
ifneq ($(GENERATED_DIRTY),)
-$(RM) -r $(GENERATED_DIRTY)
endif
<%marker(bottom)%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -