CeDOS - src/stage1/makefile

src/stage1/makefile (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.RECIPEPREFIX = >

LOCAL_BUILD = $(GLOBAL_BUILD)/stage1

OBJECTS := $(GLOBAL_BUILD)/stage1.o
DIRS := $(sort $(dir $(OBJECTS)))

$(OBJECTS): | $(DIRS)
$(DIRS):
> $(MKDIR) $(DIRS)

.PHONY: build
build: $(OBJECTS)
$(GLOBAL_BUILD)/stage1.o: stage1.s
> $(AS) -o $@ $<