diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-13 00:27:06 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-13 00:27:06 +0000 |
commit | 53b02e6d166e8d13ad1242625309abaa7473e6e1 (patch) | |
tree | c0aed2f8902f5e7b70854383ddb2bed06679990a /gcc/config/t-darwin | |
parent | d8570d9f7c08fc74ca5c02afe2ae03dc7bdb54a1 (diff) | |
download | gcc-53b02e6d166e8d13ad1242625309abaa7473e6e1.tar.gz |
* config/darwin.h: Make pretty.
* config/t-darwin (config/darwin.h.rebuild): Add.
(build/slashify): Add.
* config/slashify.c: Add.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170097 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/t-darwin')
-rw-r--r-- | gcc/config/t-darwin | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/config/t-darwin b/gcc/config/t-darwin index 24a7b90c3e2..3abc198476f 100644 --- a/gcc/config/t-darwin +++ b/gcc/config/t-darwin @@ -17,6 +17,20 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. +build/slashify: $(srcdir)/config/slashify.c + $(COMPILER_FOR_BUILD) $< -o $@ + +$(srcdir)/config/darwin.h: config/darwin.h.rebuild + +config/darwin.h.rebuild: build/slashify + @if [ ! -e $(srcdir)/config/darwin.h \ + -o $(srcdir)/config/darwin.h -nt config/darwin.h ]; then \ + { test -d config || mkdir config; } && \ + cp -p $(srcdir)/config/darwin-sections.def \ + config/darwin-sections.def && \ + build/slashify < $(srcdir)/config/darwin.h >config/darwin.h; \ + fi + darwin.o: $(srcdir)/config/darwin.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h $(REAL_H) insn-config.h \ conditions.h insn-flags.h output.h insn-attr.h flags.h $(TREE_H) expr.h \ |