summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@samba.org>1999-01-05 09:13:15 +0000
committerAlexandre Oliva <oliva@samba.org>1999-01-05 09:13:15 +0000
commit56e26d5a2897d36ebc2bf4925845c09871713930 (patch)
treebc1d20daf840cb786cb0f963cc5432082ce85189
parent34db2204b23d7d8832a311591a08aa79b1b899e4 (diff)
downloadsamba-56e26d5a2897d36ebc2bf4925845c09871713930.tar.gz
samba-56e26d5a2897d36ebc2bf4925845c09871713930.tar.xz
samba-56e26d5a2897d36ebc2bf4925845c09871713930.zip
Modified BROKEN_CC rule in .c.o so that it doesn't rely on basename,
using sed instead. Systems that lack `-o' abilities are very likely to lack basename too. Also modified the rules .c.po and .c.po32 so that the .o file is renamed to .po*.o, since a later `mv' will take care of removing the `.o' suffix
-rw-r--r--source/Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Makefile.in b/source/Makefile.in
index 9f080c44d23..982c3407597 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -293,7 +293,7 @@ MAKEDIR = || exec false; \
@echo Compiling $*.c
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< \
-o $@ @MAINT@ -Wp,-MD,.deps/$@
-@BROKEN_CC@ -mv `basename $@` $@
+@BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
@MAINT@ @sed 's|^'`echo $@ | sed 's,.*/,,'`':|$@:|' \
@MAINT@ <.deps/$@ >.deps/$@d && \
@MAINT@ rm -f .deps/$@ && : >.deps/.stamp
@@ -307,7 +307,7 @@ MAKEDIR = || exec false; \
@echo Compiling $*.c with @PICFLAG@
@$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< \
-o $*.po.o @MAINT@ -Wp,-MD,.deps/$@
-@BROKEN_CC@ -mv `basename $@` $@
+@BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po$$%.o%'` $@.o
@MAINT@ @sed 's|^'`echo $*\.po\.o | sed 's,.*/,,'`':|$@:|' \
@MAINT@ <.deps/$@ >.deps/$@d && \
@MAINT@ rm -f .deps/$@ && : >.deps/.stamp
@@ -323,6 +323,7 @@ MAKEDIR = || exec false; \
@echo Compiling $*.c with @PICFLAG@ and -32
@$(CC) -32 -I. -I$(srcdir) $(FLAGS) @PICFLAG@ -c $< \
-o $*.po32.o @MAINT@ -Wp,-MD,.deps/$@
+@BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.po32$$%.o%'` $@.o
@MAINT@ @sed 's|^'`echo $*.po32.o | sed 's,.*/,,'`':|$@:|' \
@MAINT@ <.deps/$@ >.deps/$@d && \
@MAINT@ rm -f .deps/$@ && : >.deps/.stamp