mirror of https://github.com/YGGverse/Yoda.git
phpcomposergemini-protocolgeminismallwebaltwebphp-cppgemini-browseryodagtk3browsergtkphp-gtkgemini-clientyoda-browser
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
# Define compiler and flags |
|
CXX = g++ |
|
CXXFLAGS = `pkg-config --cflags gtkmm-4.0 glibmm-2.68 sqlite3` |
|
LDFLAGS = `pkg-config --libs gtkmm-4.0 glibmm-2.68 sqlite3` |
|
|
|
# Define target executable and source files |
|
TARGET = bin/Yoda |
|
SRCS = src/main.cpp\ |
|
src/app/browser.cpp\ |
|
src/app/browser/header.cpp\ |
|
src/app/browser/header/menu.cpp\ |
|
src/app/browser/header/tab.cpp\ |
|
src/app/browser/main.cpp\ |
|
src/app/browser/main/tab.cpp\ |
|
src/app/browser/main/tab/data.cpp\ |
|
src/app/browser/main/tab/data/content.cpp\ |
|
src/app/browser/main/tab/data/navbar.cpp\ |
|
src/app/browser/main/tab/data/navbar/base.cpp\ |
|
src/app/browser/main/tab/data/navbar/bookmark.cpp\ |
|
src/app/browser/main/tab/data/navbar/history.cpp\ |
|
src/app/browser/main/tab/data/navbar/history/back.cpp\ |
|
src/app/browser/main/tab/data/navbar/history/forward.cpp\ |
|
src/app/browser/main/tab/data/navbar/request.cpp\ |
|
src/app/browser/main/tab/data/navbar/update.cpp\ |
|
src/app/browser/main/tab/label.cpp\ |
|
src/lib/database.cpp\ |
|
src/lib/database/session.cpp\ |
|
src/lib/url.cpp |
|
|
|
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)
|