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)
1617DLL =0
1718!endif
@@ -31,6 +32,9 @@ NO_NLS=0
3132!if !defined(PREFIX)
3233PREFIX = c:\usr
3334!endif
35+ !if !defined(IIPREFIX)
36+ IIPREFIX = c:\\usr
37+ !endif
3438
3539!if $(DEBUG)
3640OPTIMFLAGS = -Od -Z7
@@ -61,11 +65,15 @@ prefix = $(PREFIX)
6165exec_prefix = $(prefix )
6266bindir = $(exec_prefix ) \bin
6367includedir = $(prefix ) \include
68+ IIprefix = $(IIPREFIX )
69+ IIexec_prefix = $(IIprefix )
70+ IIbindir = $(IIexec_prefix ) \\bin
71+ IIincludedir = $(IIprefix ) \\include
6472
6573# Programs used by "make":
6674CC = cl
6775CFLAGS = $(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 )
6977RM = -del
7078
7179# Programs used by "make install":
@@ -80,7 +88,7 @@ SHELL = /bin/sh
8088all : iconv.exe
8189
8290iconv.exe : $(srcdir ) /iconv.c ../lib/iconv.lib
83- $(CC ) $(INCLUDES ) -I..\l ib $(CFLAGS ) $(srcdir ) /iconv.c $(LIBINTL ) ../lib/iconv.lib -Feiconv.exe
91+ $(CC ) $(INCLUDES ) -I..\l ib $(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
0 commit comments