Hyprdoctor/Makefile

21 lines
374 B
Makefile
Raw Normal View History

2023-11-30 17:54:31 +00:00
CXX = g++
CXXFLAGS = -Wall -std=c++17
2023-11-30 18:31:41 +00:00
TARGET = Hyprdoctor
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
all: $(TARGET)
2023-11-30 17:54:31 +00:00
2023-11-30 18:31:41 +00:00
$(TARGET): $(OBJS)
$(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 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)