patch-Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- w-aufs2-util-2-100111-1.orig/Makefile 2011-01-07 05:00:54.000000000 +0100
  2. +++ w-aufs2-util-2-100111-1/Makefile 2011-01-10 23:43:23.000000000 +0100
  3. @@ -15,6 +15,11 @@
  4. # along with this program; if not, write to the Free Software
  5. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  6. +c2sh c2tmac: CC = ${CC_FOR_BUILD}
  7. +c2sh c2tmac: CFLAGS= ${CFLAGS_FOR_BUILD}
  8. +c2sh c2tmac: LDFLAGS= ${LDFLAGS_FOR_BUILD}
  9. +c2sh c2tmac: CPPFLAGS= ${CPPFLAGS_FOR_BUILD} -I./libau -I${LINUX_HEADER_DIR}/include
  10. +
  11. CFLAGS += -I./libau
  12. CFLAGS += -O -Wall
  13. @@ -28,13 +33,10 @@ LibUtilObj = proc_mnt.o br.o plink.o mta
  14. LibUtilHdr = au_util.h
  15. export
  16. -all: ver_test ${Man} ${Bin} ${Etc}
  17. +all: ${Man} ${Bin} ${Etc}
  18. ${MAKE} -C libau $@
  19. ln -sf ./libau/libau*.so .
  20. -ver_test: ver
  21. - ./ver
  22. -
  23. ${Bin}: LDFLAGS += -static -s
  24. ${Bin}: LDLIBS = -L. -lautil
  25. ${BinObj}: %.o: %.c ${LibUtilHdr} ${LibUtil}
  26. @@ -63,7 +65,7 @@ aufs.5: aufs.in.5 c2tmac
  27. }' aufs.in.5 >> $@
  28. chmod a-w $@
  29. -.INTERMEDIATE: c2sh c2tmac ver
  30. +.INTERMEDIATE: c2sh c2tmac
  31. Install = install -o root -g root -p
  32. install_sbin: File = mount.aufs umount.aufs auplink
  33. @@ -77,7 +79,7 @@ install_etc: File = etc_default_aufs
  34. install_etc: Tgt = ${DESTDIR}/etc/default/aufs
  35. install_etc: ${File}
  36. install -d $(dir ${Tgt})
  37. - ${Install} -m 644 -T ${File} ${Tgt}
  38. + ${Install} -m 644 ${File} ${Tgt}
  39. install_man: File = aufs.5
  40. install_man: Tgt = ${DESTDIR}/usr/share/man/man5
  41. install_man: ${File}