acl/lib_fiber/Makefile

31 lines
661 B
Makefile
Raw Normal View History

.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
lib_fiber:
@(cd c; make)
@(cd cpp; make)
all: lib_fiber
@(cd samples; make)
2016-05-30 14:09:38 +08:00
clean cl:
@(cd c; make clean)
@(cd cpp; make clean)
@(cd samples; make clean)
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)/
rebuild rb: cl all