blob: 25596cfe8b99964c132e8d4372a4a1b8c34bd12c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
.NOTPARALLEL:
d2c_verbose = $(d2c_verbose_@AM_V@)
d2c_verbose_ = $(d2c_verbose_@AM_DEFAULT_V@)
d2c_verbose_0 = @echo " D2C " $<;
fix_verbose = $(fix_verbose_@AM_V@)
fix_verbose_ = $(fix_verbose_@AM_DEFAULT_V@)
fix_verbose_0 = echo " FIX " `basename $$f`;
fix2_verbose = $(fix2_verbose_@AM_V@)
fix2_verbose_ = $(fix2_verbose_@AM_DEFAULT_V@)
fix2_verbose_0 = echo " FIX " `basename $<`;
# D2C_BIN =
# D2C_OUTDIR =
# D2C_ARCH =
# D2C_HEADER =
# D2C_ENCODINGS =
# D2C_MACROS =
SUFFIXES = .g
.d.g:
$(d2c_verbose)$(D2C_BIN) -d $(D2C_OUTDIR) -a $(D2C_ARCH) -H $(D2C_HEADER) $(D2C_ENCODINGS) $(D2C_MACROS) < $<
@touch $@
# Merci http://www.commandlinefu.com/commands/view/10276/grep-tab-t
untabify_disass:
find $(D2C_OUTDIR)/opcodes -name '*c' -exec grep -q $$'\t' {} \; -exec sed -i 's/\t/ /g' {} \;
|