Rev 5197 | Rev 6324 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5197 | Rev 5199 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | INCLUDES= -I. -I../include -I$(SDK_DIR)/sources/newlib/libc/include -I$(SDK_DIR)/sources/zlib |
6 | INCLUDES= -I. -I../include -I$(SDK_DIR)/sources/newlib/libc/include -I$(SDK_DIR)/sources/zlib |
Line 7... | Line 7... | ||
7 | 7 | ||
8 | DEFINES= -DHAVE_CONFIG_H -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec |
8 | DEFINES= -DHAVE_CONFIG_H -DHAVE_i386pe_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_i386_vec -DHAVE_bfd_elf32_little_generic_vec |
- | 9 | DEFINES+= -DHAVE_bfd_elf32_big_generic_vec -DBINDIR="/home/autobuild/tools/win32/bin" |
|
- | 10 | TDEFS= -DDEFAULT_VECTOR=i386pe_vec "-DSELECT_VECS=&i386pe_vec,&i386pei_vec,&bfd_elf32_i386_vec,&bfd_elf32_little_generic_vec,&bfd_elf32_big_generic_vec" |
|
Line 9... | Line 11... | ||
9 | DEFINES+= -DHAVE_bfd_elf32_big_generic_vec -DBINDIR="/home/autobuild/tools/win32/bin" |
11 | TDEFS+= "-DSELECT_ARCHITECTURES=&bfd_i386_arch" |
10 | 12 | ||
11 | SRCS = \ |
13 | SRCS = \ |
12 | archive.c archures.c bfd.c bfdio.c \ |
14 | archive.c archures.c bfd.c bfdio.c \ |
Line 17... | Line 19... | ||
17 | elf-eh-frame.c elf-ifunc.c elflink.c \ |
19 | elf-eh-frame.c elf-ifunc.c elflink.c \ |
18 | elf-nacl.c elf-strtab.c elf-vxworks.c \ |
20 | elf-nacl.c elf-strtab.c elf-vxworks.c \ |
19 | format.c hash.c ihex.c init.c libbfd.c \ |
21 | format.c hash.c ihex.c init.c libbfd.c \ |
20 | linker.c merge.c opncls.c pe-i386.c \ |
22 | linker.c merge.c opncls.c pe-i386.c \ |
21 | peigen.c reloc.c section.c simple.c \ |
23 | peigen.c pei-i386.c reloc.c section.c \ |
22 | srec.c stabs.c stab-syms.c syms.c \ |
24 | simple.c srec.c stabs.c stab-syms.c \ |
23 | targets.c tekhex.c verilog.c |
25 | syms.c targets.c tekhex.c verilog.c |
24 | 26 | ||
Line 25... | Line 27... | ||
25 | 27 | ||
Line 26... | Line 28... | ||
26 | OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))) |
28 | OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))) |
Line 27... | Line 29... | ||
27 | 29 | ||
Line 28... | Line 30... | ||
28 | # targets |
30 | # targets |
29 | 31 | ||
30 | all: libbfd.a |
32 | all: libbfd.a |
Line 31... | Line 33... | ||
31 | 33 | ||
32 | libbfd.a : $(OBJS) MAkefile |
34 | libbfd.a : $(OBJS) MAkefile |
Line 33... | Line 35... | ||
33 | $(AR) crs libbfd.a $(OBJS) |
35 | $(AR) crs libbfd.a $(OBJS) |
34 | # mv -f libbfd.a $(SDK_DIR)/lib |
36 | mv -f libbfd.a $(SDK_DIR)/lib |
Line -... | Line 37... | ||
- | 37 | ||
- | 38 | %.o : %.c Makefile |
|
- | 39 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
|
- | 40 | ||
- | 41 | dwarf2.o : dwarf2.c Makefile |
|
Line 35... | Line 42... | ||
35 | 42 | $(CC) $(CFLAGS) $(DEFINES) -DDEBUGDIR='"/home/autobuild/tools/win32/lib/debug\"' $(INCLUDES) -o $@ $< |