Here's a question for the make gurus among us. I want to have Kannel compile by default on MacOS X. The needed changes are minimal but on the other hand a bit tricky to automate.
Here's what I do: 1st: replace ar rc $libname $files with libtool -static -o $libname $files The more trickier thing are the following lines: wmlscriptsrcs = $(wildcard wmlscript/*.[cy]) wmlscriptobjs = $(wmlscriptsrcs:.c=.o) $(wmlscriptsrcs:.y=.o) The problem here is that libtool then tries to add non existing files or files with no binary content to the library and fails. As we dont need those files in the archive I've tried to use: wmlscriptsrcs = $(wildcard wmlscript/*.[cy]) wmlscriptobjs = $(wildcard wmlscript/*.o) instead. This fails with libtool: file: wmlscript/wmlsc.o defines symbol: _main libtool: file: wmlscript/wmlsdasm.o defines symbol: _main this also occurs with libgw.a because main is defined twice (once in bearerbox and one in smsbox). Basically we should not include the *.o files which contain the main routines into the libgw.a (by the way, do we need libgw.a at all?). The workaround is to do wmlscriptobjs = all the .o files. Does anyone have a nicer macro to do this? -- Andreas Fink Global Networks Inc. -------------------------------------------------------------------------- Tel: +41-61-6932730 Fax: +41-61-6932729 Mobile: +41-79-2457333 Address:Global Networks Inc, Schwarzwaldallee 16, 4058 Basel, Switzerland Web: http://www.global-networks.ch/ e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------- Member of the GSM Association