diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-01 22:28:35 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-01 22:28:35 +0100 |
commit | ad9c2c45fa85f877fa0880269369e6dc9492a87d (patch) | |
tree | e20d53a11f060cad20c8423f53921054358c59e4 /makefile | |
parent | fixed bdecoding strncpy->memcpy +etc (diff) | |
download | travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.tar travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.tar.gz travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.tar.bz2 travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.tar.lz travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.tar.xz travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.tar.zst travnik-ad9c2c45fa85f877fa0880269369e6dc9492a87d.zip |
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,10 +1,17 @@ DESTDIR=/ CC=cc +MYCFLAGS=-Wall -Wextra -Wformat -pedantic -g -Isrc -Itmp -Itiny-AES-c +MYLDFLAGS=-lresolv default: mkdir -p tmp # -fsanitize-address - $(CC) -Wall -Wextra -Wformat -pedantic -g -Isrc -Itmp -Itiny-AES-c $(CFLAGS) src/main.c -otravnik -lm -lresolv $(LDFLAGS) + $(CC) $(MYCFLAGS) $(CFLAGS) src/main.c -otravnik $(MYLDFLAGS) $(LDFLAGS) + +utils: + $(CC) $(MYCFLAGS) $(CFLAGS) utils/midpoint.c -otmp/midpoint $(MYLDFLAGS) $(LDFLAGS) + $(CC) $(MYCFLAGS) $(CFLAGS) utils/bencoding.c -otmp/bencoding $(MYLDFLAGS) $(LDFLAGS) + $(CC) $(MYCFLAGS) $(CFLAGS) utils/dns.c -otmp/dns $(MYLDFLAGS) $(LDFLAGS) install: mkdir -p $(DESTDIR)/usr/bin/ @@ -21,4 +28,4 @@ prepare: valgrind: valgrind --error-exitcode=59 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt $(CMD) -.PHONY: default install distclean clean prepare valgrind +.PHONY: default install distclean clean prepare valgrind utils |