mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
38 lines
648 B
Makefile
38 lines
648 B
Makefile
PROGRAM = run
|
|
|
|
AK_OBJS = \
|
|
../AK/String.o \
|
|
../AK/StringImpl.o \
|
|
../AK/MappedFile.o \
|
|
../AK/TemporaryFile.o \
|
|
../AK/kmalloc.o
|
|
|
|
CSILLA_OBJS = \
|
|
ExecSpace.o \
|
|
ELFImage.o \
|
|
ELFLoader.o \
|
|
test.o
|
|
|
|
TEST_OBJ = \
|
|
_test.o
|
|
|
|
TEST_OBJ_CXXFLAGS = -Os -fno-exceptions -fno-rtti -fno-asynchronous-unwind-tables
|
|
|
|
OBJS = $(AK_OBJS) $(CSILLA_OBJS)
|
|
|
|
CXXFLAGS = -std=c++17 -Os -W -Wall -I. -I.. -ggdb3
|
|
|
|
all: $(PROGRAM) $(TEST_OBJ)
|
|
|
|
_test.o: _test.cpp
|
|
$(CXX) $(TEST_OBJ_CXXFLAGS) -c $<
|
|
|
|
.cpp.o:
|
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TEST_OBJ) $(PROGRAM)
|
|
|
|
$(PROGRAM): $(OBJS)
|
|
$(CXX) $(LDFLAGS) -o $@ $(OBJS)
|
|
|