forked from HPCE/hpce-2018-cw2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
30 lines (22 loc) · 946 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
29
30
# Add `include` to search path, turn on warnings, select c++11
CPPFLAGS = -I include -W -Wall -std=c++11
LDFLAGS =
# -lm to bring in unix math library, -ltbb to bring in tbb
LDLIBS = -lm -ltbb
# Turn on optimisations
CPPFLAGS += -O3
# The very basic parts
FOURIER_CORE_OBJS = src/fourier_transform.o src/fourier_transform_register_factories.o
# implementations
# TODO : Add your implementations to this list. Use \ to continue line
FOURIER_IMPLEMENTATION_OBJS = \
src/fast_fourier_transform.o \
src/direct_fourier_transform.o
FOURIER_OBJS = $(FOURIER_CORE_OBJS) $(FOURIER_IMPLEMENTATION_OBJS)
bin/test_fourier_transform : src/test_fourier_transform.cpp $(FOURIER_OBJS)
-mkdir -p bin
$(CXX) $(CPPFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
bin/time_fourier_transform : src/time_fourier_transform.cpp $(FOURIER_OBJS)
-mkdir -p bin
$(CXX) $(CPPFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
all : bin/test_fourier_transform bin/time_fourier_transform