Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @@ -93,14 +93,10 @@ all: lib
  2. clean:
  3. @- rm -f $(clean_list)
  4.  
  5. -# Generate dependencies for all files in project
  6. -%.d: $(LIBCOOLSTREAM_SRCS)
  7. - @ $(C++) $(CXXFLAGS) -MM $*.cpp | sed -e 's@^\(.*\)\.o:@\1.d \1.o:@' > $@
  8. -
  9. .cpp.o:
  10. $(C++) $(CXXFLAGS) -c -o $*.o $<
  11.  
  12. -clean_list += ${LIBCOOLSTREAM_SRCS:.cpp=.d}
  13. +clean_list += ${LIBCOOLSTREAM_SRCS:.cpp}
  14.  
  15. version:
  16. @(printf '#define CS_VERSION "CST API %s%s"\n' "$(LIBCOOLSTREAM_NAME)-$(LIBCOOLSTREAM_VERSION)") > $(CS_VERSION_FILE).tmp
  17. @@ -118,8 +114,3 @@ lib: version $(LIBCOOLSTREAM_OBJS)
  18. $(C++) $(LDFLAGS) -o $(LIB) $(LIBCOOLSTREAM_OBJS)
  19. @rm -f $(LIB_S)
  20. $(AR) -r $(LIB_S) $(LIBCOOLSTREAM_OBJS)
  21. -
  22. -ifneq "$(MAKECMDGOALS)" "clean"
  23. -# Include the list of dependancies generated for each object file
  24. --include ${LIBCOOLSTREAM_SRCS:.cpp=.d}
  25. -endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement