Files
utun2/net_emulator/Makefile
T
jek b1251573e2 Add utun VPN implementation and enhance async infrastructure
- Add utun VPN daemon with config parsing, control socket, routing, and TUN interface
- Refactor net_emulator/u_async to support multiple independent instances
- Replace linked-list timeout management with heap-based implementation
- Fix timeout processing bug (process timeouts after select)
- Add comprehensive random timeout and instance isolation tests
- Update Makefile to build utun and new test targets
2026-01-15 12:16:39 +04:00

33 lines
769 B
Makefile

# Makefile for network emulator
CC = gcc
CFLAGS = -Os -std=c99 -Wall -Wextra -D_ISOC99_SOURCE
INCLUDES = -I.
SRCS = net_emulator.c u_async.c timeout_heap.c
OBJS = $(SRCS:.c=.o)
TARGET = net_emulator
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $^
test: test_timeout_heap test_uasync_random
./test_timeout_heap
./test_uasync_random
test_timeout_heap: test_timeout_heap.o timeout_heap.o
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $^
test_uasync_random: test_uasync_random.o u_async.o timeout_heap.o
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET) test_timeout_heap.o timeout_heap.o test_timeout_heap \
test_uasync_random.o test_uasync_random
.PHONY: all clean test