* NightStrike wrote on Tue, Oct 16, 2007 at 10:42:55PM CEST: > I am trying to build a Makefile.am file "correctly". This is what I > have so far: > > http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/experimental/buildsystem/Makefile.am?revision=137&view=markup > > Some issues that I've noted include installing all libraries as > executables instead of 644 (due to using _SCRIPTS for more than its > intended purpose) and the install target runs ranlib again for some > reason. Does anyone have any suggestions on how to make this a > "better" Makefile.am?
| # These targets require special handling that automake can't | # yet support (or that I don't know how to do properly) | crtdir=$(prefix)/$(target)/lib | crt_SCRIPTS = \ | crt1.o crt2. There is nothing inherently wrong with defining ones own directories. You can even use crt_DATA here, to have mode 644. Note that shared libraries should in general be executable though. Cheers, Ralf