-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 829 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# /--------------------------------------------O
# | |
# | COPYRIGHT : (c) 2025 per Linuxperoxo. |
# | AUTHOR : Linuxperoxo |
# | FILE : Makefile |
# | |
# O--------------------------------------------/
ASM = /usr/bin/gcc
ASMFLAGS = -nostdlib -I $(INCLUDE_DIR) -T $(LINKER_FILE)
ATLAS_SRC = ./src/atlas.s
ATLAS_BIN = $(ATLAS_BIN_DIR)/AtlasB.osb
LINKER_FILE = ./linker.ld
INCLUDE_DIR = ./include
BIN_DIR = ./build
ATLAS_BIN_DIR = $(BIN_DIR)/atlas
ALL_DIRS = $(BIN_DIR) $(ATLAS_BIN_DIR)
all: $(ALL_DIRS) $(ATLAS_BIN)
clean: $(ALL_DIRS)
@rm -r $(BIN_DIR)
$(ALL_DIRS):
@mkdir -p $@
$(ATLAS_BIN):
$(ASM) $(ASMFLAGS) $(ATLAS_SRC) -o $@
.PHONY: all clean build