1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

Include Makefile.common in all other Makefiles.

This commit is contained in:
Andreas Kling 2019-04-21 04:09:39 +02:00
parent 74b94da6fa
commit 57da00b731
19 changed files with 60 additions and 242 deletions

View file

@ -1,21 +1,10 @@
include ../Makefile.common
SRCS = $(wildcard *.cpp)
OBJS = ${SRCS:.cpp=.o}
APPS = ${SRCS:.cpp=}
ARCH_FLAGS =
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. -I../LibC
DEFINES = -DSANITIZE_PTRS -DUSERLAND
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = i686-pc-serenity-g++
LD = i686-pc-serenity-g++
AR = i686-pc-serenity-r
LDFLAGS = -L../LibC -L../LibCore -L../LibGUI
DEFINES += -DUSERLAND
.PHONY: all list clean
@ -29,7 +18,7 @@ clean:
@rm -f $(APPS) $(OBJS) *.d
$(APPS) : % : %.o $(OBJS)
@echo "LD $<"
@echo "LD $@"
@$(LD) -o $@ $(LDFLAGS) $< -lc -lgui -lcore
%.o: %.cpp