2015-03-21 11:47:51 +00:00
|
|
|
LIB = libcoio.a
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
coro.o \
|
|
|
|
coio.o
|
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
$(OBJS): coio.h coro.h
|
|
|
|
|
2015-03-21 12:28:01 +00:00
|
|
|
.c.o:
|
2015-03-21 11:47:51 +00:00
|
|
|
$(CC) $(CFLAGS) -W -Wall -Wextra -Werror -c $*.c
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
$(AR) rvc $(LIB) $?
|
|
|
|
|
|
|
|
testyield: testyield.c $(LIB)
|
2015-03-21 12:28:01 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ testyield.c $(LIB)
|
2015-03-21 11:47:51 +00:00
|
|
|
|
|
|
|
test: testyield
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS)
|
|
|
|
rm -f $(LIB)
|
|
|
|
rm -f testyield
|
|
|
|
|
|
|
|
.PHONY: all clean test
|
2015-03-21 12:28:01 +00:00
|
|
|
.SUFFIXES: .c .o
|