libcoio/Makefile
Moritz Bitsch 49391edebc Implement sleeping coroutines
sleeping is currently used to implement delays, in future it will also
be used for I/O waiting.
2015-03-28 16:02:10 +01:00

32 lines
444 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
.PHONY: all clean test
.SUFFIXES: .c .o