#######################################################################
# Author: David Goz (david.goz@inaf.it)                               #
# June  2024                                                          #
#######################################################################
#
# To see all the compilation options
# $ make info
#######################################################################

# make.def defines how the application is compiled
include make.def
#######################################################################

.PHONY: info openacc serial clean

info:
	@echo ' '
	@echo '-----------------------------------------------------------------------------------------------'
	@echo '$$ make OpenACC                ---> compile the OpenACC application                            '
	@echo '$$ make serial                 ---> compile the serial application                             '
	@echo '$$ make info                   ---> get make info                                              '
	@echo '-----------------------------------------------------------------------------------------------'
	@echo ' '

openacc: $(PROG)

serial: $(PROG_SERIAL)

clean:
	rm -f *~ .*~ ./src/*~ ./src/*# ./include/*~ ./include/*# *~
	rm -f $(PROG) $(PROG_SERIAL)
	rm -f *bin
	rm -f jacobi_OpeACC*
	rm -rf jacobi_serial*
