diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2003-08-15 19:03:03 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2003-08-15 19:03:03 +0000 |
commit | 11e5708e667116c404a058973d7615ccf0077acd (patch) | |
tree | 600d7e4e6a49b0ec69b56d2b472a307a41473a53 | |
parent | 4c1018d6bf7facf4a3ec6e60ff9ad1c4e2ee52dc (diff) | |
download | MPC-11e5708e667116c404a058973d7615ccf0077acd.tar.gz |
ChangeLogTag: Fri Aug 15 14:02:22 2003 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r-- | templates/make.mpd | 16 | ||||
-rw-r--r-- | templates/makedll.mpt | 26 |
2 files changed, 39 insertions, 3 deletions
diff --git a/templates/make.mpd b/templates/make.mpd index 1ed00143..c94f7e66 100644 --- a/templates/make.mpd +++ b/templates/make.mpd @@ -20,10 +20,14 @@ SHLIB = lib<%sharedname%>.$(SOEXT) SOEXT = <%soext%> <%endfor%> <%foreach(configurations)%> +<%if(pic)%> CPPFLAGS += <%pic%> +<%endif%> <%endfor%> <%foreach(platforms)%> +<%if(shflags)%> SHFLAGS = <%shflags%> +<%endif%> <%endfor%> <%endif%> <%foreach(configurations)%> @@ -106,15 +110,18 @@ $(BIN): $(OBJS) <%endif%> <%if(sharedname)%> -<%if(sharedname)%> INSTARGET = $(SHLIB) + +all: $(INSTARGET) <%if(install)%>install<%else%><%if(!exename)%>install<%endif%><%endif%> <%else%> <%if(staticname)%> INSTARGET = $(LIB) + +all: $(INSTARGET) <%if(install)%>install<%else%><%if(!exename)%>install<%endif%><%endif%> <%endif%> <%endif%> -all: $(INSTARGET) <%if(install)%>install<%else%><%if(!exename)%>install<%endif%><%endif%> +<%if(sharedname)%> $(SHLIB): $(OBJS) $(LINK.cc) $(SHFLAGS) $(OUTPUT_OPTION) $(OBJS) $(LDLIBS) @@ -146,6 +153,11 @@ install: <%endif%> clean: -$(RM) $(OBJS) +<%foreach(configurations)%> +<%if(clean)%> + -$(RM) -r <%clean%> +<%endif%> +<%endfor%> realclean: clean -$(RM) <%if(exename)%>$(BIN)<%else%>$(SHLIB) $(LIB)<%endif%><%if(install)%> <%install%>/$(INSTARGET)<%endif%> diff --git a/templates/makedll.mpt b/templates/makedll.mpt index 0e11a706..b3e1519c 100644 --- a/templates/makedll.mpt +++ b/templates/makedll.mpt @@ -3,7 +3,7 @@ conditional_include "common" configurations = gcc soext = so -cppflags = +cppflags = -O gcc { cxx = g++ @@ -15,6 +15,7 @@ SunCC { cxx = CC pic = -KPIC linkflags = -library=Cstd -library=Crun + clean = SunWS_cache platforms = solaris } @@ -24,6 +25,19 @@ aCC { platforms = hpux } +xlC_r { + cxx = xlC_r + platforms = aix +} + +SGICC { + cxx = CC + pic = -KPIC + linkflags = -Wl,-woff,84 + clean = ii_files + platforms = irix +} + linux { shflags = -shared ldlibs = -ldl -lpthread @@ -39,3 +53,13 @@ hpux { shflags = -b ldlibs = -lxti -lpthread -lrt -ldld } + +aix { + soext = a + ldlibs = -ldl +} + +irix { + shflags = -shared + ldlibs = -lsocket -ldl -lnsl -lgen -lpthread +} |