You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
443 B
25 lines
443 B
# 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 |