CGLAGS= -std=c++17 -I. -I$(VULKAN_SDK_PATH)/include
LDFLAGS = -L$(VULKAN_SDK_PATH)/lib `pkg-config --static --libs glfw3` -lvulkan
OUTPUT_DIR = ./bin
a.out: *.cpp *.hpp
g++ $(CFLAGS) -o $(OUTPUT_DIR)/a.out *.cpp $(LDFLAGS)
.PHONY: test clean
test: a.out
./a.out
clean:
rm -f $(OUTPUT_DIR)/a.out
This is the error I’m getting
make: *** No rule to make target `*.hpp', needed by `a.out'. Stop.
……………………………………………………………………….
……………………………………………………..
New contributor
MattSW3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.