update the curl patch for 7.60.0
[AROS-Contrib.git] / scout / disassembler / makefile
blob9d5b356d52a4e56ed0ec1b8885f177b6f1ef8f8c
1 CC := gcc
2 CFLAGS := -O3
4 TARGET := disassembler.library
5 INCLUDES := -Ibfd -Iopcodes/include -isystem Include
7 include makefile.inc
9 FILES := library.c disassemble.c findstartposition.c libbfd.c libc.c object.c support.c
10 OBJS := $(FILES:%.c=%.o)
12 all: $(TARGET)
14 $(TARGET): $(OBJS) includes libopcodes
15 $(CC) $(LDFLAGS) $(OBJS) -o $@ -Lopcodes -lopcodes $(LIBS) -nostartfiles
17 includes:
18 make -C Include
20 libopcodes:
21 make -C opcodes
23 $(OBJS): %.o: %.c
24 $(CC) -c $(CFLAGS) $(INCLUDES) $<
26 disassemble.o: library.h object.h bfd/bfd.h
28 libbfd.o: libbfd.c bfd/bfd.h
30 libc.o: libc.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
38 clean:
39 rm -f *.o $(TARGET)
40 make clean -C opcodes
41 make clean -C include
43 distclean:
44 rm -f *.o $(TARGET)
45 make distclean -C opcodes
46 make clean -C include