blob: 6c566468d0cccdc30c3cf5ab91e75d237e183902 [file] [log] [blame]
NAT64 = alpha amd64 arm64 ia64 mips64 parisc64 powerpc64 s390x sh64 sparc64 tile64
NAT32 = arm avr32 blackfin c6x cris frv h8300 hexagon i386 m32r m68k microblaze mips32 mn10300 openrisc parisc32 powerpc32 s390 score sh32 sparc32 tile32 unicore32 xtensa
COMP = arm-C mips-C parisc-C powerpc-C s390-C sparc-C tile-C x86-C
N32 = mips-n32 x32
ALL = $(NAT64) $(NAT32) $(COMP) $(N32)
RES = $(foreach i,$(ALL),$(i).res)
all: $(RES)
@$(foreach i,$(ALL),diff -u $(i).res tables/$(i);)
clean:
@rm -f *.res
%.res: %.tab defs calls
@cpp -E <$< `m4 -DABI=$* defs | awk '{print "-D"$$1"="$$2}'` |grep -v '^#'> $@