Files
utun2/net_emulator/Makefile
T

25 lines
443 B
Makefile

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