HIP_PATH?= $(wildcard /opt/rocm/hip) ifeq (,$(HIP_PATH)) HIP_PATH=../../.. endif HIPCC=$(HIP_PATH)/bin/hipcc TARGET=hcc SOURCES = vectoradd_hip.cpp OBJECTS = $(SOURCES:.cpp=.o) EXECUTABLE=./vectoradd_hip.exe .PHONY: test all: $(EXECUTABLE) test CXXFLAGS =-g CXX=$(HIPCC) $(EXECUTABLE): $(OBJECTS) $(HIPCC) -I/homelocal/fmendeslocal/GPA/Src/GPUPerfAPI-Common/ $(OBJECTS) -o $@ test: $(EXECUTABLE) $(EXECUTABLE) clean: rm -f $(EXECUTABLE) rm -f $(OBJECTS) rm -f $(HIP_PATH)/src/*.o