mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Add basic automatic dependency management to Makefiles.
This commit is contained in:
parent
7e64154d3f
commit
5e0b7f1a56
Notes:
sideshowbarker
2024-07-19 15:54:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5e0b7f1a565
13 changed files with 33 additions and 15 deletions
1
AK/.gitignore
vendored
1
AK/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
akit-test
|
||||
*.o
|
||||
*.d
|
||||
|
|
1
Kernel/.gitignore
vendored
1
Kernel/.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
*.o
|
||||
*.d
|
||||
.floppy-image
|
||||
Boot/boot.bin
|
||||
kernel
|
||||
|
|
|
@ -86,7 +86,7 @@ INCLUDE_FLAGS = -I.. -I.
|
|||
|
||||
DEFINES = -DSERENITY -DKERNEL -DSANITIZE_PTRS
|
||||
|
||||
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXXFLAGS = -MMD -MP $(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
|
||||
|
@ -111,6 +111,8 @@ $(BOOTLOADER): Boot/boot.asm
|
|||
.cpp.o:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(KERNEL) $(OBJS) $(BOOTLOADER) $(IMAGE)
|
||||
-include $(OBJS:%.o=%.d)
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(KERNEL) $(OBJS) $(BOOTLOADER) $(IMAGE) *.d
|
||||
|
||||
|
|
1
LibC/.gitignore
vendored
1
LibC/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.o
|
||||
*.d
|
||||
LibC.a
|
||||
|
|
|
@ -59,7 +59,7 @@ INCLUDE_FLAGS = -I.. -I.
|
|||
|
||||
DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS
|
||||
|
||||
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXX = clang
|
||||
LD = ld
|
||||
AR = ar
|
||||
|
@ -73,6 +73,8 @@ $(LIBRARY): $(OBJS)
|
|||
.cpp.o:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS)
|
||||
-include $(OBJS:%.o=%.d)
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
||||
|
||||
|
|
1
LibGUI/.gitignore
vendored
1
LibGUI/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.o
|
||||
*.d
|
||||
LibGUI.a
|
||||
|
|
|
@ -32,7 +32,7 @@ INCLUDE_FLAGS = -I../LibC -I.. -I.
|
|||
|
||||
DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS -DLIBGUI
|
||||
|
||||
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXX = clang
|
||||
LD = ld
|
||||
AR = ar
|
||||
|
@ -46,6 +46,8 @@ $(LIBRARY): $(OBJS)
|
|||
.cpp.o:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS)
|
||||
-include $(OBJS:%.o=%.d)
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
||||
|
||||
|
|
1
SharedGraphics/.gitignore
vendored
1
SharedGraphics/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.o
|
||||
*.d
|
||||
|
|
1
Terminal/.gitignore
vendored
1
Terminal/.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
*.o
|
||||
*.d
|
||||
Terminal
|
||||
|
|
|
@ -14,7 +14,7 @@ INCLUDE_FLAGS = -I.. -I. -I../LibC
|
|||
|
||||
DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND
|
||||
|
||||
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXX = clang
|
||||
LD = ld
|
||||
AR = ar
|
||||
|
@ -28,6 +28,8 @@ $(APP): $(OBJS)
|
|||
.cpp.o:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(APPS) $(OBJS)
|
||||
-include $(OBJS:%.o=%.d)
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(APPS) $(OBJS) *.d
|
||||
|
||||
|
|
1
Userland/.gitignore
vendored
1
Userland/.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
*.o
|
||||
*.d
|
||||
id
|
||||
sh
|
||||
ps
|
||||
|
|
|
@ -69,7 +69,7 @@ INCLUDE_FLAGS = -I.. -I. -I../LibC
|
|||
|
||||
DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND
|
||||
|
||||
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXX = clang
|
||||
LD = ld
|
||||
AR = ar
|
||||
|
@ -167,6 +167,8 @@ chmod: chmod.o
|
|||
.cpp.o:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(APPS) $(OBJS)
|
||||
-include $(OBJS:%.o=%.d)
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(APPS) $(OBJS) *.d
|
||||
|
||||
|
|
1
WindowServer/.gitignore
vendored
1
WindowServer/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.o
|
||||
*.d
|
||||
|
|
Loading…
Reference in a new issue