23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
cp $< $@
# generating C source in make… yaaay
define arch =
${TMP}/type.$(1).%.$(2).i: type.$(1).$(2).i def.%.i ${TMP}
echo '#ifndef KItype' > $$@
echo '#define KItype' >> $$@
cat def.$$*.i >> $$@
cat $$< >> $$@
echo '#endif' >> $$@
endef
$(eval $(call arch,x86,32))
$(eval $(call arch,x86,64))
|
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
cp $< $@
# generating C source in make… yaaay
define arch =
${TMP}/type.$(1).%.$(2).i: type.$(1).$(2).i def.%.i ${TMP}
echo '#ifndef KItype' > $$@
echo '#define KItype' >> $$@
cat $$< >> $$@
cat def.$$*.i >> $$@
echo '#endif' >> $$@
endef
$(eval $(call arch,x86,32))
$(eval $(call arch,x86,64))
|