libcoio/Makefile
Moritz Bitsch c96c212fd4 Revert "use stackless coroutines"
This reverts commit ce4605013f.
2018-07-27 10:47:58 +02:00

32 lines
454 B
Makefile

LIB = libcoio.a
OBJS = \
coro.o \
coio.o
all: $(LIB)
$(OBJS): coio.h coro.h
.c.o:
$(CC) $(CFLAGS) -W -Wall -Wextra -Werror -c $*.c
$(LIB): $(OBJS)
$(AR) rvc $(LIB) $?
testyield: testyield.c $(LIB)
$(CC) $(CFLAGS) -o $@ testyield.c $(LIB)
testdelay: testdelay.c $(LIB)
$(CC) $(CFLAGS) -o $@ testdelay.c $(LIB)
test: testyield testdelay
clean:
rm -f $(OBJS)
rm -f $(LIB)
rm -f testyield testdelay
.PHONY: all clean test
.SUFFIXES: .c .o