forked from PoliEcho-holding-org/kern
Implemented simple Multiboot1 kernel
This commit is contained in:
+13
-11
@@ -1,17 +1,19 @@
|
||||
#ifndef _CTYPE_H
|
||||
#define _CTYPE_H
|
||||
|
||||
/* Bitfield values
|
||||
Property | Bit
|
||||
------------|-----
|
||||
Digit | 0
|
||||
Letter | 1
|
||||
Lowercase | 2
|
||||
Punct | 3
|
||||
Space | 4
|
||||
Control | 5
|
||||
Printable | 6
|
||||
Hex digit | 7
|
||||
/*
|
||||
* Bitfield values
|
||||
*
|
||||
* Property | Bit
|
||||
* ------------|-----
|
||||
* Digit | 0
|
||||
* Letter | 1
|
||||
* Lowercase | 2
|
||||
* Punct | 3
|
||||
* Space | 4
|
||||
* Control | 5
|
||||
* Printable | 6
|
||||
* Hex digit | 7
|
||||
*/
|
||||
#define _DIGIT_MASK (1<<0)
|
||||
#define _ALPHA_MASK (1<<1)
|
||||
|
||||
+4
-11
@@ -1,14 +1,7 @@
|
||||
#
|
||||
# C Standard library
|
||||
#
|
||||
.PHONY: all clean
|
||||
|
||||
include make.defaults
|
||||
all:
|
||||
@echo "TODO: Write this makefile..."
|
||||
|
||||
$(LIBC): $(LIBC_SRC)
|
||||
@echo "Building $(LIBC)..."
|
||||
for f in $(LIBC_SRC); do\
|
||||
filename=$$(basename $$f .c);\
|
||||
$(CC) $(CFLAGS) -I$(LIBC_INC) -o $(BIN)/libc/$$filename.o -c $$f;\
|
||||
done
|
||||
$(LD) $(LDFLAGS) -r -o $(LIBC) $(BIN)/libc/**.o
|
||||
clean:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user