summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2004-12-13 16:27:26 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2004-12-13 16:27:26 +0000
commit6a136118056f04df78e62239ab20b2aa89afaaa1 (patch)
tree3691f97193f8ea6b9dc91cc0e4138c5fce4d1dbe
parent3ec81301a4d88857c3c3f54a79b065892d11d9b3 (diff)
downloadMPC-6a136118056f04df78e62239ab20b2aa89afaaa1.tar.gz
ChangeLogTag: Mon Dec 13 10:27:04 2004 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r--ChangeLog35
-rw-r--r--modules/ProjectCreator.pm11
-rw-r--r--templates/automake.mpd8
-rw-r--r--templates/bmake.mpd6
-rw-r--r--templates/em3.mpd2
-rw-r--r--templates/em3vcp.mpd2
-rw-r--r--templates/make.mpd42
-rw-r--r--templates/makedll.mpt1
-rw-r--r--templates/nmake.mpd6
-rw-r--r--templates/sle.mpd4
-rw-r--r--templates/va4icc.mpd14
-rw-r--r--templates/vc6.mpd2
-rw-r--r--templates/vc6dsp.mpd2
-rw-r--r--templates/vc7.mpd5
14 files changed, 98 insertions, 42 deletions
diff --git a/ChangeLog b/ChangeLog
index eb7e609f..24c4c5bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,38 @@
+Mon Dec 13 10:27:04 2004 Chad Elliott <elliott_c@ociweb.com>
+
+ * modules/ProjectCreator.pm:
+
+ Added a warning when an mpc file is processed, but no output
+ project file will be created. If it is an implicit project, the
+ message is only informational.
+
+ * templates/automake.mpd:
+
+ Made the -stamp file go to the output directory of the generated
+ files. Also rearranged the libs, lit_libs and pure_libs to be
+ consistent with other project types.
+
+ * templates/make.mpd:
+ * templates/makedll.mpt:
+
+ Modifications to add a 'targetoutdir' template variable which
+ determines the output location of object files, exes and
+ libraries. By default, this template variable is not set and does
+ not affect anything. Also rearranged the libs, lit_libs and
+ pure_libs to be consistent with other project types.
+
+ * templates/bmake.mpd:
+ * templates/em3vcp.mpd:
+ * templates/nmake.mpd:
+ * templates/sle.mpd:
+ * templates/va4icc.mpd:
+ * templates/vc6dsp.mpd:
+ * templates/vc7.mpd:
+
+ Rearranged the libs, lit_libs and pure_libs to be consistent with
+ other project types. The order in which they are added to the
+ project is now libs, lit_libs and then pure_libs.
+
Mon Dec 6 09:39:01 2004 Chad Elliott <elliott_c@ociweb.com>
* config/bison.mpb:
diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm
index 80d1db10..e5c71556 100644
--- a/modules/ProjectCreator.pm
+++ b/modules/ProjectCreator.pm
@@ -3437,6 +3437,17 @@ sub write_project {
($status, $error) = $self->write_install_file();
}
}
+ else {
+ my($msg) = $self->transform_file_name($self->project_file_name()) .
+ " has no useful targets.";
+
+ if ($self->{'current_input'} eq '') {
+ $self->information($msg);
+ }
+ else {
+ $self->warning($msg);
+ }
+ }
}
else {
$status = 2;
diff --git a/templates/automake.mpd b/templates/automake.mpd
index 30b83f29..e831241e 100644
--- a/templates/automake.mpd
+++ b/templates/automake.mpd
@@ -34,11 +34,11 @@ CLEANFILES += \
<%foreach(custom_type->input_file->output_files)%>
<%custom_type->input_file->output_file%> \
<%endfor%>
- <%basenoextension(custom_type->input_file)%>-stamp
+ <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basenoextension(custom_type->input_file)%>-stamp
-<%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%>: <%basenoextension(custom_type->input_file)%>-stamp
+<%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%>: <%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basenoextension(custom_type->input_file)%>-stamp
-<%basenoextension(custom_type->input_file)%>-stamp: $(srcdir)/<%custom_type->input_file%>
+<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basenoextension(custom_type->input_file)%>-stamp: $(srcdir)/<%custom_type->input_file%>
<%if(flag_overrides(custom_type->input_file, gendir))%>
mkdir -p <%flag_overrides(custom_type->input_file, gendir)%>
<%endif%>
@@ -150,7 +150,7 @@ lib<%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><
<%normalize(exename)%>_LDADD = \
<%else%>
lib<%if(sharedname)%><%normalize(sharedname)%><%else%><%normalize(staticname)%><%endif%>_la_LIBADD = \<%endif%>
-<%foreach(libs)%> lib<%lib%>.la<%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%>
+<%foreach(libs)%> lib<%lib%>.la<%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
<%endif%>
<%if(!exename)%>
<%if(header_files || inline_files || template_files || idl_files || pidl_files)%>
diff --git a/templates/bmake.mpd b/templates/bmake.mpd
index 4179112c..23d0c7c4 100644
--- a/templates/bmake.mpd
+++ b/templates/bmake.mpd
@@ -82,12 +82,12 @@ LIBFILES = \
<%foreach(libs)%>
<%lib%>$(LIBMODIFIER)$(LIB_EXT) \
<%endfor%>
-<%foreach(pure_libs)%>
- <%pure_lib%> \
-<%endfor%>
<%foreach(lit_libs)%>
<%lit_lib%>$(LIB_EXT) \
<%endfor%>
+<%foreach(pure_libs)%>
+ <%pure_lib%> \
+<%endfor%>
<%common_libs%>
<%if(resource_files && !type_is_static)%>
diff --git a/templates/em3.mpd b/templates/em3.mpd
index d64a4d23..eb97f193 100644
--- a/templates/em3.mpd
+++ b/templates/em3.mpd
@@ -69,7 +69,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo <%if(sharedname || staticname)%>/o"<%libout%>\<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.bsc"<%endif%>
<%if(type_is_binary)%>
LINK32=link.exe
-# ADD LINK32 <%systemlibs("winsock.lib commctrl.lib coredll.lib iphlpapi.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>\<%machine%>" <%endfor%>/nologo /base:"<%base("0x00100000")%>" <%stack%><%if(type_is_dynamic)%> /entry:"_DllMainCRTStartup"<%endif%> /nodefaultlib:"$(CENoDefaultLib)" /version:<%win_version("1.0")%> /subsystem:$(CESubsystem) /align:"<%align("4096")%>"<%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%> <%if(type_is_dynamic)%> /dll<%endif%> <%if(use_debug_libraries)%>/debug<%endif%> /machine:<%machine%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
+# ADD LINK32 <%systemlibs("winsock.lib commctrl.lib coredll.lib iphlpapi.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>\<%machine%>" <%endfor%>/nologo /base:"<%base("0x00100000")%>" <%stack%><%if(type_is_dynamic)%> /entry:"_DllMainCRTStartup"<%endif%> /nodefaultlib:"$(CENoDefaultLib)" /version:<%win_version("1.0")%> /subsystem:$(CESubsystem) /align:"<%align("4096")%>"<%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%> <%if(type_is_dynamic)%> /dll<%endif%> <%if(use_debug_libraries)%>/debug<%endif%> /machine:<%machine%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
<%if(link_flags_removed)%>
# SUBTRACT LINK32 <%link_flags_removed%>
<%endif%>
diff --git a/templates/em3vcp.mpd b/templates/em3vcp.mpd
index d64a4d23..eb97f193 100644
--- a/templates/em3vcp.mpd
+++ b/templates/em3vcp.mpd
@@ -69,7 +69,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo <%if(sharedname || staticname)%>/o"<%libout%>\<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.bsc"<%endif%>
<%if(type_is_binary)%>
LINK32=link.exe
-# ADD LINK32 <%systemlibs("winsock.lib commctrl.lib coredll.lib iphlpapi.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>\<%machine%>" <%endfor%>/nologo /base:"<%base("0x00100000")%>" <%stack%><%if(type_is_dynamic)%> /entry:"_DllMainCRTStartup"<%endif%> /nodefaultlib:"$(CENoDefaultLib)" /version:<%win_version("1.0")%> /subsystem:$(CESubsystem) /align:"<%align("4096")%>"<%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%> <%if(type_is_dynamic)%> /dll<%endif%> <%if(use_debug_libraries)%>/debug<%endif%> /machine:<%machine%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
+# ADD LINK32 <%systemlibs("winsock.lib commctrl.lib coredll.lib iphlpapi.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>\<%machine%>" <%endfor%>/nologo /base:"<%base("0x00100000")%>" <%stack%><%if(type_is_dynamic)%> /entry:"_DllMainCRTStartup"<%endif%> /nodefaultlib:"$(CENoDefaultLib)" /version:<%win_version("1.0")%> /subsystem:$(CESubsystem) /align:"<%align("4096")%>"<%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%> <%if(type_is_dynamic)%> /dll<%endif%> <%if(use_debug_libraries)%>/debug<%endif%> /machine:<%machine%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%machine%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%machine%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
<%if(link_flags_removed)%>
# SUBTRACT LINK32 <%link_flags_removed%>
<%endif%>
diff --git a/templates/make.mpd b/templates/make.mpd
index 73046aa9..46bd0144 100644
--- a/templates/make.mpd
+++ b/templates/make.mpd
@@ -26,7 +26,7 @@ CCC = $(CXX)
MAKEFILE = <%project_file%>
DEPENDENCIES = .depend.$(MAKEFILE)
<%if(exename)%>
-BIN = <%exename%>$(EXEEXT)
+BIN = <%targetoutdir%><%exename%>$(EXEEXT)
<%endif%>
<%foreach(platforms)%>
EXEEXT = <%exeext%>
@@ -35,13 +35,13 @@ LIBPREFIX = <%libprefix%>
<%if(arext)%>
<%if(staticname)%>
AREXT = <%arext%>
-LIB = $(LIBPREFIX)<%staticname%>.$(AREXT)
+LIB = <%targetoutdir%>$(LIBPREFIX)<%staticname%>.$(AREXT)
<%endif%>
<%endif%>
<%if(soext)%>
<%if(sharedname)%>
SOEXT = <%soext%>
-SHLIB = $(LIBPREFIX)<%sharedname%>.$(SOEXT)
+SHLIB = <%targetoutdir%>$(LIBPREFIX)<%sharedname%>.$(SOEXT)
<%foreach(configurations)%>
<%if(pic)%>
PICFLAGS = <%pic%>
@@ -67,9 +67,9 @@ TEMPINCDIR = <%tempinc%>/<%project_name%>
GENFLAGS = <%genflags(-g)%>
CPPFLAGS = $(PICFLAGS) $(GENFLAGS)<%if(cppflags)%> <%cppflags%><%endif%><%foreach(configurations)%><%if(compileflags)%> <%compileflags%><%endif%><%if(cpu)%> -DCPU=$(CPU)<%endif%><%if(tempinc)%> <%tempincopt%>$(TEMPINCDIR)<%endif%><%if(compilerflags)%> <%compilerflags%><%endif%><%if(pch_source && pchsupport)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%><%endfor%><%foreach(platforms)%><%if(extracppflags)%> <%extracppflags%><%endif%><%endfor%><%if(includes)%><%foreach(includes)%> -I<%include%><%endfor%><%endif%><%if(macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
SRC =<%if(pch_source && pchsupport)%> <%pch_source%><%endif%> <%source_files%>
-OBJS =<%if(pch_source && pchsupport)%> <%noextension(pch_source)%>.$(OBJEXT)<%endif%><%foreach(source_files)%> <%noextension(source_file)%>.$(OBJEXT)<%endfor%><%foreach(platforms)%><%if(rc)%><%foreach(resource_files)%> <%resource_file%>.$(OBJEXT)<%endfor%><%endif%><%endfor%>
+OBJS =<%if(pch_source && pchsupport)%> <%targetoutdir%><%noextension(pch_source)%>.$(OBJEXT)<%endif%><%foreach(source_files)%> <%targetoutdir%><%noextension(source_file)%>.$(OBJEXT)<%endfor%><%foreach(platforms)%><%if(rc)%><%foreach(resource_files)%> <%targetoutdir%><%resource_file%>.$(OBJEXT)<%endfor%><%endif%><%endfor%>
LDFLAGS =<%if(libpaths)%><%foreach(libpaths)%> -L<%libpath%><%endfor%><%endif%><%foreach(configurations)%><%if(linkflags)%> <%linkflags%><%endif%><%endfor%>
-LDLIBS =<%foreach(pure_libs)%> <%pure_lib%><%endfor%><%foreach(libs lit_libs)%> -l<%lib%><%endfor%><%foreach(platforms)%> <%ldlibs%><%endfor%>
+LDLIBS =<%foreach(libs lit_libs)%> -l<%lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%><%foreach(platforms)%> <%ldlibs%><%endfor%>
LINK.cc = $(LD) $(LDFLAGS)
RM = rm -f
<%if(dynamicflags)%>
@@ -102,14 +102,14 @@ specialscript:
@./specialscript $(NM) "$(OBJS)" "$(LDLIBS)" "<%if(libpaths)%><%libpaths%><%else%>.<%endif%>" <%prelink%>
@$(RM) specialscript
-<%noextension(prelink)%>.$(OBJEXT): <%prelink%>
+<%targetoutdir%><%noextension(prelink)%>.$(OBJEXT): <%prelink%>
$(COMPILE.cc) <%prelink%> $(OUTPUT_OPTION)
@$(RM) <%prelink%>
<%endif%>
<%endfor%>
<%endfor%>
-$(BIN): $(TEMPINCDIR) $(OBJS) <%foreach(configurations)%><%foreach(platforms)%><%if(prelink)%><%noextension(prelink)%>.$(OBJEXT)<%endif%><%endfor%><%endfor%>
+$(BIN): <%if(tempinc)%>$(TEMPINCDIR) <%endif%><%targetoutdir%> $(OBJS) <%foreach(configurations)%><%foreach(platforms)%><%if(prelink)%><%targetoutdir%><%noextension(prelink)%>.$(OBJEXT)<%endif%><%endfor%><%endfor%>
$(LINK.cc) $(OUTPUT_OPTION) $(OBJS) $(LDLIBS)
<%endif%>
@@ -121,7 +121,7 @@ INSTARGET = $(SHLIB)
all: $(INSTARGET) <%if(install)%>install<%else%><%if(!exename)%>install<%endif%><%endif%>
-$(SHLIB): $(TEMPINCDIR) $(OBJS)
+$(SHLIB): <%if(tempinc)%>$(TEMPINCDIR) <%endif%><%targetoutdir%> $(OBJS)
<%foreach(configurations)%><%foreach(platforms)%><%if(dld)%><%dld%> $(LDFLAGS)<%else%>$(LINK.cc)<%endif%><%endfor%><%endfor%> $(SHFLAGS) $(OUTPUT_OPTION) $(OBJS) $(LDLIBS)
<%else%>
<%if(!exename)%>
@@ -142,10 +142,15 @@ all: $(INSTARGET) <%if(install)%>install<%else%><%if(!exename)%>install<%endif%>
<%endfor%>
<%endfor%>
<%if(staticname)%>
-$(LIB): $(TEMPINCDIR) $(OBJS)
+$(LIB): <%if(tempinc)%>$(TEMPINCDIR) <%endif%><%targetoutdir%> $(OBJS)
$(AR) $(ARFLAGS) $(LIB) $(OBJS)<%foreach(configurations)%><%if(tempinc)%> `find $(TEMPINCDIR) -type f`<%endif%><%endfor%>
<%endif%>
+<%if(targetoutdir)%>
+<%targetoutdir%>:
+ @-test -d <%targetoutdir%> || mkdir -p <%targetoutdir%> 2> /dev/null || true
+
+<%endif%>
<%if(custom_types)%>
GENERATED_DIRTY =<%foreach(custom_types)%><%foreach(custom_type->input_files)%><%if(custom_type->input_file->output_files)%><%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%><%endif%><%endfor%><%endfor%>
<%foreach(custom_types)%>
@@ -205,12 +210,15 @@ $(TEMPINCDIR):
<%endif%>
<%if(pch_source && pchsupport)%>
-<%noextension(pch_source)%>.$(OBJEXT): <%pch_source%>
+<%targetoutdir%><%noextension(pch_source)%>.$(OBJEXT): <%pch_source%>
$(COMPILE.cc) <%if(pchcreate)%><%pchcreate%><%pch_header%>.gch <%endif%>$(EXPORTFLAGS) <%pch_source%> $(OUTPUT_OPTION)
<%endif%>
<%foreach(source_files)%>
-<%noextension(source_file)%>.$(OBJEXT): <%source_file%>
+<%targetoutdir%><%noextension(source_file)%>.$(OBJEXT): <%source_file%>
+<%if(targetoutdir)%>
+ @mkdir -p <%targetoutdir%><%dirname(source_file)%>
+<%endif%>
$(COMPILE.cc) <%if(pchuse && pch_source && pchsupport)%><%pchuse%><%pch_header%>.gch <%endif%>$(EXPORTFLAGS) <%source_file%> $(OUTPUT_OPTION)
<%endfor%>
@@ -219,8 +227,8 @@ $(TEMPINCDIR):
<%foreach(platforms)%>
<%if(rc)%>
<%foreach(resource_files)%>
-<%resource_file%>.$(OBJEXT): <%resource_file%>
- <%rc%> <%resource_file%> <%resource_file%>.$(OBJEXT)
+<%targetoutdir%><%resource_file%>.$(OBJEXT): <%resource_file%>
+ <%rc%> <%resource_file%> <%targetoutdir%><%resource_file%>.$(OBJEXT)
<%endfor%>
<%endif%>
@@ -232,9 +240,9 @@ INSTARGET = $(BIN)
install:
@if [ "<%install%>" != "." ]; then \
echo "Installing $(INSTARGET) -> <%install%>/$(INSTARGET)"; \
- test -d "<%install%>" || mkdir -p "<%install%>" 2> /dev/null || true; \
+ test -d "<%install%><%if(targetoutdir)%>/<%targetoutdir%><%endif%>" || mkdir -p "<%install%><%if(targetoutdir)%>/<%targetoutdir%><%endif%>" 2> /dev/null || true; \
$(RM) "<%install%>/$(INSTARGET)"; \
- $(LN) "$(PWD)/$(INSTARGET)" "<%install%>"; \
+ $(LN) "$(PWD)/$(INSTARGET)" "<%install%><%if(targetoutdir)%>/<%targetoutdir%><%endif%>"; \
fi
<%endif%>
@@ -242,9 +250,9 @@ install:
<%if(!exename)%>
install:
@if [ "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>" != "." ]; then \
- test -d "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>" || mkdir -p "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>" 2> /dev/null || true; \
+ test -d "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%><%if(targetoutdir)%>/<%targetoutdir%><%endif%>" || mkdir -p "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%><%if(targetoutdir)%>/<%targetoutdir%><%endif%>" 2> /dev/null || true; \
$(RM) "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>/$(INSTARGET)"; \
- $(LN) "$(PWD)/$(INSTARGET)" "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>"; \
+ $(LN) "$(PWD)/$(INSTARGET)" "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%><%if(targetoutdir)%>/<%targetoutdir%><%endif%>"; \
fi
<%endif%>
diff --git a/templates/makedll.mpt b/templates/makedll.mpt
index 03dd0388..e7c26af9 100644
--- a/templates/makedll.mpt
+++ b/templates/makedll.mpt
@@ -29,6 +29,7 @@ exeext =
cppflags =
arflags =
pchsupport = 1
+targetoutdir =
// ***********************************************************************
// Configuration Section
diff --git a/templates/nmake.mpd b/templates/nmake.mpd
index 5441d67d..1a01e59f 100644
--- a/templates/nmake.mpd
+++ b/templates/nmake.mpd
@@ -40,9 +40,9 @@ NULL=nul
!IF "$(DEPGEN)" == ""
!IF EXISTS("$(DEPGEN_ROOT)\depgen.pl")
-DEPGEN=perl $(DEPGEN_ROOT)\depgen.pl
+DEPGEN=perl $(DEPGEN_ROOT)\depgen.pl -t nmake
!ELSEIF EXISTS("$(ACE_ROOT)\bin\depgen.pl")
-DEPGEN=perl $(ACE_ROOT)\bin\depgen.pl
+DEPGEN=perl $(ACE_ROOT)\bin\depgen.pl -t nmake
!ENDIF
!ENDIF
@@ -137,7 +137,7 @@ RSC_PROJ=/l 0x409 /fo"$(INTDIR)\<%basenoextension(resource_file)%>.res"<%foreach
<%if(exename || sharedname || staticname)%>
<%if(type_is_binary)%>
LINK32=link.exe
-LINK32_FLAGS=<%systemlibs("advapi32.lib user32.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo /version:<%win_version("1.0")%> /subsystem:<%subsystem("windows")%><%if(type_is_dynamic)%> /dll<%endif%> <%debug_switch("/debug")%> <%if(pdb)%>/pdb:"<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.pdb<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb<%endif%><%if(type_is_static)%>$(OUTDIR)\<%staticname%><%lib_modifier%>.pdb<%endif%>" <%endif%>/machine:<%machine("I386")%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"<%if(sharedname)%> /implib:"$(OUTDIR)\<%sharedname%><%lib_modifier%>.lib"<%endif%>
+LINK32_FLAGS=<%systemlibs("advapi32.lib user32.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo /version:<%win_version("1.0")%> /subsystem:<%subsystem("windows")%><%if(type_is_dynamic)%> /dll<%endif%> <%debug_switch("/debug")%> <%if(pdb)%>/pdb:"<%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.pdb<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb<%endif%><%if(type_is_static)%>$(OUTDIR)\<%staticname%><%lib_modifier%>.pdb<%endif%>" <%endif%>/machine:<%machine("I386")%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%>$(INSTALLDIR)\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"<%if(sharedname)%> /implib:"$(OUTDIR)\<%sharedname%><%lib_modifier%>.lib"<%endif%>
<%endif%>
<%if(type_is_static)%>
LINK32=link.exe -lib
diff --git a/templates/sle.mpd b/templates/sle.mpd
index 2617eada..281b4602 100644
--- a/templates/sle.mpd
+++ b/templates/sle.mpd
@@ -35,7 +35,7 @@
RunFromDir="%rw">
<Exec
CmdLine='g++ %xup -g -o "%o" %f %libs %~other'
- OtherOptions="-Wl,--enable-auto-import -Wl,-E -lws2_32 -lmswsock -lwsock32 -lnetapi32 <%foreach(pure_libs)%>-l<%pure_lib%> <%endfor%><%foreach(lit_libs)%>-l<%lit_lib%>.lib <%endfor%><%foreach(libs)%>-l<%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>-L'<%libpath%>' <%endfor%>"/>
+ OtherOptions="-Wl,--enable-auto-import -Wl,-E -lws2_32 -lmswsock -lwsock32 -lnetapi32 <%foreach(libs)%>-l<%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%>-l<%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%>-l<%pure_lib%> <%endfor%><%foreach(libpaths)%>-L'<%libpath%>' <%endfor%>"/>
</Target>
<Target
Name="Build"
@@ -130,7 +130,7 @@
RunFromDir="%rw">
<Exec
CmdLine='g++ %xup -o "%o" %f %libs %~other'
- OtherOptions="-Wl,--enable-auto-import -Wl,-E -lws2_32 -lmswsock -lwsock32 -lnetapi32 <%foreach(pure_libs)%>-l<%pure_lib%> <%endfor%><%foreach(lit_libs)%>-l<%lit_lib%>.lib <%endfor%><%foreach(libs)%>-l<%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>-L'<%libpath%>' <%endfor%>"/>
+ OtherOptions="-Wl,--enable-auto-import -Wl,-E -lws2_32 -lmswsock -lwsock32 -lnetapi32 <%foreach(libs)%>-l<%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%>-l<%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%>-l<%pure_lib%> <%endfor%><%foreach(libpaths)%>-L'<%libpath%>' <%endfor%>"/>
</Target>
<Target
Name="Build"
diff --git a/templates/va4icc.mpd b/templates/va4icc.mpd
index 61e6d6da..83893236 100644
--- a/templates/va4icc.mpd
+++ b/templates/va4icc.mpd
@@ -94,14 +94,14 @@ option
source type (lib) "ws2_32.lib"
source type (lib) "wsock32.lib"
source type (lib) "mswsock.lib"
-<%foreach(pure_libs)%>
- source type (lib) "<%pure_lib%>"
+<%foreach(libs)%>
+ source type (lib) "<%lib%><%lib_modifier%>.lib"
<%endfor%>
<%foreach(lit_libs)%>
source type (lib) "<%lit_lib%>.lib"
<%endfor%>
-<%foreach(libs default_libs)%>
- source type (lib) "<%lib%><%lib_modifier%>.lib"
+<%foreach(pure_libs)%>
+ source type (lib) "<%pure_lib%>"
<%endfor%>
}
}
@@ -125,12 +125,12 @@ option
<%endif%>
// Libraries needed during linking
-<%foreach(pure_libs)%>
- source type (lib) "<%pure_lib%>"
-<%endfor%>
<%foreach(libs lit_libs)%>
source type (lib) "lib<%lib%>.a"
<%endfor%>
+<%foreach(pure_libs)%>
+ source type (lib) "<%pure_lib%>"
+<%endfor%>
<%if(type_is_dynamic)%>
source type (lib) "libtli_r.a"
diff --git a/templates/vc6.mpd b/templates/vc6.mpd
index 8b89a9a3..04911723 100644
--- a/templates/vc6.mpd
+++ b/templates/vc6.mpd
@@ -64,7 +64,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo <%if(sharedname || staticname)%>/o"<%libout%>\<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.bsc"<%endif%>
<%if(type_is_binary)%>
LINK32=link.exe
-# ADD LINK32 <%systemlibs("advapi32.lib user32.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo /version:<%win_version("1.0")%> /subsystem:<%subsystem("windows")%><%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%><%if(type_is_dynamic)%> /dll<%endif%> <%debug_switch("/debug")%> /machine:<%machine("I386")%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
+# ADD LINK32 <%systemlibs("advapi32.lib user32.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo /version:<%win_version("1.0")%> /subsystem:<%subsystem("windows")%><%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%><%if(type_is_dynamic)%> /dll<%endif%> <%debug_switch("/debug")%> /machine:<%machine("I386")%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
<%if(link_flags_removed)%>
# SUBTRACT LINK32 <%link_flags_removed%>
<%endif%>
diff --git a/templates/vc6dsp.mpd b/templates/vc6dsp.mpd
index 8b89a9a3..04911723 100644
--- a/templates/vc6dsp.mpd
+++ b/templates/vc6dsp.mpd
@@ -64,7 +64,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo <%if(sharedname || staticname)%>/o"<%libout%>\<%if(sharedname)%><%sharedname%><%else%><%staticname%><%endif%>.bsc"<%endif%>
<%if(type_is_binary)%>
LINK32=link.exe
-# ADD LINK32 <%systemlibs("advapi32.lib user32.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo /version:<%win_version("1.0")%> /subsystem:<%subsystem("windows")%><%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%><%if(type_is_dynamic)%> /dll<%endif%> <%debug_switch("/debug")%> /machine:<%machine("I386")%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
+# ADD LINK32 <%systemlibs("advapi32.lib user32.lib")%><%if(link_options)%> <%link_options%><%endif%> /INCREMENTAL:<%incremental("NO")%> <%foreach(libs)%><%lib%><%lib_modifier%>.lib <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(libpaths)%>/libpath:"<%libpath%>" <%endfor%>/nologo /version:<%win_version("1.0")%> /subsystem:<%subsystem("windows")%><%if(pdb)%><%if(sharedname)%> /pdb:"<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.pdb"<%else%><%if(exename)%> /pdb:"<%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.pdb"<%endif%><%endif%><%endif%><%if(type_is_dynamic)%> /dll<%endif%> <%debug_switch("/debug")%> /machine:<%machine("I386")%> /out:"<%if(sharedname)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%>\<%sharedname%><%lib_modifier%>.dll<%endif%><%if(exename)%><%if(install)%><%install%><%else%><%output_dir%><%endif%>\<%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"
<%if(link_flags_removed)%>
# SUBTRACT LINK32 <%link_flags_removed%>
<%endif%>
diff --git a/templates/vc7.mpd b/templates/vc7.mpd
index 14a13ffb..2766655b 100644
--- a/templates/vc7.mpd
+++ b/templates/vc7.mpd
@@ -18,7 +18,8 @@
IntermediateDirectory="<%intermediate_dir%>\<%noextension(project_file)%>"
ConfigurationType="<%configuration_type("2")%>"
UseOfMFC="<%use_mfc("0")%>"
- ATLMinimizesCRunTimeLibraryUsage="FALSE">
+ ATLMinimizesCRunTimeLibraryUsage="FALSE"
+ CharacterSet="<%charset("0")%>">
<Tool
Name="VCCLCompilerTool"
<%if(compile_flags)%>
@@ -73,7 +74,7 @@
AdditionalOptions="<%link_options%>"
<%endif%>
<%if(type_is_binary)%>
- AdditionalDependencies="<%foreach(pure_libs)%><%pure_lib%> <%endfor%><%foreach(lit_libs)%><%lit_lib%>.lib <%endfor%><%foreach(libs)%><%lib%><%lib_modifier%>.lib<%fornotlast(" ")%><%endfor%>"
+ AdditionalDependencies="<%foreach(libs)%><%fornotfirst(" ")%><%lib%><%lib_modifier%>.lib<%endfor%><%foreach(lit_libs)%> <%lit_lib%>.lib<%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>"
<%endif%>
<%if(exename || sharedname || staticname)%>
OutputFile="$(OutDir)\<%if(type_is_dynamic)%><%sharedname%><%lib_modifier%>.dll<%else%><%exename%><%if(use_modifier)%><%lib_modifier%><%endif%>.exe<%endif%>"