forked from alasdairnewson/film_grain_rendering_gpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
22 lines (20 loc) · 1.16 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
NVCC=nvcc
CC=gcc
CXXFLAGS = -Wall -Wextra#-std=c++11 #-O2 #-std=c++11 #-stdlib=libstdc++ # $(DEBUG) -Wall
LIB= -lpng -ltiff -lglut -lGL#-L/usr/informix/lib/c++ OBJS = knnsearch_test.o -lm
OBJS = obj/film_grain_rendering_main.o obj/film_grain_rendering.o obj/matrix.o obj/io_png.o obj/libtiff_io.o
INC = #-I/home/alasdair/Alasdair/Postdoc/2015_descartes/Codes/External_codes/CImg-1.6.9
film_grain_rendering_main: $(OBJS)
$(NVCC) $(OBJS) -o bin/film_grain_rendering_main $(LIB)
obj/film_grain_rendering_main.o: src/film_grain_rendering_main.cpp
$(NVCC) $(INC) -c src/film_grain_rendering_main.cpp -o obj/film_grain_rendering_main.o
obj/film_grain_rendering.o: src/film_grain_rendering.cu
$(NVCC) $(INC) -c src/film_grain_rendering.cu -o obj/film_grain_rendering.o
obj/matrix.o: src/matrix.cpp src/matrix.h
$(CC) $(INC) -c src/matrix.cpp -o obj/matrix.o
obj/io_png.o: src/io_png.c
$(CC) $(CXXFLAGS) $(INC) -c src/io_png.c -o obj/io_png.o
obj/libtiff_io.o: src/libtiff_io.cpp src/libtiff_io.h
$(CC) $(CXXFLAGS) $(INC) -c src/libtiff_io.cpp -o obj/libtiff_io.o
clean: src/film_grain_rendering_main.cpp src/film_grain_rendering.cu src/io_png.c src/libtiff_io.cpp
rm -f bin/* obj/*.o