Makefile 535 B

123456789101112131415161718192021
  1. CFLAGS += $(shell pkg-config --cflags starpu-1.2)
  2. LDFLAGS += $(shell pkg-config --libs starpu-1.2)
  3. CC = gcc
  4. NVCC = nvcc
  5. main: main.o cpu_output.o output_thread_aggregation.o
  6. $(NVCC) $(CFLAGS) -o main main.o cpu_output.o output_thread_aggregation.o $(LDFLAGS)
  7. main.o: main.c
  8. $(CC) $(CFLAGS) -c main.c $(LDFLAGS)
  9. cpu_output.o: cpu_output.c
  10. $(CC) $(CFLAGS) -c cpu_output.c $(LDFLAGS)
  11. output_thread_aggregation.o: output_thread_aggregation.cu
  12. $(NVCC) $(CFLAGS) -c output_thread_aggregation.cu $(LDFLAGS)
  13. clean:
  14. rm -f main *.o