X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=haskell%2FMakefile.am;h=5c1ff9878f5801b7552ff0c24e0b817eb3a89030;hp=d8a06f3ba32fcb71cd5fd9c4163d67864a0908a3;hb=HEAD;hpb=f7d18c84dde596699ffc5100fec2cf7b0d582450 diff --git a/haskell/Makefile.am b/haskell/Makefile.am index d8a06f3..5c1ff98 100644 --- a/haskell/Makefile.am +++ b/haskell/Makefile.am @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. include $(top_srcdir)/subdir-rules.mk @@ -37,23 +37,23 @@ TESTS = run-bindtests Guestfs005Load Guestfs010Basic check_DATA = Bindtests -GHCFLAGS = -I$(top_builddir)/src -L$(top_builddir)/src/.libs +GHCFLAGS = -I$(top_builddir)/src -L$(top_builddir)/src/.libs -i$(srcdir) all_targets = Bindtests Guestfs005Load Guestfs010Basic $(all_targets): $(top_builddir)/src/libguestfs.la all: $(all_targets) -Guestfs.o: Guestfs.hs - $(GHC) $(GHCFLAGS) -c $< +Guestfs.o: $(srcdir)/Guestfs.hs + $(GHC) $(GHCFLAGS) -c $< -o $@ -Bindtests: Bindtests.hs Guestfs.o +Bindtests: $(srcdir)/Bindtests.hs Guestfs.o $(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs -Guestfs005Load: Guestfs005Load.hs Guestfs.o +Guestfs005Load: $(srcdir)/Guestfs005Load.hs Guestfs.o $(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs -Guestfs010Basic: Guestfs010Basic.hs Guestfs.o +Guestfs010Basic: $(srcdir)/Guestfs010Basic.hs Guestfs.o $(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs CLEANFILES = $(all_targets) *~ *.hi *.o