[speech_synthesis] rewrite makefile
This fixes a bunch of issues:
- drop hardcoded x86_generic -I/-L paths for all targets
- use standard flag namings (CXXFLAGS/CPPFLAGS/LDLIBS)
- split compiler flags into CXXFLAGS and preprocessor flags into CPPFLAGS
- execute pkg-config twice per *make*, not per *file compile*
- use pkg-config for all libraries were possible (alsa/libchrome)
- fix link order -- we need flags, then objects, then libraries
- fix build dependencies -- make sure dirs are created before they are
needed, and make them an order-only depend; this should allow us to
build in parallel again rather than forcing -j1
- drop -fPIC hardcode -- we're creating an executable, not a library
- drop the -I.. and -Iobjs flags -- there are no headers in either place
BUG=None
TEST=`emerge-x86-alex speech_synthesis` still works
Change-Id: I46f076927f1d0ce0dfb9f261310f32b4461cd22a
Reviewed-on: https://gerrit.chromium.org/gerrit/15987
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed