diff options
author | Werner Koch <[email protected]> | 2010-10-28 18:40:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-10-28 18:40:54 +0000 |
commit | b691ed70fc409b83c166aca2d717d09696ddfc8c (patch) | |
tree | 8f0e82a5aff83c14215c73ee42089fd371d3da39 | |
parent | Add some code to allow building with MSC. (diff) | |
download | libgpg-error-b691ed70fc409b83c166aca2d717d09696ddfc8c.tar.gz libgpg-error-b691ed70fc409b83c166aca2d717d09696ddfc8c.zip |
Add some comments
-rwxr-xr-x | contrib/conf-w32ce-msc/build.mk | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/contrib/conf-w32ce-msc/build.mk b/contrib/conf-w32ce-msc/build.mk index 745a129..70fc81b 100755 --- a/contrib/conf-w32ce-msc/build.mk +++ b/contrib/conf-w32ce-msc/build.mk @@ -24,8 +24,26 @@ help: @echo " nmake -f build.mk all" @echo "on the Windows system" +ce_defines = -DWINCE -D_WIN32_WCE=0x502 -DUNDER_CE + -DWIN32_PLATFORM_PSPC -D_UNICODE -DUNICODE + -D_CONSOLE -DARM -D_ARM_ +#-D_DEBUG -DDEBUG + +# Some options of Visual-C: +# -W3 Set warning level 3 +# -Zi Generate debug info +# -Od Disable optimization +# -Gm Enable minimal rebuild (for C++) +# -EHsc Exception handling model sc +# -MTd Create a debug multithreaded executable +# -fp: Floating point behaviour +# -GR- Disable runtime type information +# -Os Favor small code +# -LD Create a DLL +# -Fe Set executable output name (may be only a directory) +CFLAGS = -nologo -W3 -fp:fast -Os $(ce_defines) \ + -DHAVE_CONFIG_H -DDLL_EXPORT -I. -CFLAGS = -DHAVE_CONFIG_H -DDLL_EXPORT -I. LDFLAGS = # Standard source files @@ -55,7 +73,8 @@ built_sources = \ gpg-error.h \ mkerrcodes.h \ mkw32errmap.map.c \ - gpg-error.def + gpg-error.def \ + gpg-extra/errno.h copy-static-source: @if [ ! -f ./w32-gettext.c ]; then \ @@ -83,7 +102,7 @@ all: $(sources) $(conf_sources) $(built_sources) $(CC) $(CFLAGS) -c strerror.c $(CC) $(CFLAGS) -c code-to-errno.c $(CC) $(CFLAGS) -c code-from-errno.c - $(CC) $(LDFLAGS) /LD -Felibgpg-error-0.dll \ + $(CC) $(LDFLAGS) -LD -Felibgpg-error-0.dll \ w32-gettext.obj init.obj strsource.obj strerror.obj \ code-to-errno.obj code-from-errno.obj \ gpg-error.def |