2017-10-11 16:23:25 +00:00
|
|
|
CC = gcc
|
2018-11-29 12:15:27 +00:00
|
|
|
CFLAGS = $(INCLUDE) -O0 -Wall -Werror -std=c11
|
2017-10-11 16:23:25 +00:00
|
|
|
|
|
|
|
ifdef DEBUG
|
|
|
|
CFLAGS += -g3
|
|
|
|
endif
|
|
|
|
|
|
|
|
LFLAGS =
|
|
|
|
DEPS =
|
|
|
|
OBJS = frame.o session.o stream.o yamux.o ../os/timespec.o
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
|
|
|
all: $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f test
|
|
|
|
|
|
|
|
test: all test.o
|
2018-11-29 12:15:27 +00:00
|
|
|
$(CC) -o test test.o $(OBJS) $(CFLAGS)
|