49391edebc
sleeping is currently used to implement delays, in future it will also be used for I/O waiting.
32 lines
444 B
Makefile
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
|