1、根据参数生成静态库,动态库
ifeq ($(STATIC), 1)
NSVNET_LIB = $(SRCDIR)libs/lib_nsvnet.a
LINK = $(AR) -rc
else
NSVNET_LIB = $(SRCDIR)libs/lib_nsvnet.so
LINK=$(CPP) -shared -fPIC -o
endif
make STATIC=1
890阅读 0评论2014-02-24 strongerII
分类:LINUX
1、根据参数生成静态库,动态库
ifeq ($(STATIC), 1)
NSVNET_LIB = $(SRCDIR)libs/lib_nsvnet.a
LINK = $(AR) -rc
else
NSVNET_LIB = $(SRCDIR)libs/lib_nsvnet.so
LINK=$(CPP) -shared -fPIC -o
endif
make STATIC=1