summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2003-10-16 14:03:48 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2003-10-16 14:03:48 +0000
commit4c3318ab050d0c8df3de339c542247092cc5b98e (patch)
tree8fd2400b7ab938506adb8e1d1f86d916fe47f324
parentc997695fd368058f5a1b3670c9b54b4ac305b4ce (diff)
downloadMPC-4c3318ab050d0c8df3de339c542247092cc5b98e.tar.gz
ChangeLogTag: Thu Oct 16 09:03:11 2003 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r--modules/Creator.pm1
-rw-r--r--templates/make.mpd19
-rw-r--r--templates/makedll.mpt18
3 files changed, 23 insertions, 15 deletions
diff --git a/modules/Creator.pm b/modules/Creator.pm
index c3526711..2058ee3e 100644
--- a/modules/Creator.pm
+++ b/modules/Creator.pm
@@ -570,6 +570,7 @@ sub fill_type_name {
## by a space. This value could be a space separated list.
$name =~ s/_$//;
$name =~ s/_\s/ /g;
+ $name =~ s/\s_/ /g;
## If any one word is capitalized then capitalize each word
if ($name =~ /[A-Z][0-9a-z_]+/) {
diff --git a/templates/make.mpd b/templates/make.mpd
index 03d390ed..b78035e1 100644
--- a/templates/make.mpd
+++ b/templates/make.mpd
@@ -37,7 +37,11 @@ SHFLAGS = <%shflags%>
TEMPINCDIR = <%tempinc%>/<%project_name%>
<%endif%>
<%endfor%>
-CPPFLAGS = $(PICFLAGS)<%if(cppflags)%> <%cppflags%><%endif%><%foreach(configurations)%><%if(tempinc)%> <%tempincopt%>$(TEMPINCDIR)<%endif%><%endfor%><%foreach(platforms)%><%if(extraflags)%> <%extraflags%><%endif%><%endfor%><%foreach(configurations)%><%if(compilerflags)%> <%compilerflags%><%endif%><%endfor%><%if(pch_header)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%><%if(includes)%><%foreach(includes)%> -I<%include%><%endfor%><%endif%><%if(macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
+GENFLAGS = -g
+CPPFLAGS = $(PICFLAGS) $(GENFLAGS)<%if(cppflags)%> <%cppflags%><%endif%><%foreach(configurations)%><%if(tempinc)%> <%tempincopt%>$(TEMPINCDIR)<%endif%><%endfor%><%foreach(platforms)%><%if(extracppflags)%> <%extracppflags%><%endif%><%endfor%><%foreach(configurations)%><%if(compilerflags)%> <%compilerflags%><%endif%><%endfor%><%if(pch_header)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%><%if(includes)%><%foreach(includes)%> -I<%include%><%endfor%><%endif%><%if(macros)%><%foreach(macros)%> -D<%macro%><%endfor%><%endif%>
+<%if(arflags)%>
+ARFLAGS = <%arflags%>
+<%endif%>
<%if(idl_files)%>
IDL_FILES =<%foreach(idl_files)%> <%noextension(idl_file)%><%endfor%>
IDL_SRC =<%foreach(idl_files)%> <%noextension(idl_file)%>C.cpp <%noextension(idl_file)%>S.cpp<%endfor%>
@@ -61,10 +65,11 @@ OUTPUT_OPTION = -o $@
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)%>
<%if(custom_types->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%>
+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)%>
@@ -132,7 +137,7 @@ $(LIB): $(OBJS)
INSTARGET = $(BIN)
install:
@echo "Installing $(INSTARGET) -> <%install%>/$(INSTARGET)"
- @mkdir -p "<%install%>"
+ @-test -d "<%install%>" || mkdir -p "<%install%>" 2> /dev/null || true
@$(RM) "<%install%>/$(INSTARGET)"
@ln -s "$(PWD)/$(INSTARGET)" "<%install%>"
@@ -140,7 +145,7 @@ install:
<%else%>
<%if(!exename)%>
install:
- @mkdir -p "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>"
+ @-test -d "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>" || mkdir -p "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>" 2> /dev/null || true
@$(RM) "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>/$(INSTARGET)"
@ln -s "$(PWD)/$(INSTARGET)" "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>"
diff --git a/templates/makedll.mpt b/templates/makedll.mpt
index 86cd18e0..50c2416a 100644
--- a/templates/makedll.mpt
+++ b/templates/makedll.mpt
@@ -3,7 +3,8 @@ conditional_include "common"
configurations = gcc
soext = so
-cppflags = -O
+cppflags =
+arflags =
// ***********************************************************************
// Configuration Section
@@ -56,9 +57,9 @@ SGICC {
// ***********************************************************************
tru64 {
- extraflags = -D__USE_STD_IOSTREAM
- shflags = -shared /usr/lib/libcxxstd.a
- ldlibs = -ltli -lrt
+ extracppflags = -D__USE_STD_IOSTREAM
+ shflags = -shared /usr/lib/libcxxstd.a
+ ldlibs = -ltli -lrt
}
linux {
@@ -88,7 +89,8 @@ irix {
}
lynxos {
- soext =
+ soext =
+ extracppflags = -D__NO_INCLUDE_WARN__
}
macos {
@@ -104,7 +106,7 @@ unixware {
}
qnx {
- shflags = -shared
- ldlibs = -lsocket
- extraflags = -D__GCC_BUILTIN
+ shflags = -shared
+ ldlibs = -lsocket
+ extracppflags = -D__GCC_BUILTIN
}