Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SOURCES= $(wildcard SRC/*.c)
- OBJECT=$(patsubst %,OBJ/%,$(notdir $(SOURCES:.c=.o)))
- DEPS= const.h listx.h mikabooq.h
- CFLAGS=-I /usr/include/uarm -I INCLUDE -include stdint.h
- LDFLAGS= -T /usr/include/uarm/ldscripts/elf32ltsarm.h.uarmcore.x \
- /usr/include/uarm/crtso.o \
- /usr/include/uarm/libuarm.o
- CC= arm-none-eabi-gcc -mcpu=arm7tdmi
- OBJ/%.o: SRC/%.c $(DEPS)$(OBJECT)
- $(CC) -Wall -c $(CFLAGS) $< -o $@
- kernel.elf: $(OBJECTS)
- arm-none-eabi-ld $(LDFLAGS) $(OBJECT) $^ -o $@
- elf2uarm -k kernel.elf
- clean:
- rm -f SRC/*.o
- rm -f *.elf
- rm -f *.uarm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement