patch-autoconf_Makefile.common.in 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- autoconf/Makefile.common.in.orig Thu Apr 13 06:55:58 2000
  2. +++ autoconf/Makefile.common.in Sun Apr 24 22:44:14 2011
  3. @@ -8,14 +8,14 @@ all: $(PROG)
  4. install: $(PROG)
  5. $(STRIP) $(PROG)
  6. - $(INSTALL_PROGRAM) $(PROG) $(AFTER_BIN_DIR)
  7. + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(AFTER_BIN_DIR)
  8. install.man:
  9. - $(INSTALL_DATA) $(PROG).man $(AFTER_MAN_DIR)/$(PROG).1x
  10. + $(INSTALL_DATA) $(PROG).man $(DESTDIR)$(AFTER_MAN_DIR)/$(PROG).1x
  11. uninstall:
  12. - $(RMF) $(AFTER_BIN_DIR)/$(PROG)
  13. - $(RMF) $(AFTER_MAN_DIR)/$(PROG).1x
  14. + $(RMF) $(DESTDIR)$(AFTER_BIN_DIR)/$(PROG)
  15. + $(RMF) $(DESTDIR)$(AFTER_MAN_DIR)/$(PROG).1x
  16. clean:
  17. $(RMF) $(PROG) *.o *~ *% *.bak \#* core
  18. @@ -32,10 +32,10 @@ indent:
  19. done
  20. $(PROG): $(OBJS)
  21. - $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)
  22. + $(CC) $(OBJS) $(LDFLAGS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@)
  23. .c.o:
  24. - $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
  25. + $(CC) $(CCFLAGS) $(CPPFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c
  26. #
  27. # End of Make.common