summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8a88b0c..deedfd3 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,15 @@ CXXFLAGS=-stdlib=libc++ -Wall -O2 -std=c++17
all: fft
-fft: fft.cpp
+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: