-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
31 lines (25 loc) · 810 Bytes
/
Makefile
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
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2024 kwangdo.yi<[email protected]>
export PATH:=$(HOME)/bin/gcc-arm-none-eabi-10.3-2021.10/bin:$(PATH)
export LIBS := $(HOME)/bin/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/lib
export LIBS2 :=$(HOME)/bin/gcc-arm-none-eabi-10.3-2021.10/lib/gcc/arm-none-eabi/10.3.1
export CC := arm-none-eabi-gcc
export ASM := arm-none-eabi-as
export LD := arm-none-eabi-ld
export AR := arm-none-eabi-ar
export OBJCOPY :=arm-none-eabi-objcopy
export TOPDIR := $(shell pwd)
export TOPOUT := $(TOPDIR)/out
export RAMDISKOUT := $(TOPDIR)/kernel/ramdisk
SUBDIRS := libslos mkfs apps kernel
all:
mkdir -p $(TOPOUT)
mkdir -p $(RAMDISKOUT)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $$dir; \
done
clean :
@echo clean
rm -rf out
rm -rf $(RAMDISKOUT)