summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-26 21:45:44 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-26 21:45:44 +0200
commit453dab565ae62b01534d7c41b6a47342d1a049d0 (patch)
tree6c50c8a32e2aae9f28ee11b5aada9d17c499fffb /makefile
parentrm binary (diff)
downloadsoča-453dab565ae62b01534d7c41b6a47342d1a049d0.tar
soča-453dab565ae62b01534d7c41b6a47342d1a049d0.tar.gz
soča-453dab565ae62b01534d7c41b6a47342d1a049d0.tar.bz2
soča-453dab565ae62b01534d7c41b6a47342d1a049d0.tar.lz
soča-453dab565ae62b01534d7c41b6a47342d1a049d0.tar.xz
soča-453dab565ae62b01534d7c41b6a47342d1a049d0.tar.zst
soča-453dab565ae62b01534d7c41b6a47342d1a049d0.zip
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/makefile b/makefile
index 3a2b79f..32eed24 100644
--- a/makefile
+++ b/makefile
@@ -3,7 +3,7 @@ CC=cc
MYCFLAGS=-O0 -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address
MYLDFLAGS=
-default: ptt naprave
+default: ptt naprave fourier
ptt: ptt.c
$(CC) $(MYCFLAGS) $(CFLAGS) $< -o$@ $(MYLDFLAGS) $(LDFLAGS)
@@ -11,6 +11,12 @@ ptt: ptt.c
naprave: naprave.c
$(CC) $(MYCFLAGS) $(CFLAGS) $< -o$@ $(MYLDFLAGS) $(LDFLAGS) -lsoundio
+fourier: fourier.c frekvence.h
+ $(CC) $(MYCFLAGS) $(CFLAGS) $< -o$@ $(MYLDFLAGS) $(LDFLAGS) -lm
+
+frekvence.h: frekvence.php
+ ./frekvence.php > frekvence.h
+
install:
mkdir -p $(DESTDIR)/usr/bin/
cp ptt $(DESTDIR)/usr/bin/
@@ -18,7 +24,7 @@ install:
distclean: clean
clean:
- rm -rf tmp
+ rm -rf tmp fourier frekvence.h
valgrind:
valgrind --error-exitcode=59 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt $(CMD)