# Makefile
# udis86 - udis86 disassembler for x86(x86-64)
#

all:
	cd libudis86 && $(MAKE)
	cd udcli && $(MAKE)
install:
	cd libudis86 && $(MAKE) install
	cd udcli && $(MAKE) install
uninstall:
	cd libudis86 && $(MAKE) uninstall
	cd udcli && $(MAKE) uninstall
standalone:
	cd libudis86 && $(MAKE) -f Makefile.standalone
clean:
	cd libudis86 && $(MAKE) clean
	cd udcli && $(MAKE) clean
test:
	nasm test32.asm -f bin -o test.bin
	udcli -32 < test.bin
	@read
	udcli -32 -att < test.bin
distclean: clean
	cd libudis86 && $(MAKE) distclean
	cd udcli && $(MAKE) distclean
	$(RM) -f config.h test.bin Makefile *.log *~ docs/*~
	$(RM) -rf autom4te*.cache
