Hyprdoctor/Makefile

20 lines
324 B
Makefile
Raw Normal View History

2023-11-30 17:54:31 +00:00
CXX = g++
CXXFLAGS = -Wall -std=c++11
2023-11-30 18:31:41 +00:00
TARGET = Hyprdoctor
SRCS = main.cpp src/utils/environment.cpp src/utils/file_parser.cpp
OBJS = $(SRCS:.cpp=.o)
2023-11-30 17:54:31 +00:00
2023-11-30 18:31:41 +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 $@ $^
2023-11-30 17:54:31 +00:00
%.o: %.cpp
2023-11-30 18:31:41 +00:00
$(CXX) $(CXXFLAGS) -c $< -o $@
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)