Subversion Repositories Kolibri OS

Rev

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

  1. SDK_DIR:= $(abspath ../../../sdk)
  2.  
  3. LDFLAGS = -static -S -nostdlib -T $(SDK_DIR)/sources/newlib/app.lds --image-base 0
  4.  
  5. CFLAGS = -c -fno-ident -Wall -O3 -fomit-frame-pointer -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32
  6.  
  7. INCLUDES= -I $(SDK_DIR)/sources/newlib/libc/include
  8. LIBPATH:= -L $(SDK_DIR)/lib -L /home/autobuild/tools/win32/mingw32/lib
  9.  
  10. CC = kos32-gcc $(CFLAGS) $(INCLUDES)
  11. LD = kos32-ld
  12.  
  13. SOURCES = avra.c device.c parser.c expr.c mnemonic.c directiv.c macro.c file.c map.c coff.c
  14.  
  15. OBJECTS = $(SOURCES:.c=.o)
  16.  
  17. OBJ_ALL = $(OBJECTS) args.o stdextra.o
  18.  
  19. #********************************************************************
  20.  
  21. default: avra
  22.  
  23. avra: $(OBJ_ALL)
  24.         $(LD) $(OBJ_ALL) $(LDFLAGS) $(LIBPATH) -o avra -lgcc -lc.dll -lapp
  25.         objcopy avra -O binary
  26.  
  27. args.o: args.c misc.h args.h
  28. avra.o: avra.c misc.h args.h avra.h device.h
  29. device.o: device.c misc.h avra.h device.h
  30. directiv.o: directiv.c misc.h args.h avra.h device.h
  31. expr.o: expr.c misc.h avra.h
  32. file.o: file.c misc.h avra.h
  33. macro.o: macro.c misc.h args.h avra.h
  34. mnemonic.o: mnemonic.c misc.h avra.h device.h
  35. parser.o: parser.c misc.h avra.h
  36. stdextra.o: stdextra.c misc.h
  37. coff.o: coff.c coff.h
  38.  
  39. clean:
  40.         rm -f avra *.o *.p *~
  41.