Skip to content

Commit

Permalink
Include Makefile.common in all other Makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Apr 21, 2019
1 parent 74b94da commit 57da00b
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 242 deletions.
15 changes: 3 additions & 12 deletions Applications/About/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
include ../../Makefile.common

OBJS = \
main.o

APP = About

STANDARD_FLAGS = -std=c++17
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
16 changes: 3 additions & 13 deletions Applications/Downloader/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
include ../../Makefile.common

OBJS = \
main.o

APP = Downloader

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../../Servers -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
AR = i686-pc-serenity-ar
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/FileManager/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
include ../../Makefile.common

OBJS = \
DirectoryModel.o \
DirectoryView.o \
main.o

APP = FileManager

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I../../Servers -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
16 changes: 3 additions & 13 deletions Applications/FontEditor/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../Makefile.common

OBJS = \
FontEditor.o \
GlyphMapWidget.o \
Expand All @@ -6,19 +8,7 @@ OBJS = \

APP = FontEditor

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
AR = i686-pc-serenity-ar
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
16 changes: 3 additions & 13 deletions Applications/IRCClient/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../Makefile.common

OBJS = \
IRCClient.o \
IRCChannel.o \
Expand All @@ -12,19 +14,7 @@ OBJS = \

APP = IRCClient

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../../Servers -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
AR = i686-pc-serenity-ar
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/Launcher/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
include ../../Makefile.common

OBJS = \
main.o

APP = Launcher

STANDARD_FLAGS = -std=c++17
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/ProcessManager/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../Makefile.common

OBJS = \
ProcessModel.o \
ProcessTableView.o \
Expand All @@ -6,18 +8,7 @@ OBJS = \

APP = ProcessManager

STANDARD_FLAGS = -std=c++17
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/Taskbar/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
include ../../Makefile.common

OBJS = \
TaskbarWindow.o \
WindowList.o \
main.o

APP = Taskbar

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I../../Servers -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/Terminal/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
include ../../Makefile.common

OBJS = \
Terminal.o \
main.o

APP = Terminal

STANDARD_FLAGS = -std=c++17
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/TextEditor/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
include ../../Makefile.common

OBJS = \
main.o

APP = TextEditor

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
15 changes: 3 additions & 12 deletions Applications/VisualBuilder/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../Makefile.common

OBJS = \
VBForm.o \
VBWidget.o \
Expand All @@ -9,18 +11,7 @@ OBJS = \

APP = VisualBuilder

STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../.. -I. -I../../LibC

DEFINES = -DSANITIZE_PTRS -DUSERLAND

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
LDFLAGS = -L../../LibC -L../../LibCore -L../../LibGUI
DEFINES += -DUSERLAND

all: $(APP)

Expand Down
22 changes: 5 additions & 17 deletions Kernel/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../Makefile.common

KERNEL_OBJS = \
init.o \
kmalloc.o \
Expand Down Expand Up @@ -77,24 +79,10 @@ CXX_OBJS = $(KERNEL_OBJS) $(VFS_OBJS) $(AK_OBJS)
OBJS = $(CXX_OBJS) Boot/boot.ao

KERNEL = kernel
ARCH_FLAGS =
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
KERNEL_FLAGS = -ffreestanding
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -mregparm=3 -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I.. -I.
CLANG_FLAGS = -Wconsumed -m32 -ffreestanding -march=i686
#SUGGEST_FLAGS = -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override #-Wsuggest-attribute=noreturn

DEFINES = -DKERNEL -DSANITIZE_PTRS

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
#CXX = clang $(CLANG_FLAGS)
CXX = i686-pc-serenity-g++
CXXFLAGS += -ffreestanding -mregparm=3
DEFINES += -DKERNEL
LD = i686-pc-serenity-ld
AS = i686-pc-serenity-as
LDFLAGS = -T linker.ld
LDFLAGS += -T linker.ld

all: $(KERNEL) kernel.map

Expand Down
16 changes: 3 additions & 13 deletions LibC/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../Makefile.common

AK_OBJS = \
../AK/StringImpl.o \
../AK/String.o \
Expand Down Expand Up @@ -48,19 +50,7 @@ ASM_OBJS = setjmp.no crti.ao crtn.ao
CPP_OBJS = $(AK_OBJS) $(WIDGETS_OBJS) $(LIBC_OBJS)

LIBRARY = libc.a
STANDARD_FLAGS = -std=c++17
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti -fno-sized-deallocation
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I.. -I.

DEFINES = -DUSERLAND -DSANITIZE_PTRS

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-ld
AR = i686-pc-serenity-ar
AS = i686-pc-serenity-as
DEFINES += -DUSERLAND

all: $(LIBRARY) startfiles

Expand Down
15 changes: 3 additions & 12 deletions LibCore/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../Makefile.common

OBJS = \
CIODevice.o \
CFile.o \
Expand All @@ -17,18 +19,7 @@ OBJS = \
CEvent.o

LIBRARY = libcore.a
STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../LibC -I../Servers -I.. -I.

DEFINES = -DUSERLAND -DSANITIZE_PTRS -DLIBGUI

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-ld
AR = i686-pc-serenity-ar
DEFINES += -DUSERLAND

all: $(LIBRARY)

Expand Down
15 changes: 3 additions & 12 deletions LibGUI/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../Makefile.common

SHAREDGRAPHICS_OBJS = \
../SharedGraphics/Painter.o \
../SharedGraphics/StylePainter.o \
Expand Down Expand Up @@ -55,18 +57,7 @@ LIBGUI_OBJS = \
OBJS = $(SHAREDGRAPHICS_OBJS) $(LIBGUI_OBJS)

LIBRARY = libgui.a
STANDARD_FLAGS = -std=c++17 -Wno-sized-deallocation
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
FLAVOR_FLAGS = -fno-exceptions -fno-rtti
OPTIMIZATION_FLAGS = -Os
INCLUDE_FLAGS = -I../LibC -I../Servers -I.. -I.

DEFINES = -DUSERLAND -DSANITIZE_PTRS -DLIBGUI

CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-ld
AR = i686-pc-serenity-ar
DEFINES += -DUSERLAND

all: $(LIBRARY)

Expand Down
Loading

0 comments on commit 57da00b

Please sign in to comment.