Two questions.
One is the src/build-mingw32ce-dlls.sh script which creates a couple of
DLLs in the mingw32ce target.
We don't have this in our binary distributions yet.
Question #1, should I add this to the release script before creating the
next release ?
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 ?
Thanks,
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
TARGET= arm-wince-mingw32ce
# TARGET= arm-wince-cegcc
DLLVERSION= cegcc-0.1
CC= ${TARGET}-gcc ${CFLAGS} ${DEFINES} ${INCLUDES}
CCC= ${TARGET}-g++ ${CFLAGS} ${DEFINES} ${INCLUDES}
AR= ${TARGET}-ar
RANLIB= ${TARGET}-ranlib
DLLTOOL= ${TARGET}-dlltool
DLL-LIBS= -lcommctrl
DEFINES= -D_WIN32_WCE=0x0400 -D_WIN32_IE=0x0400
INCLUDES= -I.
CFLAGS= -g --shared
#
# Leave the all target here as the first target.
#
all::
CPPSRC= CObject.cpp CWinApp.cpp CFrameWnd.cpp CMenu.cpp CWnd.cpp CWinThread.cpp \
CButton.cpp CCmdTarget.cpp CDialog.cpp CListBox.cpp CDataExchange.cpp \
CString.cpp CRect.cpp
HSRC= afx.h afxwin.h afxcmn.h afxdtctl.h afxext.h afxsock.h afxctl.h
DEFSRC= libafx.def
.SUFFIXES: .cpp .h .o .dll .exe
.cpp.o:
${CCC} -c $*.cpp
clean::
-rm -f ${CPPO}
-rm -f *~
-rm -f libafx.dll
-rm -f *.exe
-rm -f libafx.a
CPPO= ${CPPSRC:.cpp=.o}
${CPPO}: afx.h afxwin.h
#
# My personal testing stuff
#
backup:
D=`date +%Y%m%d.%H%M%S`; mkdir old/$$D; cp ${CPPSRC} ${HSRC} Makefile old/$$D
cleanlog:
prm ":/storage card/devel/log.txt"
getlog:
pcp ":/storage card/devel/log.txt" log.txt ; cat log.txt
copy:
rm -f "/mnt/SD CARD/mfc/mine"/*
cp Makefile ${CPPSRC} ${HSRC} /mnt/SD\ CARD/mfc/mine/
#
# Stuff to create the DLL
#
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} $@
clean::
-rm -f libafx-*.dll libafx.dll.a libafx.a libafx.def
-------------------------------------------------------------------------
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