19 lines
318 B
Makefile
19 lines
318 B
Makefile
|
.POSIX:
|
||
|
.PHONY: install clean
|
||
|
|
||
|
PREFIX=/usr/local
|
||
|
|
||
|
CC=cc
|
||
|
CFLAGS=-Wall -Wextra -Wshadow -Wpedantic -std=c99 -O2 -D_XOPEN_SOURCE
|
||
|
LDFLAGS=$(shell pkg-config --libs --cflags --static fftw3 fftw3f) -static
|
||
|
|
||
|
fftpipe: fftpipe.c
|
||
|
$(CC) $? $(LDFLAGS) $(CFLAGS) -o $@
|
||
|
|
||
|
clean:
|
||
|
rm fftpipe
|
||
|
|
||
|
install: fftpipe
|
||
|
cp $? $(PREFIX)/bin/
|
||
|
|