Yoda/Makefile

49 lines
1.5 KiB
Makefile
Raw Normal View History

2024-08-04 19:40:09 +03:00
# Define compiler and flags
CXX = g++
2024-08-15 12:29:54 +03:00
CXXFLAGS = `pkg-config --cflags gio-2.0 glibmm-2.68 gtkmm-4.0 sqlite3`
LDFLAGS = `pkg-config --libs gio-2.0 glibmm-2.68 gtkmm-4.0 sqlite3`
2024-08-04 19:40:09 +03:00
# Define target executable and source files
TARGET = bin/Yoda
SRCS = src/main.cpp\
src/app/browser.cpp\
src/app/browser/header.cpp\
2024-08-20 14:38:13 +03:00
src/app/browser/header/main.cpp\
src/app/browser/header/main/title.cpp\
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-08-18 15:19:36 +03:00
src/app/browser/main/tab/page/content/text/gemini.cpp\
2024-08-18 15:32:31 +03:00
src/app/browser/main/tab/page/content/text/plain.cpp\
2024-08-15 18:52:11 +03:00
src/app/browser/main/tab/page/navbar.cpp\
src/app/browser/main/tab/page/navbar/base.cpp\
src/app/browser/main/tab/page/navbar/bookmark.cpp\
src/app/browser/main/tab/page/navbar/history.cpp\
src/app/browser/main/tab/page/navbar/history/back.cpp\
src/app/browser/main/tab/page/navbar/history/forward.cpp\
src/app/browser/main/tab/page/navbar/request.cpp\
src/app/browser/main/tab/page/navbar/update.cpp\
2024-08-18 23:46:27 +03:00
src/app/browser/main/tab/page/progressbar.cpp\
2024-08-13 07:55:23 +03:00
src/app/browser/main/tab/label.cpp\
2024-08-11 14:28:14 +03:00
src/lib/database.cpp\
2024-08-15 16:15:26 +03:00
src/lib/database/session.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)