2024-08-04 19:40:09 +03:00
|
|
|
# Define compiler and flags
|
|
|
|
CXX = g++
|
2024-08-20 15:38:35 +03:00
|
|
|
CXXFLAGS = `pkg-config --cflags gio-2.0 glibmm-2.68 gtkmm-4.0 pangomm-2.48 sqlite3`
|
|
|
|
LDFLAGS = `pkg-config --libs gio-2.0 glibmm-2.68 gtkmm-4.0 pangomm-2.48 sqlite3`
|
2024-08-04 19:40:09 +03:00
|
|
|
|
|
|
|
# Define target executable and source files
|
|
|
|
TARGET = bin/Yoda
|
2024-09-08 22:13:52 +03:00
|
|
|
SRCS = src/app.cpp\
|
2024-08-10 17:57:15 +03:00
|
|
|
src/app/browser.cpp\
|
|
|
|
src/app/browser/header.cpp\
|
2024-08-20 14:38:13 +03:00
|
|
|
src/app/browser/header/main.cpp\
|
2024-08-27 14:46:13 +03:00
|
|
|
src/app/browser/header/main/subtitle.cpp\
|
2024-08-20 14:38:13 +03:00
|
|
|
src/app/browser/header/main/title.cpp\
|
2024-08-10 17:57:15 +03:00
|
|
|
src/app/browser/header/menu.cpp\
|
|
|
|
src/app/browser/header/tab.cpp\
|
2024-08-11 22:04:34 +03:00
|
|
|
src/app/browser/main.cpp\
|
|
|
|
src/app/browser/main/tab.cpp\
|
2024-08-15 18:52:11 +03:00
|
|
|
src/app/browser/main/tab/page.cpp\
|
|
|
|
src/app/browser/main/tab/page/content.cpp\
|
2024-09-12 08:17:17 +03:00
|
|
|
src/app/browser/main/tab/page/content/text.cpp\
|
2024-08-18 15:19:36 +03:00
|
|
|
src/app/browser/main/tab/page/content/text/gemini.cpp\
|
2024-09-14 06:43:41 +03:00
|
|
|
src/app/browser/main/tab/page/content/text/gemini/reader.cpp\
|
2024-09-14 06:50:22 +03:00
|
|
|
src/app/browser/main/tab/page/content/text/gemini/source.cpp\
|
2024-08-18 15:32:31 +03:00
|
|
|
src/app/browser/main/tab/page/content/text/plain.cpp\
|
2024-09-14 06:43:41 +03:00
|
|
|
src/app/browser/main/tab/page/content/text/plain/reader.cpp\
|
2024-09-04 23:16:43 +03:00
|
|
|
src/app/browser/main/tab/page/navigation.cpp\
|
|
|
|
src/app/browser/main/tab/page/navigation/base.cpp\
|
|
|
|
src/app/browser/main/tab/page/navigation/bookmark.cpp\
|
|
|
|
src/app/browser/main/tab/page/navigation/history.cpp\
|
|
|
|
src/app/browser/main/tab/page/navigation/history/back.cpp\
|
|
|
|
src/app/browser/main/tab/page/navigation/history/forward.cpp\
|
2024-09-11 07:33:53 +03:00
|
|
|
src/app/browser/main/tab/page/navigation/reload.cpp\
|
2024-09-04 23:16:43 +03:00
|
|
|
src/app/browser/main/tab/page/navigation/request.cpp\
|
2024-09-08 22:13:52 +03:00
|
|
|
src/app/browser/main/tab/label.cpp
|
2024-08-04 19:40:09 +03:00
|
|
|
|
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
|
|
|
|
# Default target
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
# Rule to build the executable
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
|
|
|
|
|
|
|
|
# Rule to build object files from source files
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
# Rule to clean up build files
|
|
|
|
clean:
|
|
|
|
rm -f $(TARGET) $(OBJS)
|