diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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) |