blob: 32870849f3e005de3b28a6607d9e514f401219ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
OBJ = $(shell find build/ -name "*.o")
LIBC_OUT = libc.a
.PHONY: all
all: build target
ar rcs $(LIBC_OUT) $(OBJ)
.PHONY: target
target:
cd $(TARGET); make CC=$(CC) LD=$(LD) AS=$(AS)
# Create build directory
build:
mkdir -p $@
.PHONY: clean
clean:
rm -rf build/
|