patch-Makefile_in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- w3m-0.5.3.orig/Makefile.in 2011-01-04 10:22:18.000000000 +0100
  2. +++ w3m-0.5.3/Makefile.in 2014-04-08 21:21:10.000000000 +0200
  3. @@ -176,8 +176,20 @@ functable.c: funcname.tab mktable$(EXT)
  4. ./mktable$(EXT) 100 functable.tab > $@
  5. -rm -f functable.tab
  6. -mktable$(EXT): mktable.o dummy.o Str.o hash.o myctype.o
  7. - $(CC) $(CFLAGS) -o mktable mktable.o dummy.o Str.o hash.o myctype.o $(LDFLAGS) $(LIBS) $(GC_LIBS)
  8. +Str-host.o:
  9. + $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c -o $@ $(srcdir)/Str.c
  10. +
  11. +hash-host.o:
  12. + $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c -o $@ $(srcdir)/hash.c
  13. +
  14. +myctype-host.o:
  15. + $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c -o $@ $(srcdir)/myctype.c
  16. +
  17. +mktable-host.o:
  18. + $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c -o $@ $(srcdir)/mktable.c
  19. +
  20. +mktable$(EXT): mktable-host.o dummy-host.o Str-host.o hash-host.o myctype-host.o
  21. + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o mktable mktable-host.o dummy-host.o Str-host.o hash-host.o myctype-host.o $(LDFLAGS_FOR_BUILD) $(LIBS) $(GC_LIBS)
  22. $(BOOKMARKER): w3mbookmark.o dummy.o $(ALIB)
  23. $(CC) $(CFLAGS) -o $(BOOKMARKER) w3mbookmark.o dummy.o $(LDFLAGS) $(LIBS) $(EXT_LIBS)
  24. @@ -194,6 +206,9 @@ inflate.o: inflate.c
  25. libwc/libwc.a: libwc
  26. libwc:
  27. (cd libwc && $(MAKE) CC='$(CC0)' OPTS='$(OPTS)')
  28. +
  29. +dummy-host.o: entity.c
  30. + $(CC_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) -DDUMMY -c -o $@ $?
  31. dummy.o: entity.c
  32. $(CC) $(CFLAGS) -DDUMMY -c -o $@ $?