From a9a3998da281c4a4c4f3cf520254923b8c6592f8 Mon Sep 17 00:00:00 2001 From: Xerbo Date: Sat, 10 Oct 2020 18:05:12 +0100 Subject: [PATCH] Add notice about deprecation of the makefile (and fix it) --- Makefile | 20 +++++++++++--------- README.md | 4 ++++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 87da06a..de95c65 100644 --- a/Makefile +++ b/Makefile @@ -3,19 +3,21 @@ BIN = /usr/bin INCLUDES = -I. PALETTE_DIR=\"$(PWD)/palettes\" CFLAGS = -O3 -Wall -Wextra -Wno-missing-field-initializers -DPALETTE_DIR=$(PALETTE_DIR) $(INCLUDES) -OBJS = src/main.o src/image.o src/dsp.o src/filter.o src/reg.o src/pngio.o src/median.o src/color.o +OBJS = src/main.o src/image.o src/dsp.o src/filter.o src/libs/reg.o src/pngio.o src/libs/median.o src/color.o src/libs/argparse.o aptdec: $(OBJS) $(CC) -o $@ $(OBJS) -lm -lsndfile -lpng + echo "Using the Makefile with GNU automake is now deprecated and will be removed soon, please use CMake instead." -reg.o: src/reg.c -color.o: src/color.c -main.o: src/main.c -media.o: src/median.c -dsp.o: src/dsp.c -filter.o: src/filter.c -image.o: src/image.c -pngio.o: src/pngio.c +src/libs/reg.o: src/libs/reg.c +src/libs/argparse.o: src/libs/argparse.c +src/color.o: src/color.c +src/main.o: src/main.c +src/libs/median.o: src/libs/median.c +src/dsp.o: src/dsp.c +src/filter.o: src/filter.c +src/image.o: src/image.c +src/pngio.o: src/pngio.c clean: rm -f src/*.o aptdec diff --git a/README.md b/README.md index 7e3bc13..dd763d1 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,13 @@ The input audio format can be anything supported by `libsndfile` (although only ```sh sudo apt install git gcc libsndfile-dev libpng-dev git clone https://github.com/Xerbo/aptdec.git && cd aptdec +mkdir build && cd build +cmake -DCMAKE_BUILD_TYPE=Release make ``` +Using the Makefile with GNU automake is now deprecated and will be removed soon. + ## Examples To create an image from `gqrx_20200527_115730_137914960.wav` (output filename will be `gqrx_20200527_115730_137914960-r.png`)