On Sat, 2007-12-01 at 19:39 +0000, Pedro Alves wrote: > Danny Backx wrote: > > Question #2. I've created a Makefile for my "poor man's MFC". In it, > > I've put some logic that I extracted from the script mentioned above. > > I've attached the Makefile. It appears to work for me. Is it correct ? > > What is it supposed to do?
Apologies, I was very unclear. The goal was to create a DLL. The example in test/shared does this for a simple case. There's also this whole dlltool business, which requires a .def file. That file is not easy to create when using C++ though. So, the basic question is how to create a DLL. From tools/mfc/Makefile : all:: libafx-${DLLVERSION}.dll libafx-${DLLVERSION}.dll: ${CPPO} libafx.def ${CCC} --shared -o $@ \ -Wl,--out-implib,libafx.dll.a libafx.def \ ${CPPO} ${DLL-LIBS} libafx.def: libafx.a ${DLLTOOL} --output-def libafx.def --export-all libafx.a libafx.a: ${CPPO} ${AR} crv $@ $? ${RANLIB} $@ Is this then the right way, or are things simpler than this ? Danny
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel