patch-src_comerr_Makefile_in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- openafs-1.6.5.orig/src/comerr/Makefile.in 2013-07-18 00:10:42.000000000 +0200
  2. +++ openafs-1.6.5/src/comerr/Makefile.in 2013-09-09 06:25:16.479495215 +0200
  3. @@ -31,12 +31,12 @@ et_lex.lex.c: et_lex.lex.l
  4. $(RM) -f et_lex.lex.c
  5. $(LEX) -t $(srcdir)/et_lex.lex.l > et_lex.lex.c
  6. -compile_et: compile_et.o error_table.o
  7. +compile_et: compile_et.o error_table.o internal.o
  8. case $(SYS_NAME) in \
  9. *_linux* | *_umlinux* ) \
  10. - ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
  11. + ${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} -o compile_et compile_et.o error_table.o internal.o ;; \
  12. * ) \
  13. - ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
  14. + ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -ll;; \
  15. esac
  16. libafscom_err.a: error_msg.o et_name.o com_err.o AFS_component_version_number.o
  17. @@ -49,7 +49,10 @@ libafscom_err.a: error_msg.o et_name.o c
  18. # so we need to add the source directory to the includes to pick up local headers.
  19. #
  20. error_table.o: error_table.c
  21. - $(CC) $(CFLAGS) -I${srcdir} @CFLAGS_NOUNUSED@ @CFLAGS_NOOLDSTYLE@ -c error_table.c
  22. + $(CC_FOR_BUILD) ${COMMON_INCL} $(CFLAGS_FOR_BUILD) -I${srcdir} @CFLAGS_NOUNUSED@ @CFLAGS_NOOLDSTYLE@ -c error_table.c
  23. +
  24. +internal.o: internal.c
  25. + $(CC_FOR_BUILD) ${COMMON_INCL} $(CFLAGS_FOR_BUILD) -I${srcdir} -c internal.c
  26. #
  27. # Installation targets
  28. @@ -85,6 +88,7 @@ test:
  29. cd test; $(MAKE)
  30. compile_et.o: AFS_component_version_number.c
  31. + $(CC_FOR_BUILD) ${COMMON_INCL} $(CFLAGS_FOR_BUILD) -c compile_et.c -o compile_et.o
  32. error_table.o: et_lex.lex.c
  33. include ../config/Makefile.version