Rev 8351 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8351 | maxcodehac | 1 | CC = kos32-gcc |
2 | LD = kos32-ld |
||
3 | SDK_DIR = ../../../sdk |
||
5197 | serge | 4 | |
8351 | maxcodehac | 5 | |
5197 | serge | 6 | CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 |
7 | CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields |
||
8 | CFLAGS_OPT+= -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror |
||
9 | CFLAGS = -c $(CFLAGS_OPT) |
||
10 | |||
11 | INCLUDES= -I. -I../include -I$(SDK_DIR)/sources/newlib/libc/include -I$(SDK_DIR)/sources/zlib |
||
12 | |||
6324 | serge | 13 | DEFINES= -DHAVE_CONFIG_H -DHAVE_i386_pe_vec -DHAVE_i386_pei_vec -DHAVE_i386_elf32_vec |
14 | DEFINES+= -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec |
||
15 | DEFINES+= -DBINDIR="/home/autobuild/tools/win32/bin" |
||
16 | TDEFS= -DDEFAULT_VECTOR=i386_pe_vec "-DSELECT_VECS=&i386_pe_vec,&i386_pei_vec,&i386_elf32_vec,&elf32_le_vec,&elf32_be_vec" |
||
17 | TDEFS+= "-DSELECT_ARCHITECTURES=&bfd_i386_arch" |
||
5197 | serge | 18 | SRCS = \ |
19 | archive.c archures.c bfd.c bfdio.c \ |
||
6324 | serge | 20 | binary.c cache.c coff-bfd.c coffgen.c cofflink.c \ |
5197 | serge | 21 | compress.c corefile.c cpu-i386.c \ |
8357 | maxcodehac | 22 | dwarf1.c dwarf2.c elf.c elf32.c \ |
5197 | serge | 23 | elf32-gen.c elf32-i386.c elf-attrs.c \ |
24 | elf-eh-frame.c elf-ifunc.c elflink.c \ |
||
25 | elf-nacl.c elf-strtab.c elf-vxworks.c \ |
||
26 | format.c hash.c ihex.c init.c libbfd.c \ |
||
27 | linker.c merge.c opncls.c pe-i386.c \ |
||
5199 | serge | 28 | peigen.c pei-i386.c reloc.c section.c \ |
29 | simple.c srec.c stabs.c stab-syms.c \ |
||
30 | syms.c targets.c tekhex.c verilog.c |
||
5197 | serge | 31 | |
32 | |||
33 | OBJS = $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS))) |
||
34 | |||
35 | # targets |
||
36 | |||
37 | all: libbfd.a |
||
38 | |||
8351 | maxcodehac | 39 | libbfd.a : $(OBJS) Makefile |
5197 | serge | 40 | $(AR) crs libbfd.a $(OBJS) |
5199 | serge | 41 | mv -f libbfd.a $(SDK_DIR)/lib |
5197 | serge | 42 | |
43 | %.o : %.c Makefile |
||
44 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
||
45 | |||
46 | dwarf2.o : dwarf2.c Makefile |
||
8357 | maxcodehac | 47 | $(CC) $(CFLAGS) $(DEFINES) -DDEBUGDIR="\"/home/autobuild/tools/win32/lib/debug\"" $(INCLUDES) -o $@ $< |
5197 | serge | 48 | |
49 | |||
5199 | serge | 50 | targets.o : targets.c Makefile |
51 | $(CC) $(CFLAGS) $(DEFINES) $(TDEFS) $(INCLUDES) -o $@ $< |
||
52 | |||
53 | archures.o : archures.c Makefile |
||
54 | $(CC) $(CFLAGS) $(DEFINES) $(TDEFS) $(INCLUDES) -o $@ $<> |
||
8351 | maxcodehac | 55 |