-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 822 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 822 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
29
30
CC = gcc
CFLAGS=`pkg-config --cflags fftw3 sdl2`
CFLAGS += -Wall -Wextra -Wpedantic \
-Wformat=2 -Wno-unused-parameter -Wshadow \
-Wwrite-strings -Wstrict-prototypes -Wold-style-definition \
-Wredundant-decls -Wnested-externs -Wmissing-include-dirs
ifeq ($(CC),gcc)
CFLAGS += -Wjump-misses-init -Wlogical-op
endif
CFLAGS += -O3 -g -ggdb -std=c99 -fbuiltin
LDFLAGS=`pkg-config --libs fftw3 sdl2`
LDFLAGS += -lm
visual.exe : visualize.o dataprocessing.o audioInformation.o
$(CC) -o $@ $^ $(LDFLAGS)
visualize.o : visualize.c dataprocessing.h audioInformation.h
$(CC) $(CFLAGS) -c $*.c
dataprocessing.o : dataprocessing.c dataprocessing.h
$(CC) $(CFLAGS) -c $*.c
audioInformation.o: audioInformation.c audioInformation.h
$(CC) $(CFLAGS) -c $<
clean:
rm -rf *.o visual.exe