2005-08-08 13:08:00 +08:00
|
|
|
@if "%1" == "gcc" GoTo GCCBuild
|
1996-07-20 05:41:07 +08:00
|
|
|
if not exist .\WinDebug\nul mkdir .\WinDebug
|
2005-07-04 11:50:59 +08:00
|
|
|
cl.exe /nologo /MT /W4 /GX /Z7 /YX /Od /I .. /I . /I ../include /D WIN32 /D WINDOWS32 /D _DEBUG /D _WINDOWS /FR.\WinDebug/ /Fp.\WinDebug/subproc.pch /Fo.\WinDebug/ /c misc.c
|
|
|
|
cl.exe /nologo /MT /W4 /GX /Z7 /YX /Od /I .. /I . /I ../include /I ../.. /D WIN32 /D WINDOWS32 /D _DEBUG /D _WINDOWS /FR.\WinDebug/ /Fp.\WinDebug/subproc.pch /Fo.\WinDebug/ /c sub_proc.c
|
|
|
|
cl.exe /nologo /MT /W4 /GX /Z7 /YX /Od /I .. /I . /I ../include /D WIN32 /D WINDOWS32 /D _DEBUG /D _WINDOWS /FR.\WinDebug/ /Fp.\WinDebug/subproc.pch /Fo.\WinDebug/ /c w32err.c
|
1996-07-20 05:41:07 +08:00
|
|
|
lib.exe /NOLOGO /OUT:.\WinDebug\subproc.lib .\WinDebug/misc.obj .\WinDebug/sub_proc.obj .\WinDebug/w32err.obj
|
|
|
|
if not exist .\WinRel\nul mkdir .\WinRel
|
2005-07-04 11:50:59 +08:00
|
|
|
cl.exe /nologo /MT /W4 /GX /YX /O2 /I ../include /D WIN32 /D WINDOWS32 /D NDEBUG /D _WINDOWS /FR.\WinRel/ /Fp.\WinRel/subproc.pch /Fo.\WinRel/ /c misc.c
|
|
|
|
cl.exe /nologo /MT /W4 /GX /YX /O2 /I ../include /I ../.. /D WIN32 /D WINDOWS32 /D NDEBUG /D _WINDOWS /FR.\WinRel/ /Fp.\WinRel/subproc.pch /Fo.\WinRel/ /c sub_proc.c
|
|
|
|
cl.exe /nologo /MT /W4 /GX /YX /O2 /I ../include /D WIN32 /D WINDOWS32 /D NDEBUG /D _WINDOWS /FR.\WinRel/ /Fp.\WinRel/subproc.pch /Fo.\WinRel/ /c w32err.c
|
1996-07-20 05:41:07 +08:00
|
|
|
lib.exe /NOLOGO /OUT:.\WinRel\subproc.lib .\WinRel/misc.obj .\WinRel/sub_proc.obj .\WinRel/w32err.obj
|
2005-08-08 13:08:00 +08:00
|
|
|
GoTo BuildEnd
|
|
|
|
:GCCBuild
|
|
|
|
gcc -mthreads -Wall -gstabs+ -ggdb3 -O2 -I.. -I. -I../include -I../.. -DWINDOWS32 -c misc.c -o ../../w32_misc.o
|
|
|
|
gcc -mthreads -Wall -gstabs+ -ggdb3 -O2 -I.. -I. -I../include -I../.. -DWINDOWS32 -c sub_proc.c -o ../../sub_proc.o
|
|
|
|
gcc -mthreads -Wall -gstabs+ -ggdb3 -O2 -I.. -I. -I../include -I../.. -DWINDOWS32 -c w32err.c -o ../../w32err.o
|
|
|
|
:BuildEnd
|
2006-02-12 03:02:21 +08:00
|
|
|
|
|
|
|
@rem Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
|
|
|
|
@rem 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
|
|
|
|
@rem This file is part of GNU Make.
|
|
|
|
|
|
|
|
@rem GNU Make is free software; you can redistribute it and/or modify it under the
|
|
|
|
@rem terms of the GNU General Public License as published by the Free Software
|
|
|
|
@rem Foundation; either version 2, or (at your option) any later version.
|
|
|
|
|
|
|
|
@rem GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
@rem WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
|
|
@rem A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
@rem You should have received a copy of the GNU General Public License along with
|
|
|
|
@rem GNU Make; see the file COPYING. If not, write to the Free Software
|
|
|
|
@rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|