Skip to content

Commit 6d4a94d

Browse files
committed
More fixes for Windows build.
1 parent 9042f1c commit 6d4a94d

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

ChangeLog

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
2003-05-08 Bruno Haible <bruno@clisp.org>
2+
3+
* Makefile.msvc (IIPREFIX): New variable.
4+
* srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
5+
* src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
6+
IIincludedir): New variables.
7+
(INCLUDES): Add -I..\windows.
8+
(iconv.exe): Define INSTALLPREFIX and INSTALLDIR.
9+
Patches by Perry Rapp.
10+
11+
2003-05-07 Bruno Haible <bruno@clisp.org>
12+
13+
* README.woe32: Fix instructions for step 1.
14+
* srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
15+
(strtoul.obj): Remove rule.
16+
Reported by Perry Rapp.
17+
118
2003-05-07 Bruno Haible <bruno@clisp.org>
219

320
* Makefile.vms: New file.

Makefile.msvc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
1212
# DEBUG=1 for compiling with debugging information
1313
# NO_NLS=1 do not use Native Language Support
14-
# PREFIX=Some\Directory Base directory for installation
14+
# PREFIX=Some\Directory Base directory for installation
15+
# IIPREFIX=Some\\Directory Same thing with doubled backslashes
1516
# Note that nmake command line flags are automatically passed to subdirectory
1617
# Makefiles. Therefore we don't need to pass them explicitly to subdirectory
1718
# Makefiles, but the subdirectory Makefiles need to have the same defaults.
@@ -34,6 +35,9 @@ NO_NLS=0
3435
!if !defined(PREFIX)
3536
PREFIX = c:\usr
3637
!endif
38+
!if !defined(IIPREFIX)
39+
IIPREFIX = c:\\usr
40+
!endif
3741

3842
# Directories used by "make install":
3943
prefix = $(PREFIX)

src/Makefile.msvc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
1212
# DEBUG=1 for compiling with debugging information
1313
# NO_NLS=1 do not use Native Language Support
14-
# PREFIX=Some\Directory Base directory for installation
14+
# PREFIX=Some\Directory Base directory for installation
15+
# IIPREFIX=Some\\Directory Same thing with doubled backslashes
1516
!if !defined(DLL)
1617
DLL=0
1718
!endif
@@ -31,6 +32,9 @@ NO_NLS=0
3132
!if !defined(PREFIX)
3233
PREFIX = c:\usr
3334
!endif
35+
!if !defined(IIPREFIX)
36+
IIPREFIX = c:\\usr
37+
!endif
3438

3539
!if $(DEBUG)
3640
OPTIMFLAGS = -Od -Z7
@@ -61,11 +65,15 @@ prefix = $(PREFIX)
6165
exec_prefix = $(prefix)
6266
bindir = $(exec_prefix)\bin
6367
includedir = $(prefix)\include
68+
IIprefix = $(IIPREFIX)
69+
IIexec_prefix = $(IIprefix)
70+
IIbindir = $(IIexec_prefix)\\bin
71+
IIincludedir = $(IIprefix)\\include
6472

6573
# Programs used by "make":
6674
CC = cl
6775
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) $(NLSFLAGS)
68-
INCLUDES = -I. -I.. -I..\include -I..\srclib $(INCINTL)
76+
INCLUDES = -I. -I.. -I..\include -I..\srclib -I..\windows $(INCINTL)
6977
RM = -del
7078

7179
# Programs used by "make install":
@@ -80,7 +88,7 @@ SHELL = /bin/sh
8088
all : iconv.exe
8189

8290
iconv.exe : $(srcdir)/iconv.c ../lib/iconv.lib
83-
$(CC) $(INCLUDES) -I..\lib $(CFLAGS) $(srcdir)/iconv.c $(LIBINTL) ../lib/iconv.lib -Feiconv.exe
91+
$(CC) $(INCLUDES) -I..\lib $(CFLAGS) -DINSTALLPREFIX=\"$(IIprefix)\" -DINSTALLDIR=\"$(IIbindir)\" $(srcdir)/iconv.c $(LIBINTL) ../lib/iconv.lib -Feiconv.exe
8492
$(RM) iconv.obj
8593
!if $(DLL)
8694
copy ..\lib\iconv.dll iconv.dll

srclib/Makefile.msvc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ LIBINTL = $(libdir)\intl.lib
6666

6767
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H $(NLSFLAGS) -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1
6868

69-
INCLUDES = -I. -I.. $(INCINTL)
69+
INCLUDES = -I. -I.. -I..\windows $(INCINTL)
7070

7171
AR = lib
7272
AR_FLAGS = /out:
@@ -86,7 +86,6 @@ SHELL = /bin/sh
8686
OBJECTS = \
8787
error.obj \
8888
progname.obj progreloc.obj \
89-
strtoul.obj \
9089
xmalloc.obj xstrdup.obj \
9190
\
9291
relocatable.obj \
@@ -103,9 +102,6 @@ progname.obj : progname.c
103102
progreloc.obj : progreloc.c
104103
$(CC) $(INCLUDES) $(CFLAGS) -c progreloc.c
105104

106-
strtoul.obj : strtoul.c
107-
$(CC) $(INCLUDES) $(CFLAGS) -c strtoul.c
108-
109105
xmalloc.obj : xmalloc.c
110106
$(CC) $(INCLUDES) $(CFLAGS) -c xmalloc.c
111107

0 commit comments

Comments
 (0)