# file: lecture_12/GNUMakefile # # Note that this make file uses "-g" to compile and link "debug". # # define a target for the application # all: example.exe # define a target to link the application # example.exe: example.o functs_00.o nvcc -lm example.o functs_00.o -o example.exe # define targets to compile the source code # example.o: example.cu example.h Makefile nvcc -c example.cu -o example.o # define targets to compile the source code # functs_00.o: functs_00.cu example.h Makefile nvcc -c functs_00.cu -o functs_00.o # define a target to clean the directory # clean: rm -f example.o functs_00.o example.exe # # end of file