<commit_before>################################################################################
## Red OS Kernel Makefile - Updated 10/27/2014 (primis)	                      ##
################################################################################

X86_C_SOURCES = $(shell ls arch/x86/*.c) 
X86_S_SOURCES = $(shell ls arch/x86/*.s)
X86_OBJECTS   = $(X86_S_SOURCES:.s=.o) $(X86_C_SOURCES:.c=.o) 

LIBC_SOURCES = $(shell ls libc/*.c)
LIBC_OBJECTS = $(LIBC_SOURCES:.c=.o)

CORE_SOURCES = $(shell ls core/*.c)
CORE_OBJECTS = $(CORE_SOURCES:.c=.o)

# Kernel Makefile
LD		= i586-elf-ld
CC		= i586-elf-gcc
AS		= nasm

#### Flags ####
CFLAGS	= -ffreestanding -c -I./include
LDFLAGS	= -Tlink.ld
ASFLAGS	= -felf

#### Targets ####
all: $(X86_OBJECTS) $(CORE_OBJECTS) $(LIBC_OBJECTS) link
clean:
	-rm *.o 
cleanall:
	-rm *.o *.mod
link:
	$(LD) $(LDFLAGS) -o sys.mod $(X86_OBJECTS) $(CORE_OBJECTS) $(LIBC_OBJECTS)
	strip --strip-all sys.mod
.c.o:
	$(CC) $(CFLAGS) $< -o $@
.s.o:
	$(AS) $(ASFLAGS) $< -o $@<commit_msg>Made Makefile Awesome<commit_after>################################################################################
## Red OS Kernel Makefile - Updated 10/27/2014 (primis)	                      ##
################################################################################

X86_C_SOURCES = $(shell ls arch/x86/*.c) 
X86_S_SOURCES = $(shell ls arch/x86/*.s)
X86_OBJECTS   = $(X86_S_SOURCES:.s=.o) $(X86_C_SOURCES:.c=.o) 

LIBC_SOURCES = $(shell ls libc/*.c)
LIBC_OBJECTS = $(LIBC_SOURCES:.c=.o)

CORE_SOURCES = $(shell ls core/*.c)
CORE_OBJECTS = $(CORE_SOURCES:.c=.o)

# Kernel Makefile
LD		= i586-elf-ld
CC		= i586-elf-gcc
AS		= nasm

#### Flags ####
CFLAGS	= -ffreestanding -c -I./include
LDFLAGS	= -Tlink.ld
ASFLAGS	= -felf

#### Targets ####
all: $(X86_OBJECTS) $(CORE_OBJECTS) $(LIBC_OBJECTS) link
clean:
	find . -type f -name '*.o' -exec rm {} +
link:
	$(LD) $(LDFLAGS) -o sys.mod $(X86_OBJECTS) $(CORE_OBJECTS) $(LIBC_OBJECTS)
	strip --strip-all sys.mod
.c.o:
	$(CC) $(CFLAGS) $< -o $@
.s.o:
	$(AS) $(ASFLAGS) $< -o $@
{'fraction_non_alphanumeric': 0.3315403422982885, 'fraction_numerical': 0.03129584352078239, 'mean_word_length': 4.12781954887218, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4459072', 'n_tokens_mistral': 910, 'n_tokens_neox': 788, 'n_words': 163}