compile .c files as C++?

2018-01-25 Thread Jay K
I have a bunch of C. I want to move to C++. I'm using automake. I don't want to rename any files. Fortunately I already build libraries and then main separately. That might help, or not matter. So I want to say: libfoo_la_CFLAGS += -xc++ and possibly main_CFLAGS += -xc Or something higher level

recursive automake w/o recursive autoconf?

2016-06-06 Thread Jay K
I have a system with a bunch of libraries and programs. I want one little autoconf at the top:  E.g. how to compile C.    I would prefer to compose via SUBDIRS= instead of include,  as it feels higher level, but not a big deal.    I would prefer non recursive make for performance and parallelis

RE: recursive automake w/o recursive autoconf?

2016-06-06 Thread Jay K
Ok, I found the subtlety in the documentation that automake in effect uses autoconf's directory or output list. So if I give up non-recursive make, and if I list directories twice, then it works nicely: i.e. non-recursive make, less modular automake: http://github.com/jaykrell/j/tree/master/aut