Makefile
上传用户:myichia
上传日期:2019-01-05
资源大小:217k
文件大小:1k
源码类别:

TAPI编程

开发平台:

C/C++

  1. # Makefile
  2. opt_flags = -march=pentium-m
  3. flags = -Wall -O3 -g -I. $(opt_flags)
  4. CC = gcc
  5. CFLAGS = $(flags)
  6. subs = fastapi.c common.c
  7. programs = arca/arca fast_dump/fast_dump fast_test/fast_test encode/encode decode/decode
  8. default: $(programs)
  9. arca/arca: Makefile arca/arca.c $(subs)
  10. gcc $(flags) -I arca -o arca/arca arca/arca.c $(subs)
  11. encode/encode: Makefile encode/encode.c $(subs)
  12. gcc $(flags) -I encode -o encode/encode encode/encode.c $(subs)
  13. decode/decode: Makefile decode/decode.c $(subs)
  14. gcc $(flags) -I decode -o decode/decode decode/decode.c $(subs)
  15. fast_dump/fast_dump: Makefile fast_dump/fast_dump.c common.c
  16. gcc $(flags) -o fast_dump/fast_dump fast_dump/fast_dump.c common.c
  17. fast_test/fast_test: Makefile fast_test/fast_test.c $(subs)
  18. gcc $(flags) -o fast_test/fast_test fast_test/fast_test.c $(subs)
  19. doxy:
  20. doxygen Doxyfile
  21. clean-docs:
  22. rm -f docs/html/* docs/latex/*
  23. clean-src:
  24. rm -f $(programs) arca/arca fast_test/fast_test fast_dump/fast_dump *.o core core.* *~
  25. clean: clean-docs clean-src