FormCompiler: Build individual compilation units instead of all-at-a-time.
This commit is contained in:
parent
f07649faba
commit
9c6fe21b49
Notes:
sideshowbarker
2024-07-19 13:20:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9c6fe21b49d
1 changed files with 22 additions and 19 deletions
|
@ -1,28 +1,31 @@
|
|||
PROGRAM = FormCompiler
|
||||
|
||||
SOURCES = \
|
||||
main.cpp \
|
||||
../../AK/String.cpp \
|
||||
../../AK/StringImpl.cpp \
|
||||
../../AK/StringBuilder.cpp \
|
||||
../../AK/StringView.cpp \
|
||||
../../AK/JsonObject.cpp \
|
||||
../../AK/JsonValue.cpp \
|
||||
../../AK/JsonArray.cpp \
|
||||
../../AK/JsonParser.cpp \
|
||||
../../AK/LogStream.cpp \
|
||||
../../Libraries/LibCore/CIODevice.cpp \
|
||||
../../Libraries/LibCore/CFile.cpp \
|
||||
../../Libraries/LibCore/CObject.cpp \
|
||||
../../Libraries/LibCore/CEvent.cpp \
|
||||
../../Libraries/LibCore/CEventLoop.cpp
|
||||
OBJS = \
|
||||
main.o \
|
||||
../../AK/String.o \
|
||||
../../AK/StringImpl.o \
|
||||
../../AK/StringBuilder.o \
|
||||
../../AK/StringView.o \
|
||||
../../AK/JsonObject.o \
|
||||
../../AK/JsonValue.o \
|
||||
../../AK/JsonArray.o \
|
||||
../../AK/JsonParser.o \
|
||||
../../AK/LogStream.o \
|
||||
../../Libraries/LibCore/CIODevice.o \
|
||||
../../Libraries/LibCore/CFile.o \
|
||||
../../Libraries/LibCore/CObject.o \
|
||||
../../Libraries/LibCore/CEvent.o \
|
||||
../../Libraries/LibCore/CEventLoop.o
|
||||
|
||||
all: $(PROGRAM)
|
||||
|
||||
CXXFLAGS = -std=c++17 -Wall -Wextra
|
||||
|
||||
$(PROGRAM): $(SOURCES)
|
||||
$(PRE_CXX) $(CXX) $(CXXFLAGS) -I../ -I../../ -I../../Libraries/ -o $@ $(SOURCES)
|
||||
%.o: %.cpp
|
||||
$(PRE_CXX) $(CXX) $(CXXFLAGS) -I../ -I../../ -I../../Libraries/ -o $@ -c $<
|
||||
|
||||
$(PROGRAM): $(OBJS)
|
||||
$(CXX) $(LDFLAGS) -I../ -I../../ -I../../Libraries/ -o $(PROGRAM) $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -f $(PROGRAM)
|
||||
rm -f $(PROGRAM) $(OBJS)
|
||||
|
|
Loading…
Add table
Reference in a new issue