2024-08-04 19:40:09 +03:00
|
|
|
# Define compiler and flags
|
|
|
|
CXX = g++
|
|
|
|
CXXFLAGS = `pkg-config --cflags gtk4`
|
|
|
|
LDFLAGS = `pkg-config --libs gtk4`
|
|
|
|
|
|
|
|
# Define target executable and source files
|
|
|
|
TARGET = bin/Yoda
|
2024-08-05 01:58:35 +03:00
|
|
|
SRCS = src/main.cpp\
|
2024-08-05 03:15:41 +03:00
|
|
|
src/app/browser.cpp\
|
2024-08-05 03:32:43 +03:00
|
|
|
src/app/browser/container.cpp\
|
2024-08-05 04:34:40 +03:00
|
|
|
src/app/browser/container/page.cpp\
|
2024-08-05 03:52:02 +03:00
|
|
|
src/app/browser/container/tab.cpp\
|
2024-08-05 05:56:45 +03:00
|
|
|
src/app/browser/header.cpp\
|
2024-08-05 06:12:37 +03:00
|
|
|
src/app/browser/header/bar.cpp\
|
2024-08-05 18:11:04 +03:00
|
|
|
src/app/browser/header/bar/title.cpp\
|
2024-08-05 19:08:38 +03:00
|
|
|
src/app/browser/header/bar/menu.cpp\
|
2024-08-06 03:36:25 +03:00
|
|
|
src/app/browser/header/bar/menu/main.cpp\
|
|
|
|
src/app/browser/header/bar/menu/main/quit.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)
|