4 TARGET
:= disassembler.library
5 INCLUDES
:= -Ibfd
-Iopcodes
/include -isystem Include
9 FILES
:= library.c disassemble.c findstartposition.c libbfd.c libc.c object.c support.c
10 OBJS
:= $(FILES
:%.c
=%.o
)
14 $(TARGET
): $(OBJS
) includes libopcodes
15 $(CC
) $(LDFLAGS
) $(OBJS
) -o
$@
-Lopcodes
-lopcodes
$(LIBS
) -nostartfiles
24 $(CC
) -c
$(CFLAGS
) $(INCLUDES
) $<
26 disassemble.o
: library.h object.h bfd
/bfd.h
28 libbfd.o
: libbfd.c bfd
/bfd.h
32 library.o
: library.h bfd
/bfd.h
34 object.o
: library.h object.h libc.h object_intern.h support.h bfd
/bfd.h opcodes
/include/dis-asm.h
36 support.o
: library.h support.h bfd
/bfd.h opcodes
/include/dis-asm.h
45 make
distclean -C opcodes