|
Packit |
c948fe |
CFLAGS = -I.. -O3 -g -Wall -Werror --std=c99
|
|
Packit |
c948fe |
CPPFLAGS = -I.. -O3 -g -Wall -Werror
|
|
Packit |
c948fe |
LDFLAGS = ../gdither.o -lm
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
PROGS = runcheck distortion shapeplot noisetest interleavetest cplusplus
|
|
Packit |
c948fe |
TESTPROGS = runcheck distortion noisetest interleavetest cplusplus
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
all: $(PROGS) ../gdither.o
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
test: all
|
|
Packit |
c948fe |
@for i in $(TESTPROGS); do \
|
|
Packit |
c948fe |
./$$i; \
|
|
Packit |
c948fe |
echo; \
|
|
Packit |
c948fe |
done; \
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
../gdither.o: ../gdither.c
|
|
Packit |
c948fe |
(cd .. && make)
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
distortion: distortion.c ../gdither.o
|
|
Packit |
c948fe |
$(CC) $(CFLAGS) ../gdither.o -lm `pkg-config --libs fftw3` \
|
|
Packit |
c948fe |
distortion.c -o distortion
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
shapeplot: shapeplot.c ../gdither.o
|
|
Packit |
c948fe |
$(CC) $(CFLAGS) ../gdither.o -lm `pkg-config --libs fftw3` \
|
|
Packit |
c948fe |
shapeplot.c -o shapeplot
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
noisetest: noisetest.c ../noise.h
|
|
Packit |
c948fe |
$(CC) $(CFLAGS) -lm `pkg-config --libs fftw3` \
|
|
Packit |
c948fe |
noisetest.c -o noisetest
|
|
Packit |
c948fe |
|
|
Packit |
c948fe |
clean:
|
|
Packit |
c948fe |
rm -f $(PROGS) *.o
|