2017-07-31 20:49:59 +08:00
|
|
|
.PHONEY = all lib_fiber clean cl rebuild rb
|
2019-06-26 23:06:32 +08:00
|
|
|
DESTDIR =
|
|
|
|
PREFIX = /usr
|
2017-07-26 15:15:30 +08:00
|
|
|
BIN_PATH = $(DESTDIR)/$(PREFIX)/bin/
|
|
|
|
LIB_ACL = $(DESTDIR)/$(PREFIX)/lib
|
2019-06-26 23:06:32 +08:00
|
|
|
INC_ACL = $(DESTDIR)/$(PREFIX)/include/acl-lib
|
2016-05-30 14:09:38 +08:00
|
|
|
|
2017-07-31 20:49:59 +08:00
|
|
|
lib_fiber:
|
2016-06-23 13:34:54 +08:00
|
|
|
@(cd c; make)
|
|
|
|
@(cd cpp; make)
|
2017-07-31 20:49:59 +08:00
|
|
|
|
|
|
|
all: lib_fiber
|
2016-06-23 13:34:54 +08:00
|
|
|
@(cd samples; make)
|
2016-05-30 14:09:38 +08:00
|
|
|
|
2016-07-18 22:07:31 +08:00
|
|
|
clean cl:
|
2016-06-23 13:34:54 +08:00
|
|
|
@(cd c; make clean)
|
|
|
|
@(cd cpp; make clean)
|
|
|
|
@(cd samples; make clean)
|
2016-07-18 22:07:31 +08:00
|
|
|
|
2017-07-26 15:15:30 +08:00
|
|
|
|
|
|
|
packinstall:
|
|
|
|
@(echo "")
|
|
|
|
@(echo "begin copy file...")
|
|
|
|
$(shell mkdir -p $(INC_ACL)/fiber)
|
|
|
|
$(shell mkdir -p $(LIB_ACL)/)
|
|
|
|
cp -f c/include/fiber/lib_fiber.h $(INC_ACL)/fiber/
|
|
|
|
cp -f cpp/include/fiber/*.hpp $(INC_ACL)/fiber/
|
|
|
|
cp -f lib/libfiber.a lib/libfiber_cpp.a $(LIB_ACL)/
|
|
|
|
|
2016-07-18 22:07:31 +08:00
|
|
|
rebuild rb: cl all
|