diff options
author | Pasha <pasha@member.fsf.org> | 2024-02-20 18:49:50 +0000 |
---|---|---|
committer | Pasha <pasha@member.fsf.org> | 2024-02-20 18:49:50 +0000 |
commit | 5e0b8d508ed51004bd836384293be00950ee62c9 (patch) | |
tree | e3f16b1aa8b7177032ce3ec429fbad2b1d92a876 /Makerules.am | |
download | gnumach-riscv-5e0b8d508ed51004bd836384293be00950ee62c9.tar.gz gnumach-riscv-5e0b8d508ed51004bd836384293be00950ee62c9.tar.bz2 |
init gnumach copy
Diffstat (limited to 'Makerules.am')
-rw-r--r-- | Makerules.am | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Makerules.am b/Makerules.am new file mode 100644 index 0000000..5106fef --- /dev/null +++ b/Makerules.am @@ -0,0 +1,54 @@ +# Makerules: how to do some things. + +# Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc. + +# Permission to use, copy, modify and distribute this software and its +# documentation is hereby granted, provided that both the copyright +# notice and this permission notice appear in all copies of the +# software, derivative works or modified versions, and any portions +# thereof, and that both notices appear in supporting documentation. +# +# THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS +# "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY +# LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE +# USE OF THIS SOFTWARE. + +# +# Building foo.h from foo.sym. +# + +EXTRA_DIST += \ + gensym.awk +%.symc: %.sym gensym.awk + $(AWK_V) $(AWK) -f $(word 2,$^) $< > $@ +%.symc.o: %.symc config.h + $(AM_V_CC) $(COMPILE) -S -x c -o $@ $< +%.h: %.symc.o + $(AM_V_GEN) sed < $< > $@ \ + -e 's/^[^*].*$$//' \ + -e 's/^[*]/#define/' \ + -e 's/mAgIc[^-0-9]*//' + +# Makerules.mig: how to do some MIG-related things. +include Makerules.mig.am + +# +# gzip files. +# + +%.gz: % + $(GZIP_V) $(GZIP) -9 < $< > $@ + +# +# strip files. +# + +%.stripped: % + $(STRIP) -o $@ $< + +# +# Echo target. +# + +echo-%: + @echo '$* = `$($*)'\' |