Mapping _mkdir, _fdopen, _open, to existing mozce_ apis. Adding SmartPhone tools to build process. NPODB
This commit is contained in:
Родитель
1a36976c90
Коммит
f4664bd9ee
|
@ -121,6 +121,10 @@ typedef void (*_sigsig)(int inSignal);
|
|||
|
||||
#define _O_TEMPORARY 0x0040 // temporary file bit
|
||||
|
||||
#define _O_CREAT O_CREAT
|
||||
#define _O_TRUNC O_TRUNC
|
||||
#define _O_WRONLY O_WRONLY
|
||||
|
||||
// From stdlib.h
|
||||
#define _MAX_DRIVE MAX_PATH
|
||||
#define _MAX_DIR MAX_PATH
|
||||
|
|
|
@ -68,6 +68,11 @@
|
|||
#endif
|
||||
#define mkdir mozce_mkdir
|
||||
|
||||
#ifdef _mkdir
|
||||
#undef _mkdir
|
||||
#endif
|
||||
#define _mkdir mozce_mkdir
|
||||
|
||||
#ifdef rmdir
|
||||
#undef rmdir
|
||||
#endif
|
||||
|
@ -213,6 +218,11 @@
|
|||
#endif
|
||||
#define rewind mozce_rewind
|
||||
|
||||
#ifdef fdopen
|
||||
#undef fdopen
|
||||
#endif
|
||||
#define fdopen mozce_fdopen
|
||||
|
||||
#ifdef _fdopen
|
||||
#undef _fdopen
|
||||
#endif
|
||||
|
@ -249,6 +259,11 @@
|
|||
#endif
|
||||
#define open mozce_open
|
||||
|
||||
#ifdef _open
|
||||
#undef _open
|
||||
#endif
|
||||
#define _open mozce_open
|
||||
|
||||
#ifdef close
|
||||
#undef close
|
||||
#endif
|
||||
|
|
|
@ -19,10 +19,21 @@ all:
|
|||
cl ppc2003em/arm-wince-link.c
|
||||
mv arm-wince-link.exe ppc2003em
|
||||
rm -f *.obj
|
||||
cl sp2003arm/arm-wince-as.c
|
||||
mv arm-wince-as.exe sp2003arm
|
||||
cl sp2003arm/arm-wince-gcc.c
|
||||
mv arm-wince-gcc.exe sp2003arm
|
||||
cl sp2003arm/arm-wince-lib.c
|
||||
mv arm-wince-lib.exe sp2003arm
|
||||
cl sp2003arm/arm-wince-link.c
|
||||
mv arm-wince-link.exe sp2003arm
|
||||
rm -f *.obj
|
||||
|
||||
clobber:
|
||||
rm -f ppc2003em/*.exe
|
||||
rm -f ppc2003em/*.obj
|
||||
rm -f ppc2003arm/*.exe
|
||||
rm -f ppc2003arm/*.obj
|
||||
rm -f sp2003arm/*.exe
|
||||
rm -f sp2003arm/*.obj
|
||||
rm -f *.obj
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#define WCE_INC "c:/Program Files/Windows CE Tools/wce420/SMARTPHONE 2003/Include/Armv4/"
|
||||
#define WCE_LIB "c:/Program Files/Windows CE Tools/wce420/SMARTPHONE 2003/Lib/Armv4/"
|
||||
|
||||
#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/ARMV4Rel/"
|
||||
#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/ARMV4SmartPhone/"
|
||||
#define SHUNT_INC TOPSRCDIR "/build/wince/shunt/include/"
|
||||
|
||||
#define ASM_PATH WCE_BIN "armasm.exe"
|
||||
|
|
Загрузка…
Ссылка в новой задаче