Subversion Repositories Kolibri OS

Rev

Rev 5217 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. export CC = kos32-gcc
  3. export AR = kos32-ar
  4. export LD = kos32-ld
  5. export STRIP = kos32-strip
  6.  
  7. export SDK_DIR:= $(abspath ../../sdk)
  8.  
  9.  
  10. CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2
  11. CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
  12. CFLAGS_OPT+= -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
  13. CFLAGS   = -c $(CFLAGS_OPT)
  14.  
  15. LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds -e _DllStartup
  16. LDFLAGS+= --out-implib
  17.  
  18. SUBDIRS = libiberty bfd opcodes binutils gas ld
  19.  
  20. # targets
  21.  
  22. all:
  23.         @echo $(SDK_DIR);       \
  24.         for i in $(SUBDIRS); do \
  25.         $(MAKE) -C $$i;         \
  26.         done
  27.