Yoda/Makefile

45 lines
1.3 KiB
Makefile
Raw Normal View History

2024-08-04 19:40:09 +03:00
# Define compiler and flags
CXX = g++
2024-08-11 12:35:57 +03:00
CXXFLAGS = `pkg-config --cflags gtkmm-4.0 glibmm-2.68 sqlite3`
LDFLAGS = `pkg-config --libs gtkmm-4.0 glibmm-2.68 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\
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-13 08:07:56 +03:00
src/app/browser/main/tab/data.cpp\
2024-08-13 11:18:04 +03:00
src/app/browser/main/tab/data/content.cpp\
2024-08-13 08:28:33 +03:00
src/app/browser/main/tab/data/navbar.cpp\
2024-08-13 08:40:17 +03:00
src/app/browser/main/tab/data/navbar/base.cpp\
2024-08-13 09:54:11 +03:00
src/app/browser/main/tab/data/navbar/bookmark.cpp\
2024-08-13 09:47:59 +03:00
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\
2024-08-13 09:59:58 +03:00
src/app/browser/main/tab/data/navbar/request.cpp\
2024-08-13 09:05:59 +03:00
src/app/browser/main/tab/data/navbar/update.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-14 20:47:29 +03:00
src/lib/database/session.cpp\
src/lib/url.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)