summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 2a2971a5d5fa997db2a123f0ce201399afdec340 (plain)
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
CXX=clang++-7
CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17
#-march=native -mtune=native # is not better for llvm

# libstdc++-8 doesn't have transform_reduce
#CXX=g++-8
#CXXFLAGS=-Wall -O2 -std=c++17 -nostdinc++ -I/usr/lib/llvm-7/include/c++/v1 -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc
# -march=native -mtune=native # doesn't help for gcc

all: fft

fft: fft.o main.o
	$(CXX) $(CXXFLAGS) -o $@ $^

fft.o: fft.cpp fft.h
	$(CXX) $(CXXFLAGS) -c -o $@ $<

main.o: main.cpp fft.h
	$(CXX) $(CXXFLAGS) -c -o $@ $<

install:

clean:
	rm -f fft

.PHONY: clean