mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Andreas Kling](/assets/img/avatar_default.png)
You can now open as many PTY pairs as you like. Well, it's actually capped at 8 for now, but it's just a constant and trivial to change. Unregistering a PTY pair is untested because I didn't want to start mucking with that in Terminal right now.
117 lines
3.2 KiB
Makefile
117 lines
3.2 KiB
Makefile
KERNEL_OBJS = \
|
|
_start.o \
|
|
init.o \
|
|
kmalloc.o \
|
|
StdLib.o \
|
|
i386.o \
|
|
Process.o \
|
|
ProcessGUI.o \
|
|
i8253.o \
|
|
Keyboard.o \
|
|
CMOS.o \
|
|
PIC.o \
|
|
Syscall.o \
|
|
IDEDiskDevice.o \
|
|
MemoryManager.o \
|
|
Console.o \
|
|
IRQHandler.o \
|
|
kprintf.o \
|
|
ProcFileSystem.o \
|
|
RTC.o \
|
|
TTY.o \
|
|
PTYMultiplexer.o \
|
|
MasterPTY.o \
|
|
SlavePTY.o \
|
|
VirtualConsole.o \
|
|
FIFO.o \
|
|
Scheduler.o \
|
|
DoubleBuffer.o \
|
|
ELFImage.o \
|
|
ELFLoader.o \
|
|
KSyms.o \
|
|
DevPtsFS.o \
|
|
PS2MouseDevice.o \
|
|
GUIEventDevice.o
|
|
|
|
VFS_OBJS = \
|
|
DiskDevice.o \
|
|
CharacterDevice.o \
|
|
NullDevice.o \
|
|
FullDevice.o \
|
|
ZeroDevice.o \
|
|
RandomDevice.o \
|
|
FileSystem.o \
|
|
DiskBackedFileSystem.o \
|
|
Ext2FileSystem.o \
|
|
VirtualFileSystem.o \
|
|
FileDescriptor.o \
|
|
SyntheticFileSystem.o
|
|
|
|
SHAREDGRAPHICS_OBJS = \
|
|
../SharedGraphics/Rect.o \
|
|
../SharedGraphics/Painter.o \
|
|
../SharedGraphics/Font.o \
|
|
../SharedGraphics/Color.o \
|
|
../SharedGraphics/CharacterBitmap.o \
|
|
../SharedGraphics/GraphicsBitmap.o
|
|
|
|
WINDOWSERVER_OBJS = \
|
|
../WindowServer/WSMessageReceiver.o \
|
|
../WindowServer/WSMessageLoop.o \
|
|
../WindowServer/WSWindow.o \
|
|
../WindowServer/WSWindowManager.o \
|
|
../WindowServer/WSScreen.o \
|
|
../WindowServer/main.o
|
|
|
|
AK_OBJS = \
|
|
../AK/String.o \
|
|
../AK/StringImpl.o \
|
|
../AK/StringBuilder.o \
|
|
../AK/FileSystemPath.o
|
|
|
|
OBJS = $(KERNEL_OBJS) $(VFS_OBJS) $(AK_OBJS) $(WINDOWSERVER_OBJS) $(SHAREDGRAPHICS_OBJS)
|
|
|
|
NASM = nasm
|
|
KERNEL = kernel
|
|
BOOTLOADER = Boot/boot.bin
|
|
IMAGE = .floppy-image
|
|
ARCH_FLAGS =
|
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
|
KERNEL_FLAGS = -ffreestanding -fno-stack-protector -fno-ident -fno-builtin
|
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings
|
|
FLAVOR_FLAGS = -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic
|
|
OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables -fno-omit-frame-pointer
|
|
INCLUDE_FLAGS = -I.. -I.
|
|
#SUGGEST_FLAGS = -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override #-Wsuggest-attribute=noreturn
|
|
|
|
DEFINES = -DSERENITY -DKERNEL -DSANITIZE_PTRS
|
|
|
|
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
|
CXX = clang
|
|
LD = ld
|
|
LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections --build-id=none -z norelro -z now
|
|
|
|
all: $(KERNEL) $(IMAGE) kernel.map
|
|
|
|
kernel.map: kernel
|
|
@echo "MKMAP $@"; sh mkmap.sh
|
|
|
|
$(KERNEL): $(OBJS)
|
|
@echo "LD $@"; $(LD) $(LDFLAGS) -o $@ -Ttext 0x10000 $(OBJS)
|
|
|
|
$(IMAGE): $(KERNEL) $(BOOTLOADER)
|
|
@echo "CREATE $@"; cat $(BOOTLOADER) $(KERNEL) > .tmp-floppy-image
|
|
@dd if=/dev/zero bs=2M count=1 >> .tmp-floppy-image 2> /dev/null
|
|
@dd if=.tmp-floppy-image of=.floppy-image bs=1440k count=1 2>/dev/null
|
|
@rm -f .tmp-floppy-image
|
|
|
|
$(BOOTLOADER): Boot/boot.asm
|
|
@echo "NASM $<"; $(NASM) -f bin -o $@ $<
|
|
|
|
.cpp.o:
|
|
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
clean:
|
|
@echo "CLEAN"; rm -f $(KERNEL) $(OBJS) $(BOOTLOADER) $(IMAGE)
|
|
|