Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. SOURCES= $(wildcard SRC/*.c)
  2. OBJECT=$(patsubst %,OBJ/%,$(notdir $(SOURCES:.c=.o)))
  3. DEPS= const.h listx.h mikabooq.h
  4.  
  5. CFLAGS=-I /usr/include/uarm -I INCLUDE -include stdint.h
  6. LDFLAGS= -T /usr/include/uarm/ldscripts/elf32ltsarm.h.uarmcore.x \
  7.             /usr/include/uarm/crtso.o \
  8.             /usr/include/uarm/libuarm.o
  9. CC= arm-none-eabi-gcc -mcpu=arm7tdmi
  10. OBJ/%.o: SRC/%.c $(DEPS)$(OBJECT)  
  11.     $(CC) -Wall -c $(CFLAGS) $< -o $@
  12.    
  13. kernel.elf: $(OBJECTS)
  14.     arm-none-eabi-ld $(LDFLAGS) $(OBJECT) $^ -o $@
  15.     elf2uarm -k kernel.elf
  16.  
  17. clean:
  18.     rm -f SRC/*.o
  19.     rm -f *.elf
  20.     rm -f *.uarm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement