Subversion Repositories Kolibri OS

Rev

Rev 5199 | Rev 8351 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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