From ea1d3c232768b18276aafc9f517598626a910773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 11 Feb 2023 17:21:13 +0100 Subject: =?UTF-8?q?lep=C5=A1i=20makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index a348ba3..15f54a9 100644 --- a/makefile +++ b/makefile @@ -3,13 +3,17 @@ CC=cc MYCFLAGS=-DHARDCODED_DNS=`(host ipv6.sijanec.eu || echo no_host_program_on_build_host) | tail -n1 | rev | cut -d\ -f1 | rev` -O0 -Wall -Wextra -Wformat -pedantic -g -Isrc -Itmp -Itiny-AES-c # -fsanitize=address MYLDFLAGS=-lresolv -lmd -default: +default: travnik utils + +tmp: mkdir -p tmp - $(CC) $(MYCFLAGS) $(CFLAGS) src/main.c -otravnik $(MYLDFLAGS) $(LDFLAGS) + +travnik: src/main.c + $(CC) $(MYCFLAGS) $(CFLAGS) $< -o$@ $(MYLDFLAGS) $(LDFLAGS) utils: tmp/midpoint tmp/bencoding tmp/dns tmp/info -tmp/%: utils/%.c src/dht.c +tmp/%: utils/%.c src/dht.c tmp $(CC) $(MYCFLAGS) $(CFLAGS) $< -o$@ $(MYLDFLAGS) $(LDFLAGS) install: -- cgit v1.2.3