From: Nick Bowler Date: Tue, 21 Jun 2011 22:28:32 +0000 (-0400) Subject: Fix Makefile dependencies. X-Git-Tag: v1~178 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/f84d131e19d8d858535ef3dff4d2a622de5d31a7?ds=sidebyside Fix Makefile dependencies. Dependencies of foo.$(OBJEXT) are not honoured when building a libtool library; instead we need to use foo.lo. --- diff --git a/Makefile.am b/Makefile.am index 6ea246a..78688b5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,9 +16,9 @@ bin_PROGRAMS = cdecl99 cdecl99_SOURCES = src/cdecl99.c cdecl99_LDADD = libcdecl.la -src/parse.$(OBJEXT): src/scan.h -src/scan.$(OBJEXT): src/parse.h -src/libcdecl.$(OBJEXT): src/scan.h src/parse.h +src/parse.lo: src/scan.h +src/scan.lo: src/parse.h +src/libcdecl.lo: src/scan.h src/parse.h # These are required to prevent the builtin lex/yacc rules from # superseding ours...