blob: 1a4e79be203f4c63774119a3d01e419a78dccce5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# MIT License, Copyright (c) 2021 Marvin Borner
# Gets called by main makefile (their variables are exported)
OBJS = entry_asm.o main.o
all: compile
%.o: %.c
@$(CC) -c $(CFLAGS) $< -o $@
%_asm.o: %.asm
@$(AS) $(ASFLAGS) $< -o $@
compile: $(OBJS)
@mkdir -p $(BLD)/examples/
@$(LD) -N -z max-page-size=0x1000 -eboot_entry -Tlink.ld -o $(BLD)/examples/mb1.elf $+
|