udpate Makefile.in for rpmbuild

pull/1/head
liaozaixue 2014-06-24 15:39:36 +08:00
parent b224a44276
commit 5a65898707
1 changed files with 7 additions and 5 deletions

View File

@ -33,11 +33,13 @@ libfastcommon.so.1:
.c.lo: .c.lo:
$(COMPILE) -c -fPIC -o $@ $< $(INC_PATH) $(COMPILE) -c -fPIC -o $@ $< $(INC_PATH)
install: install:
cp -f $(ALL_LIBS) /usr/local/lib/ mkdir -p $(DESTDIR)/usr/local/lib
mkdir -p /usr/local/include/fastcommon install -m 755 $(ALL_LIBS) $(DESTDIR)/usr/local/lib/
cp -f $(HEADER_FILES) /usr/local/include/fastcommon mkdir -p $(DESTDIR)/usr/local/include/fastcommon
ln -fs /usr/local/lib/libfastcommon.so.1 /usr/local/lib/libfastcommon.so install -m 644 $(HEADER_FILES) $(DESTDIR)/usr/local/include/fastcommon
sh ./fast_link_library.sh cd $(DESTDIR)/usr/local/lib && ln -fs libfastcommon.so.1 libfastcommon.so
# ln -fs $(DESTDIR)/usr/local/lib/libfastcommon.so.1 $(DESTDIR)/usr/local/lib/libfastcommon.so
# sh ./fast_link_library.sh
clean: clean:
rm -f $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS) rm -f $(ALL_OBJS) $(ALL_PRGS) $(ALL_LIBS)