diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-11 17:21:13 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-11 17:21:13 +0100 |
commit | ea1d3c232768b18276aafc9f517598626a910773 (patch) | |
tree | 7e0dd583672d70f52fa7feef1bcf8eabe1474322 | |
parent | better oom algo (diff) | |
download | travnik-ea1d3c232768b18276aafc9f517598626a910773.tar travnik-ea1d3c232768b18276aafc9f517598626a910773.tar.gz travnik-ea1d3c232768b18276aafc9f517598626a910773.tar.bz2 travnik-ea1d3c232768b18276aafc9f517598626a910773.tar.lz travnik-ea1d3c232768b18276aafc9f517598626a910773.tar.xz travnik-ea1d3c232768b18276aafc9f517598626a910773.tar.zst travnik-ea1d3c232768b18276aafc9f517598626a910773.zip |
Diffstat (limited to '')
-rw-r--r-- | makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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: |