Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
all: burnscope burnscope3 fftw3_test burnscope_fft

override CFLAGS += -Wall -O3
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'override' klingt irgendwie so als wäre '+=' quatsch? (ich kenne 'override' gar nicht)

#override CFLAGS += -g

.PHONY: clean
clean:
rm -f burnscope burnscope3 fftw3_test burnscope_fft

burnscope3: burnscope3.c
gcc -Wall -O3 -g burnscope3.c -o burnscope3 -lm -lSDL2
$(CC) $(CFLAGS) burnscope3.c -o burnscope3 -lm -lSDL2

burnscope: burnscope.c
gcc -Wall -O3 -g burnscope.c -o burnscope -lm -lSDL2 -lpng
$(CC) $(CFLAGS) burnscope.c -o burnscope -lm -lSDL2 -lpng

fftw3_test: fftw3_test.c
gcc -Wall -O3 -g fftw3_test.c -o fftw3_test -lm -lSDL2 -lfftw3
$(CC) $(CFLAGS) fftw3_test.c -o fftw3_test -lm -lSDL2 -lfftw3

burnscope_fft: burnscope_fft.c images.h palettes.h
gcc -Wall -O3 -g burnscope_fft.c -o burnscope_fft -lSDL2 -lfftw3_threads -lfftw3 -lm -lpng -lsndfile
$(CC) $(CFLAGS) burnscope_fft.c -o burnscope_fft -lSDL2 -lfftw3_threads -lfftw3 -lm -lpng -lsndfile

# vim: noexpandtab