mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
prepare the migration to the directory usr
This commit is contained in:
parent
39457b7a86
commit
0f1b05ef1c
9 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
# HermitCore - A lightweight extreme-scale statellite kernel
|
||||
|
||||
The project has just initiated. Further information will be published shortly.
|
||||
|
||||
## Requirements
|
||||
|
||||
* Netwide Assembler (NASM)
|
||||
* make, binutils
|
||||
* Tools and libraries to build *linux*, *binutils* and *gcc* (e.g. flex, bison, MPFR library, GMP library, MPC library)
|
||||
|
|
|
@ -69,9 +69,9 @@ endif
|
|||
|
||||
default: all
|
||||
|
||||
all: newlib tools $(NAME).elf
|
||||
all: usr tools $(NAME).elf
|
||||
|
||||
newlib:
|
||||
usr:
|
||||
$Q$(MAKE) ARCH=$(ARCH) \
|
||||
LDFLAGS="$(LDFLAGS_FOR_NEWLIB)" \
|
||||
CFLAGS="$(CFLAGS_FOR_NEWLIB)" \
|
||||
|
@ -87,7 +87,7 @@ newlib:
|
|||
OBJCOPY_FOR_TARGET=$(OBJCOPY_FOR_TARGET) \
|
||||
RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET) \
|
||||
STRIP_FOR_TARGET=$(STRIP_FOR_TARGET) \
|
||||
READELF_FOR_TARGET=$(READELF_FOR_TARGET) -C newlib
|
||||
READELF_FOR_TARGET=$(READELF_FOR_TARGET) -C usr
|
||||
|
||||
tools:
|
||||
$Q$(MAKE) ARCH=$(ARCH) CFLAGS="$(CFLAGS_FOR_TOOLS)" LDFLAGS="$(LDFLAGS_FOR_TOOLS)" -C tools
|
||||
|
@ -101,13 +101,13 @@ $(NAME).elf:
|
|||
clean:
|
||||
$Q$(RM) $(NAME).elf $(NAME).sym $(NAME).bin *~
|
||||
$Q$(MAKE) -C tools clean
|
||||
$Q$(MAKE) -C newlib clean
|
||||
$Q$(MAKE) -C usr clean
|
||||
@echo Cleaned.
|
||||
|
||||
veryclean: clean
|
||||
$Q$(RM) qemu-vlan0.pcap include/hermit/config.inc
|
||||
$Q$(MAKE) -C tools veryclean
|
||||
$Q$(MAKE) -C newlib veryclean
|
||||
$Q$(MAKE) -C usr veryclean
|
||||
@echo Very cleaned
|
||||
|
||||
doc:
|
||||
|
@ -135,6 +135,6 @@ include/hermit/config.inc: include/hermit/config.h
|
|||
@echo [GCC-ASM] $@
|
||||
$Q$(CC_FOR_TARGET) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
.PHONY: default all clean emu gdb newlib tools
|
||||
.PHONY: default all clean emu gdb usr tools
|
||||
|
||||
include $(addsuffix /Makefile,$(SUBDIRS))
|
||||
|
|
|
@ -5,7 +5,7 @@ CC = gcc
|
|||
CFLAGS = -O2 -Wall
|
||||
HEXDUMP = hexdump
|
||||
LDFLGAS =
|
||||
EXECFILES = $(shell find ../newlib/examples -perm -u+r+x -type f)
|
||||
EXECFILES = $(shell find ../usr/examples -perm -u+r+x -type f)
|
||||
|
||||
# Prettify output
|
||||
V = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue