diff options
author | Bruno Haible <bruno@clisp.org> | 2003-03-29 16:20:30 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:10:18 +0200 |
commit | 55330d5547a8ec7848309fc14c6d2ddaf5f78dca (patch) | |
tree | 81e1b017d15944d39daa73b2d0795157b8df6ca1 /gettext-runtime/lib | |
parent | d3dadca327ce84419829350cb1385b274d60cfe1 (diff) | |
download | external_gettext-55330d5547a8ec7848309fc14c6d2ddaf5f78dca.zip external_gettext-55330d5547a8ec7848309fc14c6d2ddaf5f78dca.tar.gz external_gettext-55330d5547a8ec7848309fc14c6d2ddaf5f78dca.tar.bz2 |
Native Woe32/MSVC support.
Diffstat (limited to 'gettext-runtime/lib')
-rw-r--r-- | gettext-runtime/lib/ChangeLog | 6 | ||||
-rw-r--r-- | gettext-runtime/lib/Makefile.am | 5 | ||||
-rw-r--r-- | gettext-runtime/lib/Makefile.msvc | 98 |
3 files changed, 109 insertions, 0 deletions
diff --git a/gettext-runtime/lib/ChangeLog b/gettext-runtime/lib/ChangeLog index 621a763..16ea1d1 100644 --- a/gettext-runtime/lib/ChangeLog +++ b/gettext-runtime/lib/ChangeLog @@ -1,3 +1,9 @@ +2003-03-17 Bruno Haible <bruno@clisp.org> + + Native Woe32/MSVC support. + * Makefile.msvc: New file. + * Makefile.am (EXTRA_DIST): Add it. + 2003-03-05 Bruno Haible <bruno@clisp.org> * Makefile.am (stdbool.h, alloca.h): All objects depend on them. diff --git a/gettext-runtime/lib/Makefile.am b/gettext-runtime/lib/Makefile.am index a7867cf..320315c 100644 --- a/gettext-runtime/lib/Makefile.am +++ b/gettext-runtime/lib/Makefile.am @@ -82,3 +82,8 @@ alloca.h: ../../gettext-tools/lib/alloca_.h cp $(srcdir)/../../gettext-tools/lib/alloca_.h alloca.h MOSTLYCLEANFILES += alloca.h # <<< gnulib module alloca. + + +# Woe32 support. + +EXTRA_DIST += Makefile.msvc diff --git a/gettext-runtime/lib/Makefile.msvc b/gettext-runtime/lib/Makefile.msvc new file mode 100644 index 0000000..5ed6da5 --- /dev/null +++ b/gettext-runtime/lib/Makefile.msvc @@ -0,0 +1,98 @@ +# -*- Makefile -*- for gettext-runtime/lib + +#### Start of system configuration section. #### + +# Flags that can be set on the nmake command line: +# MFLAGS={-ML|-MT|-MD} for defining the compilation model +# MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib +# MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib +# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib +# DEBUG=1 for compiling with debugging information +!if !defined(DEBUG) +DEBUG=0 +!endif +!if !defined(MFLAGS) +MFLAGS= +!endif + +# Programs used by "make": + +CC = cl + +# Set to -W3 if you want to see maximum amount of warnings, including stupid +# ones. Set to -W1 to avoid warnings about signed/unsigned combinations. +WARN_CFLAGS = -W1 + +!if $(DEBUG) +OPTIMFLAGS = -Od -Z7 +!else +# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5. +OPTIMFLAGS = -D_NDEBUG -O1 +!endif + +CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) + +INCLUDES = + +AR = lib +AR_FLAGS = /out: + +LN = copy +RM = -del + +#### End of system configuration section. #### + +SHELL = /bin/sh + +OBJECTS = basename.obj error.obj getopt.obj getopt1.obj progname.obj relocatable.obj xmalloc.obj xstrdup.obj + +all : grt.lib + +basename.obj : ..\..\gettext-tools\lib\basename.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\basename.c + +error.obj : ..\..\gettext-tools\lib\error.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\error.c + +getopt.obj : ..\..\gettext-tools\lib\getopt.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\getopt.c + +getopt1.obj : ..\..\gettext-tools\lib\getopt1.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\getopt1.c + +progname.obj : ..\..\gettext-tools\lib\progname.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\progname.c + +relocatable.obj : ..\..\gettext-tools\lib\relocatable.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\relocatable.c + +xmalloc.obj : ..\..\gettext-tools\lib\xmalloc.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\xmalloc.c + +xstrdup.obj : ..\..\gettext-tools\lib\xstrdup.c + $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\xstrdup.c + +grt.lib : $(OBJECTS) + -$(RM) grt.lib + $(AR) $(AR_FLAGS)grt.lib $(OBJECTS) + +install : all + +installdirs : + +uninstall : + +check : + +mostlyclean : clean + +clean : force + $(RM) *.obj + $(RM) *.lib + $(RM) core + +distclean : clean + +maintainer-clean : distclean + +force : |