Makerules.am 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Makerules: how to do some things.
  2. # Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc.
  3. # Permission to use, copy, modify and distribute this software and its
  4. # documentation is hereby granted, provided that both the copyright
  5. # notice and this permission notice appear in all copies of the
  6. # software, derivative works or modified versions, and any portions
  7. # thereof, and that both notices appear in supporting documentation.
  8. #
  9. # THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
  10. # "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
  11. # LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
  12. # USE OF THIS SOFTWARE.
  13. #
  14. # Building foo.h from foo.sym.
  15. #
  16. EXTRA_DIST += \
  17. gensym.awk
  18. %.symc: %.sym gensym.awk
  19. $(AWK_V) $(AWK) -f $(word 2,$^) $< > $@
  20. %.symc.o: %.symc config.h
  21. $(AM_V_CC) $(COMPILE) -S -x c -o $@ $<
  22. %.h: %.symc.o
  23. $(AM_V_GEN) sed < $< > $@ \
  24. -e 's/^[^*].*$$//' \
  25. -e 's/^[*]/#define/' \
  26. -e 's/mAgIc[^-0-9]*//'
  27. # Makerules.mig: how to do some MIG-related things.
  28. include Makerules.mig.am
  29. #
  30. # gzip files.
  31. #
  32. %.gz: %
  33. $(GZIP_V) $(GZIP) -9 < $< > $@
  34. #
  35. # strip files.
  36. #
  37. %.stripped: %
  38. $(STRIP) -o $@ $<
  39. #
  40. # Echo target.
  41. #
  42. echo-%:
  43. @echo '$* = `$($*)'\'