|
|
1.1 root 1: # Makerules: how to do some things.
2:
3: # Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc.
4:
5: # Permission to use, copy, modify and distribute this software and its
6: # documentation is hereby granted, provided that both the copyright
7: # notice and this permission notice appear in all copies of the
8: # software, derivative works or modified versions, and any portions
9: # thereof, and that both notices appear in supporting documentation.
10: #
11: # THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
12: # "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
13: # LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
14: # USE OF THIS SOFTWARE.
15:
16: #
17: # Building foo.h from foo.sym.
18: #
19:
20: EXTRA_DIST += \
21: gensym.awk
22: %.symc: %.sym gensym.awk
23: $(AWK_V) $(AWK) -f $(word 2,$^) $< > $@
24: %.symc.o: %.symc
25: $(AM_V_CC) $(COMPILE) -S -x c -o $@ $<
26: %.h: %.symc.o
27: $(AM_V_GEN) sed < $< > $@ \
28: -e 's/^[^*].*$$//' \
29: -e 's/^[*]/#define/' \
30: -e 's/mAgIc[^-0-9]*//'
31:
32: # Makerules.mig: how to do some MIG-related things.
33: include Makerules.mig.am
34:
35: #
36: # gzip files.
37: #
38:
39: %.gz: %
40: $(GZIP_V) $(GZIP) -9 < $< > $@
41:
42: #
43: # strip files.
44: #
45:
46: %.stripped: %
47: $(STRIP) -o $@ $<
48:
49: #
50: # Echo target.
51: #
52:
53: echo-%:
54: @echo '$* = `$($*)'\'
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.