Makefile 850 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Makefile for hostcompat library
  3. #
  4. # defs.mk contains two special settings for us.
  5. #
  6. # COMPAT_CFLAGS contains our configuration cflags.
  7. # COMPAT_TARGETS are additional targets to run at install time.
  8. #
  9. # COMPAT_CFLAGS may include any of the following:
  10. #
  11. # -DNEED_ERR Compile err, errx, etc.
  12. #
  13. # COMPAT_TARGETS may include any of the following:
  14. #
  15. # install-errh Install an <err.h>
  16. #
  17. TOP=../../..
  18. .include "$(TOP)/mk/os161.config.mk"
  19. LIB=hostcompat
  20. SRCS=err.c time.c hostcompat.c
  21. CFLAGS+=$(COMPAT_CFLAGS)
  22. MKDIRS=$(INSTALLTOP)/hostinclude
  23. .include "$(TOP)/mk/os161.hostlib.mk"
  24. includes: $(INSTALLTOP)/hostinclude .WAIT $(COMPAT_TARGETS)
  25. cp hostcompat.h $(INSTALLTOP)/hostinclude/
  26. ln -sf ../include/kern $(INSTALLTOP)/hostinclude/kern
  27. install-errh:
  28. cp host-err.h $(INSTALLTOP)/hostinclude/err.h
  29. .PHONY: includes install-errh