2019-04-21 02:09:39 +00:00
|
|
|
include ../Makefile.common
|
|
|
|
|
2019-11-06 12:45:03 +00:00
|
|
|
CXX_OBJS = \
|
|
|
|
../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 10:36:40 +00:00
|
|
|
Devices/BlockDevice.o \
|
2019-11-06 12:45:03 +00:00
|
|
|
Devices/CharacterDevice.o \
|
2019-04-18 14:08:52 +00:00
|
|
|
Devices/DebugLogDevice.o \
|
2019-11-06 12:45:03 +00:00
|
|
|
Devices/Device.o \
|
|
|
|
Devices/DiskDevice.o \
|
2019-06-02 09:38:37 +00:00
|
|
|
Devices/DiskPartition.o \
|
2019-11-06 12:45:03 +00:00
|
|
|
Devices/FloppyDiskDevice.o \
|
|
|
|
Devices/FullDevice.o \
|
2019-10-07 00:12:37 +00:00
|
|
|
Devices/GPTPartitionTable.o \
|
2019-11-06 12:45:03 +00: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 10:25:24 +00:00
|
|
|
FileSystem/DiskBackedFileSystem.o \
|
|
|
|
FileSystem/Ext2FileSystem.o \
|
2019-11-06 12:45:03 +00:00
|
|
|
FileSystem/FIFO.o \
|
|
|
|
FileSystem/File.o \
|
2019-06-07 07:36:51 +00:00
|
|
|
FileSystem/FileDescription.o \
|
2019-11-06 12:45:03 +00:00
|
|
|
FileSystem/FileSystem.o \
|
|
|
|
FileSystem/Inode.o \
|
|
|
|
FileSystem/InodeFile.o \
|
|
|
|
FileSystem/InodeWatcher.o \
|
|
|
|
FileSystem/ProcFS.o \
|
|
|
|
FileSystem/SharedMemory.o \
|
|
|
|
FileSystem/TmpFS.o \
|
|
|
|
FileSystem/VirtualFileSystem.o \
|
|
|
|
Heap/SlabAllocator.o \
|
|
|
|
Heap/kmalloc.o \
|
|
|
|
IRQHandler.o \
|
|
|
|
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 \
|
|
|
|
PCI.o \
|
|
|
|
Process.o \
|
|
|
|
ProcessTracer.o \
|
|
|
|
RTC.o \
|
|
|
|
Scheduler.o \
|
|
|
|
SharedBuffer.o \
|
|
|
|
StdLib.o \
|
|
|
|
Syscall.o \
|
|
|
|
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 \
|
|
|
|
VM/RangeAllocator.o \
|
|
|
|
VM/Region.o \
|
|
|
|
VM/VMObject.o \
|
2019-12-01 10:57:20 +00:00
|
|
|
WaitQueue.o \
|
2019-11-06 12:45:03 +00:00
|
|
|
init.o \
|
|
|
|
kprintf.o
|
2018-10-17 08:55:43 +00:00
|
|
|
|
2019-11-28 19:59:11 +00:00
|
|
|
MODULE_OBJS = TestModule.o
|
|
|
|
|
2019-10-20 06:15:39 +00:00
|
|
|
OBJS = $(CXX_OBJS) Arch/i386/Boot/boot.ao
|
2018-10-16 12:17:43 +00:00
|
|
|
|
2018-10-16 09:01:38 +00:00
|
|
|
KERNEL = kernel
|
2019-11-21 11:47:49 +00:00
|
|
|
CXXFLAGS += -ffreestanding -mno-80387 -mno-mmx -mno-sse -mno-sse2 -fno-asynchronous-unwind-tables
|
2019-07-09 12:46:23 +00:00
|
|
|
CXXFLAGS += -nostdlib -nostdinc -nostdinc++
|
2019-07-09 15:28:26 +00:00
|
|
|
CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/8.3.0/
|
|
|
|
CXXFLAGS += -I../Toolchain/Local/i686-pc-serenity/include/c++/8.3.0/i686-pc-serenity/
|
2019-04-21 02:09:39 +00:00
|
|
|
DEFINES += -DKERNEL
|
2019-11-23 16:27:09 +00:00
|
|
|
LDFLAGS += -Ttext 0x100000 -Wl,-T linker.ld -nostdlib
|
2018-10-16 09:01:38 +00:00
|
|
|
|
2019-11-28 19:59:11 +00:00
|
|
|
all: $(KERNEL) $(MODULE_OBJS) kernel.map
|
2018-10-26 20:32:35 +00:00
|
|
|
|
|
|
|
kernel.map: kernel
|
|
|
|
@echo "MKMAP $@"; sh mkmap.sh
|
2018-10-16 09:01:38 +00:00
|
|
|
|
|
|
|
$(KERNEL): $(OBJS)
|
2019-11-27 13:06:24 +00:00
|
|
|
@echo "LD $@"; $(LD) $(LDFLAGS) -o $@ $(OBJS) -lgcc -lstdc++
|
2018-10-16 09:01:38 +00:00
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
|
2019-04-01 19:43:07 +00:00
|
|
|
%.ao: %.S
|
|
|
|
@echo "AS $@"; $(AS) -o $@ $<
|
|
|
|
|
|
|
|
-include $(CXX_OBJS:%.o=%.d)
|
2019-02-02 03:41:59 +00:00
|
|
|
|
2018-10-16 09:01:38 +00:00
|
|
|
clean:
|
2019-04-01 19:43:07 +00:00
|
|
|
@echo "CLEAN"; rm -f $(KERNEL) $(OBJS) *.d
|
2018-10-16 09:01:38 +00:00
|
|
|
|