From ad9c2c45fa85f877fa0880269369e6dc9492a87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 1 Jan 2023 22:28:35 +0100 Subject: pridobivanje peerov deluje --- makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 59ee3d1..aba35cd 100644 --- a/makefile +++ b/makefile @@ -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 -- cgit v1.2.3