2023-11-30 17:54:31 +00:00
|
|
|
CXX = g++
|
2023-11-30 19:22:09 +00:00
|
|
|
CXXFLAGS = -Wall -std=c++17
|
2023-11-30 18:31:41 +00:00
|
|
|
TARGET = Hyprdoctor
|
2023-11-30 19:22:09 +00:00
|
|
|
SRCS = main.cpp src/utils/environment.cpp src/utils/file_parser.cpp src/utils/json_parser.cpp
|
2023-11-30 18:31:41 +00:00
|
|
|
OBJS = $(SRCS:.cpp=.o)
|
2023-11-30 17:54:31 +00:00
|
|
|
|
2023-11-30 19:46:59 +00:00
|
|
|
all: $(TARGET)
|
2023-11-30 17:54:31 +00:00
|
|
|
|
2023-11-30 18:31:41 +00:00
|
|
|
$(TARGET): $(OBJS)
|
2023-11-30 19:46:59 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $^ -lboost_program_options
|
2023-11-30 17:54:31 +00:00
|
|
|
|
|
|
|
%.o: %.cpp
|
2023-11-30 18:31:41 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
2023-11-30 19:46:59 +00:00
|
|
|
|
2023-11-30 18:31:41 +00:00
|
|
|
run:
|
|
|
|
./$(TARGET)
|
2023-11-30 17:54:31 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2023-11-30 18:31:41 +00:00
|
|
|
rm -f $(OBJS) $(TARGET)
|