Makefile.rules 739 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Makefile.rules
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation version 2.1
  7. # of the License.
  8. #
  9. # Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
  10. #
  11. .SUFFIXES:
  12. .SUFFIXES: .d .c
  13. %.o: %.c
  14. @echo " CC $<"; \
  15. $(CC) $(CFLAGS) -c -o $@ $<
  16. %.d: %.c
  17. @echo " DEP $<"; \
  18. $(CC) $(DEPFLAGS) $< > $@.tmp; \
  19. sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@; \
  20. rm -f $@.tmp
  21. Makefile.opts:
  22. @echo "***"
  23. @echo "*** No configuration found, please run ./configure"
  24. @echo "***"
  25. @exit 1
  26. ifneq ($(MAKECMDGOALS),clean)
  27. ifneq ($(MAKECMDGOALS),distclean)
  28. ifneq ($(DEPS),)
  29. -include $(DEPS)
  30. endif
  31. endif
  32. endif