Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] GNUmakefile for udfclient-0.7.5

13 views
Skip to first unread message

Ivan Shmakov

unread,
Apr 28, 2013, 1:47:00 PM4/28/13
to
Archive-name: udfclient-0.7.5-2013-is
Submitted-by: onei...@gmail.com
Last-modified: 2013-04-28 +00:00
Copyright-Notice: Released under the CC0 Public Domain Dedication;
(but are probably too trivial to be copyrightable, anyway.)

[Followup-To: set to news:alt.sources.d, as per the
news:alt.sources charter, and news:comp.publish.cdrom.software.]


Summary

The patch suggested makes it possible to compile udfclient [1]
(as of 0.7.5) with GNU Make [2].

[1] http://13thmonkey.org/udfclient/
[2] http://www.gnu.org/software/make/


Usage

Use the first diff below to produce GNUmakefile.in out of the
Makefile.in shipped, and apply the second one to configure.ac so
to add the now necessary AC_CONFIG_FILES macro invocation there.

Remember to call $ autoreconf in order to re-build the configure
script itself!

It should now be possible to configure the resulting code and
compile it with GNU Make.


The patch

--- Makefile.in 2011-01-25 16:08:07.000000000 +0000
+++ GNUmakefile.in 2013-04-28 17:41:21.000000000 +0000
@@ -4,10 +4,11 @@
# Copyright 2003,2004,2005 Reinoud P.Zandijk
#
#
-# File $Id: Makefile.in,v 1.20 2009/07/24 16:51:49 reinoud Exp $ $Name: $
+# Turned into a GNU Make compatible GNUmakefile by Ivan Shmakov, 2013.
#

srcdir= @srcdir@
+VPATH= $(srcdir)

prefix= @prefix@
exec_prefix= @exec_prefix@
@@ -77,11 +78,11 @@
libudf.a: $(LIB)
ar -rsc libudf.a $(LIB)

-$(SCSI_APPS): $(.TARGET).o libuscsi.a
- $(LD) -o $(.TARGET) $(LDFLAGS) $(.TARGET).o libuscsi.a $(POSTOBJ)
+$(SCSI_APPS): %: %.o libuscsi.a
+$(APPS): %: %.o libuscsi.a libudf.a

-$(APPS): $(.TARGET).o libuscsi.a libudf.a
- $(LD) -o $(.TARGET) $(LDFLAGS) $(.TARGET).o libudf.a libuscsi.a $(POSTOBJ)
+$(SCSI_APPS) $(APPS):
+ $(LD) -o $@ $(LDFLAGS) $^ $(POSTOBJ)


# DO NOT DELETE
--- configure.ac.~1~ 2011-01-25 16:07:30.000000000 +0000
+++ configure.ac 2013-04-28 17:28:02.000000000 +0000
@@ -175,9 +175,11 @@
# Generate output files
#
AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([GNUmakefile])
# AC_CONFIG_FILES([config.h])
AC_OUTPUT

echo ""
echo "Compile the project with Posix compliant make; possibly installed as bmake or pmake"
+echo 'Alternatively, use GNU Make, http://www.gnu.org/software/make/'


--
FSF associate member #7257
0 new messages