-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (18 loc) · 574 Bytes
/
Makefile
File metadata and controls
28 lines (18 loc) · 574 Bytes
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
SUFFIXES += .d
CXX = g++
CFLAGS = -Werror -Wall -Wextra -Wfatal-errors -pedantic-errors -pedantic -march=native -O3 -I. -std=c++14
CFLAGS += $(shell pkg-config --cflags sndfile)
LFLAGS = $(shell pkg-config --libs sndfile)
CFLAGS += $(shell pkg-config --cflags fftw3)
LFLAGS += $(shell pkg-config --libs fftw3)
TARGETS = compute_sound_offset
all: $(TARGETS)
compute_sound_offset: sound.o
$(TARGETS): %: %.o
$(CXX) -o $@ $^ $(LFLAGS)
%.o: %.cpp
$(CXX) -M $(CFLAGS) $< > $*.d
$(CXX) -c $(CFLAGS) $< -o $@
clean:
rm -f *.o $(TARGETS) *.d
-include $(wildcard *.d)