场景:利用gearman实现分布式计算,在不修改makefile的情况下添加一个Feature的Client和Maker。
假设工程架构如下
yejing@yejing-ThinkPad-X230:/home/lxl/JM$ ls
build copyright doc exe inc lib Makefile README res src ------------------------>关注红色目录
yejing@yejing-ThinkPad-X230:/home/lxl/JM$ tree src/
src/
└── helloWorld
├── Client
│ └── testClient.c
└── Worker
└── testWorker.c
3 directories, 2 files
yejing@yejing-ThinkPad-X230:/home/lxl/JM$ tree inc/
inc/
└── helloWorld
├── Client
└── Worker
3 directories, 0 files
以上面演示的helloWorld为例,具体需求为: