1 this is kind of hacky, but automake doesn't make this easy
2 for us atm, so hack away :(
4 (recent autotools will always add $(CFLAGS)/etc... to the compile)
6 --- a/tools/locktest/Makefile.am
7 +++ b/tools/locktest/Makefile.am
9 ## Process this file with automake to produce Makefile.in
12 -LIBTOOL = @LIBTOOL@ --tag=CC
13 +CFLAGS=$(CFLAGS_FOR_BUILD)
14 +CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
15 +LDFLAGS=$(LDFLAGS_FOR_BUILD)
17 noinst_PROGRAMS = testlk
18 testlk_SOURCES = testlk.c
19 -testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
20 -testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
21 -testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
23 MAINTAINERCLEANFILES = Makefile.in
24 --- a/tools/rpcgen/Makefile.am
25 +++ b/tools/rpcgen/Makefile.am
27 ## Process this file with automake to produce Makefile.in
30 -LIBTOOL = @LIBTOOL@ --tag=CC
31 +CFLAGS=$(CFLAGS_FOR_BUILD)
32 +CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
33 +LDFLAGS=$(LDFLAGS_FOR_BUILD)
35 noinst_PROGRAMS = rpcgen
36 rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \
38 rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
41 -rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
42 -rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
43 -rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
44 -rpcgen_LDADD=$(LIBTIRPC)
46 MAINTAINERCLEANFILES = Makefile.in
48 EXTRA_DIST = rpcgen.new.1