| | |
| | | # Makefile for common library. |
| | | # |
| | | ROOT=.. |
| | | #LDLIBS+=-Wl,-rpath=$(ROOT)/common:$(ROOT)/lib/jsoncpp |
| | | LDLIBS+=-Wl,-rpath=$(ROOT)/lib |
| | | # 开源工具包路径 |
| | | #LDDIR += -L$(ROOT)/lib/jsoncpp -L$(ROOT)/lib/nng |
| | | LDDIR += -L$(ROOT)/lib |
| | | |
| | | # 开源工具包 |
| | | LDLIBS += -lusgcommon |
| | |
| | | #dynamic lib |
| | | $(DLIBSQUEUE): $(SOURCES) |
| | | rm -f *.o |
| | | $(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS) |
| | | $(CC) -fPIC -shared $(CFLAGS) $(LDFLAGS) $^ -o $@ |
| | | #$(CC) -fPIC -shared $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--whole-archive $(ROOT)/lib/libusgcommon.a -Wl,--no-whole-archive |
| | | |
| | | |