-## Process this file with automake to produce Makefile.in
-
-AUTOMAKE_OPTIONS = foreign
-
-INCLUDES = -I$(top_srcdir)/include/share
-
-noinst_LIBRARIES = libutf8.a libgetopt.a
-
-libutf8_a_SOURCES = charset.c charset.h iconvert.c utf8.c
-
-libgetopt_a_SOURCES = getopt.c getopt1.c
+# FLAC - Free Lossless Audio Codec
+# Copyright (C) 2002 Josh Coalson
+#
+# This program is part of FLAC; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+SUBDIRS = getopt utf8
EXTRA_DIST = \
- Makefile.lite \
Makefile.vc \
- README \
- charmaps.h \
- makemap.c \
- charset_test.c \
- charsetmap.h \
- getopt.dsp \
- utf8.dsp
-
-debug:
- $(MAKE) all CFLAGS="@DEBUG@"
-
-profile:
- $(MAKE) all CFLAGS="@PROFILE@"
+ README
+++ /dev/null
-#
-# GNU makefile
-#
-
-topdir = ../..
-
-LIB_NAME = libgetopt
-INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
-
-OBJS = \
- getopt.o \
- getopt1.o
-
-include $(topdir)/build/lib.mk
-
-# Our lame Makefile.lite system has no provision for building multiple libs in
-# a directory, so we hack it:
-UTF8_LIB_NAME = libutf8
-UTF8_OBJS = charset.o iconvert.o utf8.o
-UTF8_STATIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(STATIC_LIB_SUFFIX)
-UTF8_DYNAMIC_LIB = $(LIBPATH)/$(UTF8_LIB_NAME).$(DYNAMIC_LIB_SUFFIX)
-
-debug: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
-
-release: $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
-
-clean: utf8_clean
-
-utf8_clean:
- rm -f $(UTF8_OBJS) $(UTF8_STATIC_LIB) $(UTF8_DYNAMIC_LIB)
-
-$(UTF8_STATIC_LIB): $(UTF8_OBJS)
- $(LINK) $@ $(UTF8_OBJS) && ranlib $@
-
-$(UTF8_DYNAMIC_LIB): $(UTF8_OBJS)
-ifeq ($(DARWIN_BUILD),yes)
- $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS) -lc
-else
- $(LINKD) -o $@ $(UTF8_OBJS) $(LFLAGS) $(LIBS)
-endif
-
-# DO NOT DELETE THIS LINE -- make depend depends on it.
!include <win32.mak>\r
\r
-!IFDEF DEBUG\r
-.c.obj:\r
- $(cc) /D "_LIB" -DFLAC__NO_DLL /GX $(cdebug) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX /Od /D "_DEBUG" $<\r
-!else\r
-.c.obj:\r
- $(cc) /D "_LIB" -DFLAC__NO_DLL /O2 $(crelease) $(cflags) /I "..\..\include" /I "..\..\include\share" -DSTRICT -YX -DNODEBUG $<\r
-!endif\r
+# It's less hassle to spell it all out that to figure out how to do it right with nmake:\r
\r
-C_FILES= \\r
- getopt.c \\r
- getopt1.c\r
-\r
-UTF8_C_FILES= \\r
- charset.c \\r
- iconvert.c \\r
- utf8.c\r
-\r
-OBJS= $(C_FILES:.c=.obj)\r
-\r
-UTF8_OBJS= $(UTF8_C_FILES:.c=.obj)\r
-\r
-all: getopt.lib utf8.lib\r
-\r
-getopt.lib: $(OBJS)\r
- link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(OBJS)\r
-\r
-utf8.lib: $(UTF8_OBJS)\r
- link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(UTF8_OBJS)\r
+all:\r
+ cd getopt\r
+ nmake /f Makefile.vc\r
+ cd ..\r
+ cd utf8\r
+ nmake /f Makefile.vc\r
+ cd ..\r
\r
clean:\r
- -del *.obj *.pch\r
- -del ..\..\obj\lib\getopt.lib ..\..\obj\lib\getopt.pdb\r
- -del ..\..\obj\lib\utf8.lib ..\..\obj\lib\utf8.pdb\r
+ cd getopt\r
+ nmake /f Makefile.vc clean\r
+ cd ..\r
+ cd utf8\r
+ nmake /f Makefile.vc clean\r
+ cd ..\r
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+AUTOMAKE_OPTIONS = foreign
+
+INCLUDES = -I$(top_srcdir)/include/share
+
+noinst_LIBRARIES = libgetopt.a
+
+libgetopt_a_SOURCES = getopt.c getopt1.c
+
+EXTRA_DIST = \
+ Makefile.lite \
+ Makefile.vc \
+ getopt.dsp
+
+debug:
+ $(MAKE) all CFLAGS="@DEBUG@"
+
+profile:
+ $(MAKE) all CFLAGS="@PROFILE@"
--- /dev/null
+#
+# GNU makefile
+#
+
+topdir = ../../..
+
+LIB_NAME = libgetopt
+INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
+
+OBJS = \
+ getopt.o \
+ getopt1.o
+
+include $(topdir)/build/lib.mk
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
--- /dev/null
+!include <win32.mak>\r
+\r
+!IFDEF DEBUG\r
+.c.obj:\r
+ $(cc) /D "_LIB" -DFLAC__NO_DLL /GX $(cdebug) $(cflags) /I "..\..\..\include" /I "..\..\..\include\share" -DSTRICT -YX /Od /D "_DEBUG" $<\r
+!else\r
+.c.obj:\r
+ $(cc) /D "_LIB" -DFLAC__NO_DLL /O2 $(crelease) $(cflags) /I "..\..\..\include" /I "..\..\..\include\share" -DSTRICT -YX -DNODEBUG $<\r
+!endif\r
+\r
+C_FILES= \\r
+ getopt.c \\r
+ getopt1.c\r
+\r
+OBJS= $(C_FILES:.c=.obj)\r
+\r
+all: getopt.lib\r
+\r
+getopt.lib: $(OBJS)\r
+ link.exe -lib /nodefaultlib -out:../../../obj/lib/$*.lib $(OBJS)\r
+\r
+clean:\r
+ -del *.obj *.pch\r
+ -del ..\..\..\obj\lib\getopt.lib ..\..\..\obj\lib\getopt.pdb\r
# Begin Project\r
# PROP AllowPerConfigDependencies 0\r
# PROP Scc_ProjName "getopt"\r
-# PROP Scc_LocalPath "..\.."\r
+# PROP Scc_LocalPath "..\..\.."\r
CPP=cl.exe\r
MTL=midl.exe\r
RSC=rc.exe\r
# PROP BASE Target_Dir ""\r
# PROP Use_MFC 0\r
# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "..\..\obj\lib"\r
+# PROP Output_Dir "..\..\..\obj\lib"\r
# PROP Intermediate_Dir "Release"\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I ".\include" /I "..\..\include" /D "NDEBUG" /D "GETOPT_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
+# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I ".\include" /I "..\..\..\include" /D "NDEBUG" /D "GETOPT_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD BASE RSC /l 0x409 /d "NDEBUG"\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386\r
-# ADD LINK32 /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\obj\bin/getopt.dll"\r
+# ADD LINK32 /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\..\obj\bin/getopt.dll"\r
\r
!ELSEIF "$(CFG)" == "getopt - Win32 Debug"\r
\r
# PROP BASE Target_Dir ""\r
# PROP Use_MFC 0\r
# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "..\..\obj\lib"\r
+# PROP Output_Dir "..\..\..\obj\lib"\r
# PROP Intermediate_Dir "Debug"\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I ".\include" /I "..\..\include" /D "_DEBUG" /D "_CHATTER" /D "GETOPT_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I ".\include" /I "..\..\..\include" /D "_DEBUG" /D "_CHATTER" /D "GETOPT_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD BASE RSC /l 0x409 /d "_DEBUG"\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\obj\bin/getopt.dll" /pdbtype:sept\r
+# ADD LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\..\obj\bin/getopt.dll" /pdbtype:sept\r
\r
!ENDIF \r
\r
# PROP Default_Filter ""\r
# Begin Source File\r
\r
-SOURCE=..\..\include\share\getopt.h\r
+SOURCE=..\..\..\include\share\getopt.h\r
# End Source File\r
# End Group\r
# End Target\r
--- /dev/null
+## Process this file with automake to produce Makefile.in
+
+AUTOMAKE_OPTIONS = foreign
+
+INCLUDES = -I$(top_srcdir)/include/share
+
+noinst_LIBRARIES = libutf8.a
+
+libutf8_a_SOURCES = charset.c charset.h iconvert.c utf8.c
+
+EXTRA_DIST = \
+ Makefile.lite \
+ Makefile.vc \
+ README \
+ charmaps.h \
+ makemap.c \
+ charset_test.c \
+ charsetmap.h \
+ utf8.dsp
+
+debug:
+ $(MAKE) all CFLAGS="@DEBUG@"
+
+profile:
+ $(MAKE) all CFLAGS="@PROFILE@"
--- /dev/null
+#
+# GNU makefile
+#
+
+topdir = ../../..
+
+LIB_NAME = libutf8
+INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
+
+OBJS = \
+ charset.o \
+ iconvert.o \
+ utf8.o
+
+include $(topdir)/build/lib.mk
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
--- /dev/null
+!include <win32.mak>\r
+\r
+!IFDEF DEBUG\r
+.c.obj:\r
+ $(cc) /D "_LIB" -DFLAC__NO_DLL /GX $(cdebug) $(cflags) /I "..\..\..\include" /I "..\..\..\include\share" -DSTRICT -YX /Od /D "_DEBUG" $<\r
+!else\r
+.c.obj:\r
+ $(cc) /D "_LIB" -DFLAC__NO_DLL /O2 $(crelease) $(cflags) /I "..\..\..\include" /I "..\..\..\include\share" -DSTRICT -YX -DNODEBUG $<\r
+!endif\r
+\r
+C_FILES= \\r
+ charset.c \\r
+ iconvert.c \\r
+ utf8.c\r
+\r
+OBJS= $(C_FILES:.c=.obj)\r
+\r
+all: utf8.lib\r
+\r
+utf8.lib: $(UTF8_OBJS)\r
+ link.exe -lib /nodefaultlib -out:../../../obj/lib/$*.lib $(UTF8_OBJS)\r
+\r
+clean:\r
+ -del *.obj *.pch\r
+ -del ..\..\..\obj\lib\utf8.lib ..\..\..\obj\lib\utf8.pdb\r
# Begin Project\r
# PROP AllowPerConfigDependencies 0\r
# PROP Scc_ProjName "utf8"\r
-# PROP Scc_LocalPath "..\.."\r
+# PROP Scc_LocalPath "..\..\.."\r
CPP=cl.exe\r
MTL=midl.exe\r
RSC=rc.exe\r
# PROP BASE Target_Dir ""\r
# PROP Use_MFC 0\r
# PROP Use_Debug_Libraries 0\r
-# PROP Output_Dir "..\..\obj\lib"\r
+# PROP Output_Dir "..\..\..\obj\lib"\r
# PROP Intermediate_Dir "Release"\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I ".\include" /I "..\..\include\share" /D "NDEBUG" /D "UTF8_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
+# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I ".\include" /I "..\..\..\include\share" /D "NDEBUG" /D "UTF8_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD BASE RSC /l 0x409 /d "NDEBUG"\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386\r
-# ADD LINK32 /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\obj\bin/utf8.dll"\r
+# ADD LINK32 /nologo /subsystem:windows /dll /machine:I386 /out:"..\..\..\obj\bin/utf8.dll"\r
\r
!ELSEIF "$(CFG)" == "utf8 - Win32 Debug"\r
\r
# PROP BASE Target_Dir ""\r
# PROP Use_MFC 0\r
# PROP Use_Debug_Libraries 1\r
-# PROP Output_Dir "..\..\obj\lib"\r
+# PROP Output_Dir "..\..\..\obj\lib"\r
# PROP Intermediate_Dir "Debug"\r
# PROP Ignore_Export_Lib 0\r
# PROP Target_Dir ""\r
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I ".\include" /I "..\..\include\share" /D "_DEBUG" /D "_CHATTER" /D "UTF8_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I ".\include" /I "..\..\..\include\share" /D "_DEBUG" /D "_CHATTER" /D "UTF8_API_EXPORTS" /D "_WINDOWS" /D "_WINDLL" /D "WIN32" /D "_USRDLL" /FR /FD /c\r
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32\r
# ADD BASE RSC /l 0x409 /d "_DEBUG"\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\obj\bin/utf8.dll" /pdbtype:sept\r
+# ADD LINK32 /nologo /subsystem:windows /dll /debug /machine:I386 /out:"..\..\..\obj\bin/utf8.dll" /pdbtype:sept\r
\r
!ENDIF \r
\r
# PROP Default_Filter ""\r
# Begin Source File\r
\r
-SOURCE=..\..\include\share\utf8.h\r
+SOURCE=..\..\..\include\share\utf8.h\r
# End Source File\r
# End Group\r
# End Target\r