-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (21 loc) · 835 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ifndef FF_ROOT
FF_ROOT = ./lib
endif
CXX = g++ -std=c++11 -D cimg_display=0 #-DNO_DEFAULT_MAPPING
INCLUDES = -I $(FF_ROOT)
CXXFLAGS =
LDFLAGS = -pthread
OPTFLAGS = -O3 -finline-functions
TARGETS = seq_watermark \
cpp_watermark \
ff_watermark
.PHONY: all clean cleanall
.SUFFIXES: .cpp
%: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) $(OPTFLAGS) -o $@ $< $(LDFLAGS)
all : $(TARGETS)
printf "\n---------------------------------\nSource files succesfully compiled.\n---------------------------------\n \nUsage is:\n./obj_file_name source_folder result_folder watermark_file [par_deg] avg\n \n*************************************************\n*** Images and watermark must have SAME SIZE. ***\n*************************************************\n";
clean :
rm -f $(TARGETS)
cleanall : clean
\rm -f *.o *~