Makefile
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:1k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

C/C++

  1. CC=cc
  2. AR=ar r
  3. RM=rm -f
  4. # path to your OpenSSL installation
  5. OPENSSL=/usr/local/ssl
  6. #YARROW=$(ROOT)/contrib/yarrow.$(OS_ARCH)/src
  7. YARROW=$(ROOT)/yarrow/src
  8.     
  9. INC=-I$(OPENSSL)/include 
  10. LDFLAGS=-L$(OPENSSL)/lib -L./     
  11. LOADLIBES=-lyarrow -lcrypto -lssl#-lm
  12. # options you want to use
  13. DEF1=-DYARROW_SAVE_STATE -DYARROW_TRACE
  14. DEF2=-DYARROW_NO_MATHLIB #-DUSE_LOCKS -DYARROW_DETECT_FORK 
  15. DEF=$(DEF1) $(DEF2)
  16. OPT=-g
  17. #OPT=-O3
  18. CFLAGS=$(OPT) $(DEF) $(INC)
  19. LIB=libyarrow.a
  20. OBJS=yarrow.o ystate.o yseed.o
  21. #EXES=ytest
  22. ytest: ytest.o $(LIB)
  23. $(CC) $(LDFLAGS) ytest.o $(LOADLIBES) -o $@
  24. $(LIB): $(OBJS)
  25. $(AR) $(LIB) $(OBJS)
  26. test: ytest
  27. ./ytest
  28. clean:
  29. $(RM) *.a *.o *~ *.bak $(EXES) core
  30. distclean: clean
  31. $(RM) seed TAGS
  32. tags:
  33. etags *.c *.h 
  34. # DO NOT DELETE
  35. yarrow.o: yarrow.h ytypes.h yhash.h ycipher.h ylock.h ystate.h yexcep.h
  36. yseed.o: yarrow.h ytypes.h yhash.h ycipher.h yexcep.h
  37. ystate.o: yarrow.h ytypes.h yhash.h ycipher.h ystate.h yexcep.h
  38. ytest.o: yarrow.h ytypes.h yhash.h ycipher.h yexcep.h ystate.h
  39. yarrow.o: ytypes.h yhash.h ycipher.h
  40. ylock.o: yarrow.h ytypes.h yhash.h ycipher.h