change typescript error handler
[PxpRpc.git] / c / readme.md
blobc8e2d16ea46a2c3a13c83a95d0d0362180a7f7ea
3 ## Use pxprpc with Makefile
5 Set environment variable "PXPRPC_SOURCE_ROOT" to the path of this project.
7 In makefile, add make config script by "include", like below
9 `include $(PXPRPC_SOURCE_ROOT)/c/pxprpc_libuv/make-config.mk`
11 `include $(PXPRPC_SOURCE_ROOT)/c/pxprpc_tbox/make-config.mk`
13 depend on which backend you choose.
15 or just
17 `include $(PXPRPC_SOURCE_ROOT)/c/pxprpc/make-config.mk`
19 for custom backend.
24 These scripts will add build flags into variable like `$(PXPRPC_LDFLAGS)`, `$(PXPRPC_LIBUV_CFLAGS)` ,etc.
26 then build like below
28 ```
29 your_target:build_pxprpc_libuv
30         $(CC) -o yoursource.cpp $(CFLAGS) $(PXPRPC_LIBUV_CFLAGS) test.cpp $(LDFLAGS) $(PXPRPC_LIBUV_LDFLAGS) -lstdc++
31 ```
33 See also pxprpc_libuv/make-config.mk, which contains a build example.
36 You may need set `$(LIBUV_CFLAGS)` and `$(LIBUV_LDFLAGS)` variable if use pxprpc_libuv backend. 
39 Similarly set `$(TBOX_CFLAGS)` and `$(TBOX_LDFLAGS)` variable if use pxprpc_tbox backend.