📄 gnu.mpd
字号:
#----------------------------------------------------------------------------
# GNU Makefile
#
# @file <%project_file%>
#
# gnu.mpd,v 1.65 2003/12/15 18:50:46 jwillemsen 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(idl_files)%>
TAO_IDL = <%idl_compiler%>
IDL_FILES =<%foreach(idl_files)%> <%noextension(idl_file)%><%endfor%>
IDL_SRC = $(foreach ext, C.cpp S.cpp, $(foreach file, $(IDL_FILES), $(file)$(ext)))
<%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%>
ifndef <%grouped_source_files->component_name%>
<%grouped_source_files->component_name%> = \
<%foreach(grouped_source_files)%>
<%grouped_source_file%><%fornotlast(" \\")%>
<%endfor%>
endif # <%grouped_source_files->component_name%>
<%foreach(grouped_source_files)%>
ifneq (,$(findstring <%grouped_source_file%>, $(<%grouped_source_files->component_name%>)))
FILES += $(<%grouped_source_file%>)
endif # <%grouped_source_file%>
<%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(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(defaultlibs)%> -l<%defaultlib%><%endfor%>
<%else%>
<%if(sharedname)%>
ACE_SHLIBS =<%foreach(libs)%> -l<%lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(defaultlibs)%> -l<%defaultlib%><%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)%>
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(!exename)%>
<%if(compname)%>
CURRENT_COMPONENTS := $(shell sh $(ACE_ROOT)/bin/ace_components <%compname%>)
<%endif%>
<%foreach(requires)%>
ifeq ($(<%require%>),1)
<%endfor%>
<%foreach(avoids)%>
ifneq ($(<%avoid%>),1)
<%endfor%>
<%foreach(comps)%>
ifeq (<%comp%>, $(findstring <%comp%>, $(CURRENT_COMPONENTS)))
<%endfor%>
<%foreach(comps)%>
else
<%if(staticname)%>
LIB =
<%endif%>
<%if(sharedname)%>
SHLIB =
<%endif%>
all: comp_warning
endif
<%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)%>
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)%>
<%if(compname)%>
CURRENT_COMPONENTS := $(shell sh $(ACE_ROOT)/bin/ace_components <%compname%>)
<%endif%>
<%foreach(requires)%>
ifeq ($(<%require%>),1)
<%endfor%>
<%foreach(avoids)%>
ifneq ($(<%avoid%>),1)
<%endfor%>
<%foreach(comps)%>
ifeq (<%comp%>, $(findstring <%comp%>, $(CURRENT_COMPONENTS)))
<%endfor%>
BIN = $(BIN_UNCHECKED)
<%foreach(comps)%>
else
all: comp_warning
endif
<%endfor%>
<%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))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -