Files
dotp/Makefile
weakboson 7a3b18b848 Implement DNS server with fake IP address replacements.
The IPv4 addresses in the answer will be hash-mapped to addresses in the pool.
2025-04-03 10:11:11 +08:00

23 lines
339 B
Makefile

CC=gcc
CFLAGS=-Wall
LDFLAGS=
DEPS=$(wildcard *.h)
SRC=$(wildcard src/*.c)
OBJ=$(patsubst src/%.c, build/%.o, $(SRC))
.PHONY: all clean
all: build/dotp
clean:
rm $(OBJ)
rm build/dotp
build/%.o: src/%.c $(DEPS)
mkdir -p build
$(CC) -c -o $@ $< $(CFLAGS)
build/dotp: $(OBJ)
mkdir -p build
$(CC) -o $@ $^ $(LDFLAGS) -lev -lnftables