Makefile
上传用户:myichia
上传日期:2019-01-05
资源大小:217k
文件大小:1k
- # Makefile
- opt_flags = -march=pentium-m
- flags = -Wall -O3 -g -I. $(opt_flags)
- CC = gcc
- CFLAGS = $(flags)
- subs = fastapi.c common.c
- programs = arca/arca fast_dump/fast_dump fast_test/fast_test encode/encode decode/decode
- default: $(programs)
- arca/arca: Makefile arca/arca.c $(subs)
- gcc $(flags) -I arca -o arca/arca arca/arca.c $(subs)
- encode/encode: Makefile encode/encode.c $(subs)
- gcc $(flags) -I encode -o encode/encode encode/encode.c $(subs)
- decode/decode: Makefile decode/decode.c $(subs)
- gcc $(flags) -I decode -o decode/decode decode/decode.c $(subs)
- fast_dump/fast_dump: Makefile fast_dump/fast_dump.c common.c
- gcc $(flags) -o fast_dump/fast_dump fast_dump/fast_dump.c common.c
- fast_test/fast_test: Makefile fast_test/fast_test.c $(subs)
- gcc $(flags) -o fast_test/fast_test fast_test/fast_test.c $(subs)
- doxy:
- doxygen Doxyfile
- clean-docs:
- rm -f docs/html/* docs/latex/*
- clean-src:
- rm -f $(programs) arca/arca fast_test/fast_test fast_dump/fast_dump *.o core core.* *~
- clean: clean-docs clean-src