]> git.draconx.ca Git - cdecl99.git/commitdiff
Avoid per-target CFLAGS (for now).
authorNick Bowler <nbowler@draconx.ca>
Sat, 25 Feb 2012 02:28:51 +0000 (21:28 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 1 Mar 2012 01:16:58 +0000 (20:16 -0500)
There's no real reason to use per-target CFLAGS to specify $(GSL_CFLAGS)
only on libtest, as the flags will simply be harmless (and useless) on
other targets.  Set them globally and completely avoid the mess
resulting from the use of per-target flags.

Makefile.am

index 535eff8630ef1f5ecc4c8a12313b1a3bb0a686d4..5f5743df256f15709fa08253363b95293c616009 100644 (file)
@@ -17,6 +17,8 @@ AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src \
        -DBISON_LOCALEDIR=\"$(BISON_LOCALEDIR)\" \
        -DLOCALEDIR=\"$(localedir)\"
 
+AM_CFLAGS = $(GSL_CFLAGS)
+
 MAINTAINERCLEANFILES = src/scan.c src/scan.h src/scan.stamp \
        src/parse.c src/parse.h src/parse.stamp
 
@@ -50,7 +52,6 @@ bin_PROGRAMS = cdecl99
 
 check_PROGRAMS =
 EXTRA_LTLIBRARIES = libtest.la
-libtest_la_CFLAGS = $(AM_CFLAGS) $(GSL_CFLAGS)
 libtest_la_LIBADD = $(GSL_LIBS)
 libtest_la_SOURCES = test/testlib.c
 
@@ -73,10 +74,7 @@ src/typemap.lo: src/validtypes.h
 src/error.lo: src/errtab.h
 src/normalize.lo: src/ordspecs.h
 src/output.lo: src/namespecs.h
-
-# This is gross.
-declgen_o = test/libtest_la-declgen.lo
-$(declgen_o): test/typegen.h
+test/declgen.lo: test/typegen.h
 
 src/validtypes.h: $(srcdir)/src/types.lst $(srcdir)/src/validtypes.sed
        $(AM_V_GEN)sed -f $(srcdir)/src/validtypes.sed \