d3858ffc26
Now major include files are comming from main Makefile, module need to add just their specific include path. To work make the include path absolute.
22 lines
309 B
Makefile
22 lines
309 B
Makefile
CC = gcc
|
|
CFLAGS = $(INCLUDE) -O0 -Wall -Werror -std=c11
|
|
|
|
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
|
|
$(CC) -o test test.o $(OBJS) $(CFLAGS)
|