compile.mk 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # FLAC - Free Lossless Audio Codec
  2. # Copyright (C) 2001-2009 Josh Coalson
  3. # Copyright (C) 2011-2016 Xiph.Org Foundation
  4. #
  5. # This file is part the FLAC project. FLAC is comprised of several
  6. # components distributed under different licenses. The codec libraries
  7. # are distributed under Xiph.Org's BSD-like license (see the file
  8. # COPYING.Xiph in this distribution). All other programs, libraries, and
  9. # plugins are distributed under the GPL (see COPYING.GPL). The documentation
  10. # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
  11. # FLAC distribution contains at the top the terms under which it may be
  12. # distributed.
  13. #
  14. # Since this particular file is relevant to all components of FLAC,
  15. # it may be distributed under the Xiph.Org license, which is the least
  16. # restrictive of those mentioned above. See the file COPYING.Xiph in this
  17. # distribution.
  18. #
  19. # GNU makefile fragment for building a library
  20. #
  21. %.debug.o %.release.o : %.c
  22. $(CC) $(CFLAGS) -c $< -o $@
  23. %.debug.o %.release.o : %.cc
  24. $(CCC) $(CXXFLAGS) -c $< -o $@
  25. %.debug.o %.release.o : %.cpp
  26. $(CCC) $(CXXFLAGS) -c $< -o $@
  27. %.debug.pic.o %.release.pic.o : %.c
  28. $(CC) $(CFLAGS) $(F_PIC) -DPIC -c $< -o $@
  29. %.debug.pic.o %.release.pic.o : %.cc
  30. $(CCC) $(CXXFLAGS) $(F_PIC) -DPIC -c $< -o $@
  31. %.debug.pic.o %.release.pic.o : %.cpp
  32. $(CCC) $(CXXFLAGS) $(F_PIC) -DPIC -c $< -o $@
  33. %.debug.i %.release.i : %.c
  34. $(CC) $(CFLAGS) -E $< -o $@
  35. %.debug.i %.release.i : %.cc
  36. $(CCC) $(CXXFLAGS) -E $< -o $@
  37. %.debug.i %.release.i : %.cpp
  38. $(CCC) $(CXXFLAGS) -E $< -o $@
  39. %.debug.o : %.nasm
  40. $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@
  41. %.release.o : %.nasm
  42. $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@
  43. %.debug.pic.o : %.nasm
  44. $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ -g $< -o $@
  45. %.release.pic.o : %.nasm
  46. $(NASM) -f elf -d OBJ_FORMAT_elf -i ia32/ $< -o $@