mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
47 lines
709 B
Plaintext
47 lines
709 B
Plaintext
|
CFLAGS=-O2
|
||
|
|
||
|
.c.o :
|
||
|
gcc $(CFLAGS) -I. -I../include -c $<
|
||
|
|
||
|
all : libbfd.a
|
||
|
|
||
|
targets.o : targets.c
|
||
|
gcc $(CFLAGS) -I. -I../include -DSELECT_VECS=&go32coff_vec,&i386aout_vec -DDEFAULT_VECTOR=go32coff_vec -c $*.c
|
||
|
|
||
|
archures.o : archures.c
|
||
|
gcc $(CFLAGS) -I. -I../include -DSELECT_ARCHITECTURES=bfd_i386_arch -c $*.c
|
||
|
|
||
|
OBJS = \
|
||
|
libbfd.o \
|
||
|
opncls.o \
|
||
|
bfd.o \
|
||
|
archive.o \
|
||
|
targets.o \
|
||
|
cache.o \
|
||
|
archures.o \
|
||
|
core.o \
|
||
|
section.o \
|
||
|
format.o \
|
||
|
syms.o \
|
||
|
reloc.o \
|
||
|
init.o \
|
||
|
ctor.o \
|
||
|
coffgen.o \
|
||
|
srec.o \
|
||
|
hash.o \
|
||
|
linker.o \
|
||
|
ecoff.o \
|
||
|
ecofflink.o \
|
||
|
elf.o \
|
||
|
aout32.o \
|
||
|
stab-sym.o \
|
||
|
i386aout.o \
|
||
|
cpu-i386.o \
|
||
|
coff-go32.o \
|
||
|
$E
|
||
|
|
||
|
libbfd.a : $(OBJS)
|
||
|
-rm libbfd.a
|
||
|
ar rvs libbfd.a $(OBJS)
|
||
|
ranlib libbfd.a
|