summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2010-10-29 18:07:14 +0000
committerMarcus Brinkmann <mb@g10code.com>2010-10-29 18:07:14 +0000
commit81d2345c52c74dcd8505bc89dd8bd8512d379d72 (patch)
treeccf630b5f1de3c5caaa4f710617165135ee9ed92 /contrib
parentb691ed70fc409b83c166aca2d717d09696ddfc8c (diff)
downloadlibgpg-error-81d2345c52c74dcd8505bc89dd8bd8512d379d72.tar.gz
* build.mk (ce_defines): Fix line continuation.
(CFLAGS): Add -Igpg-extra for errno.h. * config.h (HAVE_SYS_TYPES_H, HAVE_SYS_STAT_H): Define.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/conf-w32ce-msc/build.mk19
-rwxr-xr-xcontrib/conf-w32ce-msc/config.h4
2 files changed, 13 insertions, 10 deletions
diff --git a/contrib/conf-w32ce-msc/build.mk b/contrib/conf-w32ce-msc/build.mk
index 70fc81b..99a2ee4 100755
--- a/contrib/conf-w32ce-msc/build.mk
+++ b/contrib/conf-w32ce-msc/build.mk
@@ -24,8 +24,8 @@ 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
+ce_defines = -DWINCE -D_WIN32_WCE=0x502 -DUNDER_CE \
+ -DWIN32_PLATFORM_PSPC -D_UNICODE -DUNICODE \
-D_CONSOLE -DARM -D_ARM_
#-D_DEBUG -DDEBUG
@@ -42,9 +42,9 @@ ce_defines = -DWINCE -D_WIN32_WCE=0x502 -DUNDER_CE
# -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.
+ -DHAVE_CONFIG_H -DDLL_EXPORT -I. -Igpg-extra
-LDFLAGS =
+LDFLAGS =
# Standard source files
sources = \
@@ -102,10 +102,13 @@ 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 \
- w32-gettext.obj init.obj strsource.obj strerror.obj \
- code-to-errno.obj code-from-errno.obj \
- gpg-error.def
+ link.exe /DLL /IMPLIB:libgpg-error-0.lib /OUT:libgpg-error-0.dll \
+ /DEF:gpg-error.def /NOLOGO /MANIFEST:NO \
+ /NODEFAULTLIB:"oldnames.lib" /DYNAMICBASE:NO \
+ w32-gettext.obj init.obj strsource.obj strerror.obj \
+ code-to-errno.obj code-from-errno.obj \
+ coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib \
+ commctrl.lib /subsystem:windowsce,5.02
# Note that install needs to be run on the POSIX platform and the all
# is only to make sure we build everything; it won't compile anything
diff --git a/contrib/conf-w32ce-msc/config.h b/contrib/conf-w32ce-msc/config.h
index bf24d98..1d8132c 100755
--- a/contrib/conf-w32ce-msc/config.h
+++ b/contrib/conf-w32ce-msc/config.h
@@ -94,10 +94,10 @@
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
+#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
+#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1