2019-12-19 02:35:46 +03:00
|
|
|
OBJS = \
|
2019-11-06 15:45:03 +03:00
|
|
|
../AK/FileSystemPath.o \
|
|
|
|
../AK/JsonParser.o \
|
|
|
|
../AK/JsonValue.o \
|
|
|
|
../AK/LogStream.o \
|
|
|
|
../AK/String.o \
|
|
|
|
../AK/StringBuilder.o \
|
|
|
|
../AK/StringImpl.o \
|
|
|
|
../AK/StringView.o \
|
|
|
|
../Libraries/LibELF/ELFImage.o \
|
|
|
|
../Libraries/LibELF/ELFLoader.o \
|
|
|
|
Arch/i386/APIC.o \
|
|
|
|
Arch/i386/CPU.o \
|
|
|
|
Arch/i386/PIC.o \
|
|
|
|
Arch/i386/PIT.o \
|
|
|
|
CMOS.o \
|
|
|
|
Console.o \
|
|
|
|
Devices/BXVGADevice.o \
|
2019-04-03 13:36:40 +03:00
|
|
|
Devices/BlockDevice.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
Devices/CharacterDevice.o \
|
2019-04-18 17:08:52 +03:00
|
|
|
Devices/DebugLogDevice.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
Devices/Device.o \
|
|
|
|
Devices/DiskDevice.o \
|
2019-06-02 12:38:37 +03:00
|
|
|
Devices/DiskPartition.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
Devices/FloppyDiskDevice.o \
|
|
|
|
Devices/FullDevice.o \
|
2019-10-07 03:12:37 +03:00
|
|
|
Devices/GPTPartitionTable.o \
|
2020-02-02 00:28:39 +03:00
|
|
|
Devices/EBRPartitionTable.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
Devices/KeyboardDevice.o \
|
|
|
|
Devices/MBRPartitionTable.o \
|
|
|
|
Devices/MBVGADevice.o \
|
|
|
|
Devices/NullDevice.o \
|
|
|
|
Devices/PATAChannel.o \
|
|
|
|
Devices/PATADiskDevice.o \
|
|
|
|
Devices/PCSpeaker.o \
|
|
|
|
Devices/PS2MouseDevice.o \
|
|
|
|
Devices/RandomDevice.o \
|
|
|
|
Devices/SB16.o \
|
|
|
|
Devices/SerialDevice.o \
|
|
|
|
Devices/ZeroDevice.o \
|
|
|
|
DoubleBuffer.o \
|
|
|
|
FileSystem/Custody.o \
|
|
|
|
FileSystem/DevPtsFS.o \
|
2019-04-03 13:25:24 +03:00
|
|
|
FileSystem/DiskBackedFileSystem.o \
|
|
|
|
FileSystem/Ext2FileSystem.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
FileSystem/FIFO.o \
|
|
|
|
FileSystem/File.o \
|
2019-06-07 10:36:51 +03:00
|
|
|
FileSystem/FileDescription.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
FileSystem/FileSystem.o \
|
|
|
|
FileSystem/Inode.o \
|
|
|
|
FileSystem/InodeFile.o \
|
|
|
|
FileSystem/InodeWatcher.o \
|
|
|
|
FileSystem/ProcFS.o \
|
|
|
|
FileSystem/TmpFS.o \
|
|
|
|
FileSystem/VirtualFileSystem.o \
|
|
|
|
Heap/SlabAllocator.o \
|
|
|
|
Heap/kmalloc.o \
|
2020-01-23 00:23:50 +03:00
|
|
|
IRQHandler.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
KBufferBuilder.o \
|
|
|
|
KParams.o \
|
|
|
|
KSyms.o \
|
|
|
|
Lock.o \
|
|
|
|
Net/E1000NetworkAdapter.o \
|
|
|
|
Net/IPv4Socket.o \
|
|
|
|
Net/LocalSocket.o \
|
|
|
|
Net/LoopbackAdapter.o \
|
|
|
|
Net/NetworkAdapter.o \
|
|
|
|
Net/NetworkTask.o \
|
|
|
|
Net/RTL8139NetworkAdapter.o \
|
|
|
|
Net/Routing.o \
|
|
|
|
Net/Socket.o \
|
|
|
|
Net/TCPSocket.o \
|
|
|
|
Net/UDPSocket.o \
|
2019-12-31 14:04:30 +03:00
|
|
|
PCI/Access.o \
|
|
|
|
PCI/IOAccess.o \
|
|
|
|
PCI/MMIOAccess.o \
|
|
|
|
PCI/Initializer.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
Process.o \
|
|
|
|
ProcessTracer.o \
|
2019-12-11 22:36:56 +03:00
|
|
|
Profiling.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
RTC.o \
|
2020-01-03 14:36:30 +03:00
|
|
|
Random.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
Scheduler.o \
|
|
|
|
SharedBuffer.o \
|
|
|
|
StdLib.o \
|
|
|
|
Syscall.o \
|
2019-12-27 03:58:28 +03:00
|
|
|
TimerQueue.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
TTY/MasterPTY.o \
|
|
|
|
TTY/PTYMultiplexer.o \
|
|
|
|
TTY/SlavePTY.o \
|
|
|
|
TTY/TTY.o \
|
|
|
|
TTY/VirtualConsole.o \
|
|
|
|
Thread.o \
|
|
|
|
VM/AnonymousVMObject.o \
|
|
|
|
VM/InodeVMObject.o \
|
|
|
|
VM/MemoryManager.o \
|
|
|
|
VM/PageDirectory.o \
|
|
|
|
VM/PhysicalPage.o \
|
|
|
|
VM/PhysicalRegion.o \
|
2019-12-09 21:12:38 +03:00
|
|
|
VM/PurgeableVMObject.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
VM/RangeAllocator.o \
|
|
|
|
VM/Region.o \
|
|
|
|
VM/VMObject.o \
|
2019-12-31 14:04:30 +03:00
|
|
|
ACPI/ACPIParser.o \
|
|
|
|
ACPI/ACPIStaticParser.o \
|
|
|
|
ACPI/ACPIDynamicParser.o \
|
|
|
|
ACPI/DMIDecoder.o \
|
2019-12-01 13:57:20 +03:00
|
|
|
WaitQueue.o \
|
2019-11-06 15:45:03 +03:00
|
|
|
init.o \
|
|
|
|
kprintf.o
|
2018-10-17 11:55:43 +03:00
|
|
|
|
2019-12-19 02:35:46 +03:00
|
|
|
OBJ_SUFFIX = .kernel
|
|
|
|
|
2020-01-02 01:19:27 +03:00
|
|
|
MODULE_OBJS = TestModule$(OBJ_SUFFIX).o
|
2019-11-28 22:59:11 +03:00
|
|
|
|
2019-12-19 02:35:46 +03:00
|
|
|
EXTRA_OBJS = Arch/i386/Boot/boot.ao
|
|
|
|
|
|
|
|
KERNEL = 1
|
|
|
|
|
|
|
|
PROGRAM = kernel
|
2018-10-16 15:17:43 +03:00
|
|
|
|
2020-02-01 15:52:52 +03:00
|
|
|
SUBPROJECT_CXXFLAGS += -pie -fPIE -ffreestanding -fbuiltin -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables
|
2020-01-13 09:50:47 +03:00
|
|
|
SUBPROJECT_CXXFLAGS += -nostdlib -nostdinc -nostdinc++ -g3
|
2019-12-20 22:51:05 +03:00
|
|
|
SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.2.0/
|
|
|
|
SUBPROJECT_CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/9.2.0/i686-pc-serenity/
|
|
|
|
|
2020-01-17 21:59:20 +03:00
|
|
|
LDFLAGS += -Wl,-T linker.ld -nostdlib -lgcc -lstdc++ -g3
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2019-12-19 02:35:46 +03:00
|
|
|
all: $(PROGRAM) $(MODULE_OBJS) kernel.map
|
2018-10-26 23:32:35 +03:00
|
|
|
|
|
|
|
kernel.map: kernel
|
2019-12-19 02:35:46 +03:00
|
|
|
@echo "MKMAP $@"
|
|
|
|
$(QUIET) sh mkmap.sh
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2019-12-19 02:35:46 +03:00
|
|
|
EXTRA_CLEAN += kernel.map
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2019-12-19 02:35:46 +03:00
|
|
|
install:
|
|
|
|
mkdir -p $(SERENITY_BASE_DIR)/Root/usr/include/Kernel/
|
|
|
|
cp *.h $(SERENITY_BASE_DIR)/Root/usr/include/Kernel/
|
2018-10-16 12:01:38 +03:00
|
|
|
|
2019-12-19 02:35:46 +03:00
|
|
|
include ../Makefile.common
|