mirror of
https://github.com/NotAShelf/Hyprdoctor.git
synced 2024-11-01 11:41:13 +00:00
20 lines
350 B
Makefile
20 lines
350 B
Makefile
CXX = g++
|
|
CXXFLAGS = -Wall -std=c++17
|
|
TARGET = Hyprdoctor
|
|
SRCS = main.cpp src/utils/environment.cpp src/utils/file_parser.cpp src/utils/json_parser.cpp
|
|
OBJS = $(SRCS:.cpp=.o)
|
|
|
|
all: $(TARGET);
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CXX) $(CXXFLAGS) -o $@ $^
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
run:
|
|
./$(TARGET)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS) $(TARGET)
|